cbcvebase.
CVE-2024-26704
published 2024-04-03

CVE-2024-26704: In the Linux kernel, the following vulnerability has been resolved: ext4: fix double-free of blocks due to wrong extents moved_len In ext4_move_extents()…

PriorityP336high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.27%
18.4th percentile
In the Linux kernel, the following vulnerability has been resolved: ext4: fix double-free of blocks due to wrong extents moved_len In ext4_move_extents(), moved_len is only updated when all moves are successfully executed, and only discards orig_inode and donor_inode preallocations when moved_len is not zero. When the loop fails to exit after successfully moving some extents, moved_len is not updated and remains at 0, so it does not discard the preallocations. If the moved extents overlap with the preallocated extents, the overlapped extents are freed twice in ext4_mb_release_inode_pa() and ext4_process_freed_data() (as described in commit 94d7c16cbbbd ("ext4: Fix double-free of blocks with EXT4_IOC_MOVE_EXT")), and bb_free is incremented twice. Hence when trim is executed, a zero-division bug is triggered in mb_update_avg_fragment_size() because bb_free is not zero and bb_fragments is zero. Therefore, update move_len after each extent move to avoid the issue.

Affected

27 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.82-1 (bookworm)linux 6.1.82-1 (bookworm)
linuxlinux
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < b4fbb89d722cbb16beaaea234b7230faaaf68c71b4fbb89d722cbb16beaaea234b7230faaaf68c71
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < afbcad9ae7d6d11608399188f03a837451b6b3a1afbcad9ae7d6d11608399188f03a837451b6b3a1
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < d033a555d9a1cf53dbf3301af7199cc4a4c8f537d033a555d9a1cf53dbf3301af7199cc4a4c8f537
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < afba9d11320dad5ce222ac8964caf64b7b4bedb1afba9d11320dad5ce222ac8964caf64b7b4bedb1
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 2883940b19c38d5884c8626483811acf4d7e148f2883940b19c38d5884c8626483811acf4d7e148f
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6559ddacb90da1d8786dd8ec4fd76bbfa404eaef6
linuxlinux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 55583e899a5357308274601364741a83e78d6ac455583e899a5357308274601364741a83e78d6ac4
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.216-15.10.216-1
linuxlinux_kernel>= 0 < 6.1.82-16.1.82-1
linuxlinux_kernel>= 0 < 6.7.7-16.7.7-1
linuxlinux_kernel>= 0 < 6.7.7-16.7.7-1
linuxlinux_kernel>= 0 < 5.4.0-181.2015.4.0-181.201
linuxlinux_kernel>= 0 < 5.15.0-106.1165.15.0-106.116
linuxlinux_kernel>= 0 < 4.4.0-254.2884.4.0-254.288
linuxlinux_kernel>= 0 < 4.15.0-225.2374.15.0-225.237
linuxlinux_kernel>= 3.18 < 4.19.3074.19.307
linuxlinux_kernel>= 4.20 < 5.4.2695.4.269
linuxlinux_kernel>= 5.11 < 5.15.1495.15.149
linuxlinux_kernel>= 5.16 < 6.1.796.1.79
linuxlinux_kernel>= 5.5 < 5.10.2105.10.210

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu6.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.