PT-2024-29160 · Linux+5 · Linux Kernel+5
Published
2024-04-08
·
Updated
2025-03-13
·
CVE-2024-40943
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 (affected versions not specified)
Description
The issue is related to a race condition between hole punching and AIO+DIO in the ocfs2 filesystem. When
ocfs2 dio wr get block is called to add unwritten extents to a list and another thread calls fallocate to punch a hole at one of the unwritten extents, the extent at cpos can be removed by ocfs2 remove extent(). This leads to an error when ocfs2 search extent list is called, as it cannot find the extent at cpos. The file system becomes read-only, and on-disk corruption is discovered. To fix this, the code has been modified to wait for all dio before fallocate/punch hole, similar to ext4.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Race Condition
Improper Locking
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu