Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-26704— ext4: fix double-free of blocks due to wrong extents moved_len

CVSS 7.8 · High EPSS 0.27% · P18

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinuxfcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< b4fbb89d722cbb16beaaea234b7230faaaf68c71affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< afbcad9ae7d6d11608399188f03a837451b6b3a1affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< d033a555d9a1cf53dbf3301af7199cc4a4c8f537affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< afba9d11320dad5ce222ac8964caf64b7b4bedb1affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< 2883940b19c38d5884c8626483811acf4d7e148faffected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6affected
fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a< 55583e899a5357308274601364741a83e78d6ac4affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-26704

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ext4: fix double-free of blocks due to wrong extents moved_len
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于存在双重释放。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a ~ b4fbb89d722cbb16beaaea234b7230faaaf68c71 -
LinuxLinux 3.18 -

II. Public POCs for CVE-2024-26704

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-26704

登录查看更多情报信息。

Mailing List Discussions for CVE-2024-26704 (2)

Other References for CVE-2024-26704 (7)

Same Patch Batch · Linux · 2024-04-03 · 94 CVEs total

CVE-2024-267609.8 CRITICALscsi: target: pscsi: Fix bio_put() for error case
CVE-2024-267798.8 HIGHwifi: mac80211: fix race condition on enabling fast-xmit
CVE-2024-266898.8 HIGHceph: prevent use-after-free in encode_cap_msg()
CVE-2024-266928.3 HIGHsmb: Fix regression in writes when non-standard maximum write size negotiated
CVE-2024-267368.1 HIGHafs: Increase buffer size in afs_update_volume_status()
CVE-2024-267287.8 HIGHdrm/amd/display: fix null-pointer dereference on edid reading
CVE-2023-526377.8 HIGHcan: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
CVE-2024-266997.8 HIGHdrm/amd/display: Fix array-index-out-of-bounds in dcn35_clkmgr
CVE-2024-267187.8 HIGHdm-crypt, dm-verity: disable tasklets
CVE-2024-267127.8 HIGHpowerpc/kasan: Fix addr error caused by page alignment
CVE-2024-267067.8 HIGHparisc: Fix random data corruption from exception handler
CVE-2024-266977.8 HIGHnilfs2: fix data corruption in dsync block recovery for small block sizes
CVE-2024-267377.8 HIGHbpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel
CVE-2024-267487.8 HIGHusb: cdns3: fix memory double free when handle zero packet
CVE-2024-267737.8 HIGHext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found()
CVE-2024-267727.8 HIGHext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal()
CVE-2024-267667.8 HIGHIB/hfi1: Fix sdma.h tx->num_descs off-by-one error
CVE-2024-267397.8 HIGHnet/sched: act_mirred: don't override retval if we already lost the skb
CVE-2024-267597.8 HIGHmm/swap: fix race when skipping swapcache
CVE-2024-267627.8 HIGHcxl/pci: Skip to handle RAS errors if CXL.mem device is detached

Showing top 20 of 94 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-26704

No comments yet


Leave a comment