Executive brief
A vulnerability exists in the Linux kernel's ext4 file system, which is widely used for data storage. A flaw in how the system manages memory when writing data can lead to a system crash or potentially allow an attacker to gain unauthorized access to data. This issue primarily affects the stability and security of systems using the ext4 file system.
Technical details
A use-after-free (UAF) vulnerability exists in the ext4 subsystem of the Linux kernel. The flaw occurs in 'ext4_ext_insert_extent()' when 'ext4_ext_create_new_leaf()' triggers a reallocation of the extent path via 'ext4_find_extent()'. If the depth of the extent tree exceeds the current path's maximum depth, the existing path is freed and a new one is allocated; however, the caller may continue to use the stale pointer. A local attacker can exploit this to cause a kernel panic (DoS) or potentially achieve privilege escalation. The fix ensures the path pointer is updated from the pointer-to-pointer argument after the leaf creation call.
Affected products
- Linux Linux Kernel 3.18 to 4.19.323, 4.20 to 5.4.285, 5.5 to 5.10.227, 5.11 to 5.15.168, 5.16 to 6.1.113, 6.2 to 6.6.55, 6.7 to 6.10.14, 6.11 to 6.11.3
Timeline
- 2024-08-22: patched: Initial patch authored
- 2024-10-21: advisory: NVD publication date
References
- https://git.kernel.org/stable/c/51db04892a993cace63415be99848970a0f15ef2
- https://git.kernel.org/stable/c/5e811066c5ab709b070659197dccfb80ab650ddd
- https://git.kernel.org/stable/c/8162ee5d94b8c0351be0a9321be134872a7654a1
- https://git.kernel.org/stable/c/975ca06f3fd154c5f7742083e7b2574c57d1c0c3
- https://git.kernel.org/stable/c/9df59009dfc6d9fc1bd9ddf6c5ab6e56d6ed887a
- https://git.kernel.org/stable/c/a164f3a432aae62ca23d03e6d926b122ee5b860d
- https://git.kernel.org/stable/c/beb7b66fb489041c50c6473100b383f7a51648fc