Linux
tracing: Have show_event_filters/triggers files take trace array ref
In the Linux kernel, the following vulnerability has been resolved: tracing: Have show_event_filters/triggers files take trace array ref The newly added files show_event_filters and show_event_triggers that show all filters or triggers that are set within the trace array do not take a reference for the trace array it is showing. Without taking a reference, the trace_array may be freed via "rmdir" while a task is reading one of theses files. Those files iterate all the events within an instance (trace_array) and nothing prevents that instance from being freed while its data is being read. This causes a use-after-free crash. Have the open of both those files take the trace_array reference via the trace_array_get() that prevents the trace_array from being freed while the files are opened.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 729757b96a662d87e334fe8b837707800d8fd551, < 2ee3f7d43f79efaca0cd84a6798653d9d75ce60b
- >= 729757b96a662d87e334fe8b837707800d8fd551, < f4a771cc684c7354b6200147f7252c58d17408ff
Fixed in 2ee3f7d43f79efaca0cd84a6798653d9d75ce60b, f4a771cc684c7354b6200147f7252c58d17408ff
- 7.0
Fixed in 0, 7.2.5, 7.3
Mitigation
Upgrade Linux to 2ee3f7d43f79efaca0cd84a6798653d9d75ce60b or f4a771cc684c7354b6200147f7252c58d17408ff or later.
Upgrade Linux to 0 or 7.2.5 or 7.3 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.