Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-26704

HIGH 7.8EPSS 20%

ext4: fix double-free of blocks due to wrong extents moved_len

Mitigation

  • Upgrade Linux to 55583e899a5357308274601364741a83e78d6ac4 or later.

Who should check

  • Anyone running Linux >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < b4fbb89d722cbb16beaaea234b7230faaaf68c71; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afbcad9ae7d6d11608399188f03a837451b6b3a1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < d033a555d9a1cf53dbf3301af7199cc4a4c8f537; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afba9d11320dad5ce222ac8964caf64b7b4bedb1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 2883940b19c38d5884c8626483811acf4d7e148f; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 55583e899a5357308274601364741a83e78d6ac4
  • Anyone running Linux 3.18

Vulnerability facts

Affected
Linux >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < b4fbb89d722cbb16beaaea234b7230faaaf68c71; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afbcad9ae7d6d11608399188f03a837451b6b3a1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < d033a555d9a1cf53dbf3301af7199cc4a4c8f537; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afba9d11320dad5ce222ac8964caf64b7b4bedb1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 2883940b19c38d5884c8626483811acf4d7e148f; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 55583e899a5357308274601364741a83e78d6ac4; Linux 3.18
Fixed in
Linux 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1, Linux 2883940b19c38d5884c8626483811acf4d7e148f, Linux 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6, Linux 55583e899a5357308274601364741a83e78d6ac4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
CWE
CWE-415
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < b4fbb89d722cbb16beaaea234b7230faaaf68c71; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afbcad9ae7d6d11608399188f03a837451b6b3a1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < d033a555d9a1cf53dbf3301af7199cc4a4c8f537; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afba9d11320dad5ce222ac8964caf64b7b4bedb1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 2883940b19c38d5884c8626483811acf4d7e148f; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 55583e899a5357308274601364741a83e78d6ac4—cvelist
Linux3.18—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-26704. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26704.md
Affected: Linux >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < b4fbb89d722cbb16beaaea234b7230faaaf68c71; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afbcad9ae7d6d11608399188f03a837451b6b3a1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < d033a555d9a1cf53dbf3301af7199cc4a4c8f537; >= fcf6b1b729bcd23f2b49a84…
Fixed in: Linux 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1, Linux 2883940b19c38d5884c8626483811acf4d7e148f, Linux 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6, Linux 55583e899a5357308274601364741a83e78d6ac4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-26704 being exploited?

There is no confirmed exploitation: CVE-2024-26704 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-26704?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-26704?

Linux >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < b4fbb89d722cbb16beaaea234b7230faaaf68c71; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afbcad9ae7d6d11608399188f03a837451b6b3a1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < d033a555d9a1cf53dbf3301af7199cc4a4c8f537; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < afba9d11320dad5ce222ac8964caf64b7b4bedb1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 2883940b19c38d5884c8626483811acf4d7e148f; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6; >= fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a, < 55583e899a5357308274601364741a83e78d6ac4; Linux 3.18.

Is there a fix for CVE-2024-26704?

Yes. Fixed in Linux 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1, Linux 2883940b19c38d5884c8626483811acf4d7e148f, Linux 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6, Linux 55583e899a5357308274601364741a83e78d6ac4. Upgrade Linux to 55583e899a5357308274601364741a83e78d6ac4 or later.

How do I check if I'm affected by CVE-2024-26704?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors