PT-2024-29851 · Linux · Linux Kernel
Gao Xiang
·
Published
2024-07-26
·
Updated
2024-08-22
·
CVE-2024-42300
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.10.0-rc7+
Description
The issue is related to a race condition in the
z erofs get gbuf() function, where the current task may be migrated to another CPU between z erofs gbuf id() and spin lock(&gbuf->lock), triggering an issue in z erofs put gbuf(). This was found by a stress test, which caused a kernel bug. The call trace includes functions such as z erofs put gbuf(), z erofs lz4 decompress(), z erofs decompress queue(), z erofs runqueue(), and z erofs readahead().Recommendations
To resolve the issue, update the Linux kernel to a version later than 6.10.0-rc7+.
As a temporary workaround, consider disabling the
z erofs get gbuf() function until a patch is available.
Restrict access to the vulnerable erofs module to minimize the risk of exploitation.
Avoid using the z erofs put gbuf() function in the affected kernel versions until the issue is resolved.Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linux Kernel