Linux
tracing: Hold trace_types_lock when resetting last boot data from readers
In the Linux kernel, the following vulnerability has been resolved: tracing: Hold trace_types_lock when resetting last boot data from readers update_last_data_if_empty() is called from tracing_open() with O_TRUNC, tracing_read_pipe() and tracing_buffers_read() without trace_types_lock. Two readers can both pass the LAST_BOOT test and free module_delta twice, and a module notifier can update module_delta while it is being freed. Take trace_types_lock in those paths and keep the callers that already hold it on an unlocked variant.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 32dc0042528d385d83bf458e4cf3a49c5110afea, < 92b69f6db640dadc0851762ee2e12db99f083cad
- >= 32dc0042528d385d83bf458e4cf3a49c5110afea, < d6d991afe775ab7fcf89523a2502b7ca3be56ffd
- >= 32dc0042528d385d83bf458e4cf3a49c5110afea, < 1f06cfe0b60a878619d1d8efe1cd0f515b7dc2aa
- >= 32dc0042528d385d83bf458e4cf3a49c5110afea, < 5a6bd62f09147b49b31fd19d4eba122cb5f941a1
Fixed in 92b69f6db640dadc0851762ee2e12db99f083cad, d6d991afe775ab7fcf89523a2502b7ca3be56ffd, 1f06cfe0b60a878619d1d8efe1cd0f515b7dc2aa, 5a6bd62f09147b49b31fd19d4eba122cb5f941a1
- 6.16
Fixed in 0, 6.18.60, 7.2.14, 7.3.1, 7.4-rc1
Mitigation
Upgrade Linux to 92b69f6db640dadc0851762ee2e12db99f083cad or d6d991afe775ab7fcf89523a2502b7ca3be56ffd or 1f06cfe0b60a878619d1d8efe1cd0f515b7dc2aa or 5a6bd62f09147b49b31fd19d4eba122cb5f941a1 or later.
Upgrade Linux to 0 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.