Linux
tracing: Delay module ref count for "enable_event" trigger
In the Linux kernel, the following vulnerability has been resolved: tracing: Delay module ref count for "enable_event" trigger Triggers are now delayed from freeing, but can still be triggered until after the RCU grace period has ended. The freeing of the enable_event data is put into the private_data_free() callback, but the put of the module refcount is done immediately. It is possible that if a module is removed that has an event that would enable (or disable) it is still active, it can read the data of the module after it is removed causing a use-after-free bug. Move the trace_event_put_ref() that releases the module into the delayed callback so that the module can not be removed until any reference to its events are finished.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 61d445af0a7c70018111919e47beaaee15653f2f, < 159fdc3e01dca5fdbc412fcd8b239895733a270d
- >= 61d445af0a7c70018111919e47beaaee15653f2f, < e091351b38818ef620d27f44f4bfd625f13afbff
Fixed in 159fdc3e01dca5fdbc412fcd8b239895733a270d, e091351b38818ef620d27f44f4bfd625f13afbff
- 6.19
Fixed in 0, 7.1.6, 7.2
Mitigation
Upgrade Linux to 159fdc3e01dca5fdbc412fcd8b239895733a270d or e091351b38818ef620d27f44f4bfd625f13afbff or later.
Upgrade Linux to 0 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.