Linux
tracing/histograms: Verify event_call identity when updating synth_event refcount
In the Linux kernel, the following vulnerability has been resolved: tracing/histograms: Verify event_call identity when updating synth_event refcount In event_hist_trigger_parse() and hist_unreg_all(), the histogram registration and unregistration paths look up find_synth_event() using trace_event_name(file->event_call) and adjust se->ref if a match is found. Because find_synth_event() only compares the event basename, registering or removing a histogram on a non-synthetic trace event whose basename matches a synthetic event erroneously modifies the synthetic event's reference count. If a histogram is registered on the non-synthetic event before the synthetic event is created and removed afterwards, se->ref is decremented without a matching increment, allowing the synthetic event to be freed while an active histogram action still holds a pointer to it. Introduce find_synth_event_call() to verify that &se->call matches file->event_call before adjusting se->ref.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 381f543ed35c434d5b707369aa5dcd69ecf440af
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 4472579bd1c83708b6fe623c870cdf728e947205
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 23b4106e8b35823acc79e206c7745f55b9cfd78b
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 06e816bed499fe47f39f12044382cc5d064485fb
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 5597bb8db6855fcb97a67196d227fea359bcd81c
- >= 4b147936fa509650beaf638b331573c23ba4d609, < cf4e31d5da80fae4c9cdbe7af55b7c3ad213f0e4
- >= 4b147936fa509650beaf638b331573c23ba4d609, < 3403d9bb27ebc3572bd048620746b4414e073bf9
Fixed in 381f543ed35c434d5b707369aa5dcd69ecf440af, 4472579bd1c83708b6fe623c870cdf728e947205, 23b4106e8b35823acc79e206c7745f55b9cfd78b, 06e816bed499fe47f39f12044382cc5d064485fb, 5597bb8db6855fcb97a67196d227fea359bcd81c, cf4e31d5da80fae4c9cdbe7af55b7c3ad213f0e4, 3403d9bb27ebc3572bd048620746b4414e073bf9
- 4.17
Fixed in 0, 6.1.191, 6.6.161, 6.12.115, 6.18.60, 7.2.14, 7.3.1, 7.4-rc1
Mitigation
Upgrade Linux to 381f543ed35c434d5b707369aa5dcd69ecf440af or 4472579bd1c83708b6fe623c870cdf728e947205 or 23b4106e8b35823acc79e206c7745f55b9cfd78b or 06e816bed499fe47f39f12044382cc5d064485fb or 5597bb8db6855fcb97a67196d227fea359bcd81c or cf4e31d5da80fae4c9cdbe7af55b7c3ad213f0e4 or 3403d9bb27ebc3572bd048620746b4414e073bf9 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.161 or 6.12.115 or 6.18.60 or 7.2.14 or 7.3.1 or 7.4-rc1 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.