Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-26704

published high CVSS 3.1 · 7.8

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

Published
03 Apr 2024, 14:55:02 UTC
Updated
05 Aug 2026, 11:26:47 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxfcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < b4fbb89d722cbb16beaaea234b7230faaaf68c71 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < afbcad9ae7d6d11608399188f03a837451b6b3a1 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < d033a555d9a1cf53dbf3301af7199cc4a4c8f537 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < afba9d11320dad5ce222ac8964caf64b7b4bedb1 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 2883940b19c38d5884c8626483811acf4d7e148f · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6 · fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 55583e899a5357308274601364741a83e78d6ac4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.18 (affected) · 0 to < 3.18 (unaffected · semver) · 4.19.307 through 4.19.* (unaffected · semver) · 5.4.269 through 5.4.* (unaffected · semver) · 5.10.210 through 5.10.* (unaffected · semver) · 5.15.149 through 5.15.* (unaffected · semver) · 6.1.79 through 6.1.* (unaffected · semver) · 6.6.18 through 6.6.* (unaffected · semver) · 6.7.6 through 6.7.* (unaffected · semver) · 6.8 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluationALAS2-2024-2549 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-053 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-039 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2024-062 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bullseye linux Advisory build 5.10.216-1 DSA-5681-1
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2024-549 Fixed Not stated Amazon Linux assessment
Oracle Linux 6 kernel-uekx86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian buster linux Advisory build 4.19.316-1 DLA-3840-1
Debian buster linux-5.10 Advisory build 5.10.216-1~deb10u1 DLA-3842-1
Oracle Linux 6 kernel-uek-debugx86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 6 kernel-uek-debug-develx86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 6 kernel-uek-develx86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 6 kernel-uek-docx86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 6 kernel-uek-firmwarex86_64 Advisory build 0:4.1.12-124.89.4.el6uek ELSA-2024-12606
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 7 kernel-uek-firmwarex86_64 Advisory build 0:4.1.12-124.89.4.el7uek ELSA-2024-12606
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

74

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached only through the EXT4_IOC_MOVE_EXT ioctl on a local ext4 filesystem, requiring the attacker to hold open file descriptors on the machine. There is no remote or adjacent-network path to fs/ext4/move_extent.c. AC:L - The early-exit path is fully attacker-controlled — a sparse orig file whose first extent swaps successfully and whose next lookup returns EXT_MAX_BLOCKS deterministically yields -ENODATA with moved_len==0, leaving the preallocations undiscarded. No race, no memory-layout dependency, and mb_optimize_scan (needed for the divide error) is on by default for any ext4 volume of ~2 GiB or larger. PR:L - EXT4_IOC_MOVE_EXT has no capable() or inode_owner_or_capable() check — it only requires both files be open O_RDWR, so any unprivileged local user (including one confined to a container) can invoke it on files they own in /tmp or /home. UI:N - The attacker performs every step — creating the two files, shaping the extent layout, seeding the preallocations, and issuing the ioctl. No victim action is needed, since the target ext4 filesystem is already mounted on any normal system. S:U - The double free, bitmap corruption, and divide-error oops all occur within the kernel's own security authority on the same host. No hypervisor, IOMMU, or sandbox boundary is crossed. C:H - The double free returns blocks that are still referenced by a live inode to the free-space bitmap, so they can be reallocated into an attacker-controlled file, exposing another user's file contents through cross-file block aliasing. This is an unbounded read of arbitrary on-disk data belonging to other users. I:H - The same block aliasing lets the attacker overwrite data blocks still owned by another inode, and mb_free_blocks() additionally marks the group bitmap corrupt while inflating bb_free, leaving persistent allocator and on-disk metadata corruption. That is arbitrary modification of other users' file data and of filesystem metadata. A:H - The inconsistent bb_free/bb_fragments state causes a divide-by-zero oops in mb_update_avg_fragment_size() while ext4_lock_group() is held, so the group spinlock is orphaned and subsequent accesses deadlock. Even short of that, ext4_grp_locked_error() forces the filesystem read-only under the default errors=remount-ro, or panics the kernel under errors=panic.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < b4fbb89d722cbb16beaaea234b7230faaaf68c71 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < afbcad9ae7d6d11608399188f03a837451b6b3a1 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < d033a555d9a1cf53dbf3301af7199cc4a4c8f537 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < afba9d11320dad5ce222ac8964caf64b7b4bedb1 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 185eab30486ba3e7bf8b9c2e049c79a06ffd2bc1 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 2883940b19c38d5884c8626483811acf4d7e148f (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 559ddacb90da1d8786dd8ec4fd76bbfa404eaef6 (affected · git)fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a to < 55583e899a5357308274601364741a83e78d6ac4 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.18 (affected)0 to < 3.18 (unaffected · semver)4.19.307 through 4.19.* (unaffected · semver)5.4.269 through 5.4.* (unaffected · semver)5.10.210 through 5.10.* (unaffected · semver)5.15.149 through 5.15.* (unaffected · semver)6.1.79 through 6.1.* (unaffected · semver)6.6.18 through 6.6.* (unaffected · semver)6.7.6 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

10

Provider assertions

3

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
e8280e95a83881aa77dd1c919c84947b3bcfed6c7af6f2dbdd019d10008f4b26
Ingested
23 Sep 2026, 08:20:34 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected