Skip to content
Not rated

CVE-2024-43828 In the Linux kernel, the following vulnerability has been resolved: ext4: fix infinite loop when replaying fast_commit…

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix infinite loop when replaying fast_commit When doing fast_commit replay an infinite loop may occur due to an uninitialized extent_status struct. ext4_ext_determine_insert_hole() does not detect the replay and calls ext4_es_find_extent_range(), which will return immediately without initializing the 'es' variable. Because 'es' contains garbage, an integer overflow may happen causing an infinite loop in this function, easily reproducible using fstest generic/039. This commit fixes this issue by unconditionally initializing the structure in function ext4_es_find_extent_range(). Thanks to Zhang Yi, for figuring out the real problem!

Affected products and versions

Product Affected versions Fixed in
Linux 6.11 earliest → < 6.11 6.11
Linux 6.10 earliest → < 6.10.3 6.10.3
Linux 6.6 earliest → < 6.6.44 6.6.44
Linux 6.1 earliest → < 6.1.103 6.1.103
Linux 5.15 earliest → < 5.15.165 5.15.165
Linux 5.10 5.10.224
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 1.1 earliest → < 1.1.1 1.1.1
The 18286 CVEs of Linux →
Track this CVE