Linux kernel out-of-bounds read in ext4 group info lookup
Affects Linux kernels from 5.10.181 to before 5.10.275, 5.15.113 to before 5.15.226, 6.1.30 to before 6.1.193, and 6.3.4 to before 6.4. Fixed in 5.10.275, 5.15.226, 6.1.193, and 6.4.
- Exploited
- No known exploitation
- Fix
- Fixed in 5.10.275, 5.15.226, 6.1.193, 6.4
- Who is exposed
- Specific setups only
Summary
Written by a model
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix out-of-bounds read in ext4_get_group_info()
A plain read of s_groups_count in ext4_get_group_info() allows CPU load-load reordering. On weak memory models, speculative prefetch of s_group_info prior to the boundary check could lead to an out-of-bounds read if a concurrent online resize expands the array and increments s_groups_count.
The data race occurs between the ioctl configuration path (holding the resize lock via ext4_resize_begin) and the lockless metadata lookup path:
CPU 0 (Writer, Resize Lock) CPU 1 (Reader, Lockless) --------------------------- ------------------------ ext4_ioctl() [EXT4_IOC_GROUP_ADD] ext4_ioctl_group_add() ext4_resize_begin() // Takes lock ext4_group_add() ext4_mb_alloc_groupinfo() // Publishes expanded array via RCU rcu_assign_pointer(s_group_info, ...)
ext4_flex_group_add() ext4_update_super() ext4_get_group_info() // Speculative / out-of-order read [Loads old/smaller s_group_info pointer] [Plain C store / smp_wmb()] sbi->s_groups_count += ...; // Reads new s_groups_count, // boundary check passes if (group >= s_groups_count)
// Out-of-bounds array access! sbi_array_rcu_deref(..., s_group_info)
Fix this by using ext4_get_groups_count() to enforce acquire semantics.
Who should check
Teams running Linux kernels with ext4 filesystems that can be grown online (EXT4_IOC_GROUP_ADD or EXT4_IOC_RESIZE_FS), including Linux kernel stacks.
“if a concurrent online resize expands the array and increments”
What to do
Check whether your setup matches what the bug needs.
A concurrent online resize expands the array and increments s_groups_count. The resize grows the array past its power-of-two size. The CPU is weakly ordered (not x86 TSO), so it can reorder the loads.Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.4.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-138872 (ext4: fix out-of-bounds read in ext4_get_group_info()), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-138872 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 5.10.181, fixed in 5.10.275; from 5.15.113, fixed in 5.15.226; from 6.1.30, fixed in 6.1.193; from 6.3.4, fixed in 6.4
- Linux Linux: versions 6.4
Fixed versions: 5.10.275, 5.15.226, 6.1.193, 6.4.
Conditions (all must be true for the bug to be hit):
- A concurrent online resize expands the array and increments s_groups_count. (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=840de582e3c98cbf01911472c8d363b9499932ca)
- The resize grows the array past its power-of-two size. (source: https://www.cve.org/CVERecord?id=CVE-2026-138872)
- The CPU is weakly ordered (not x86 TSO), so it can reorder the loads. (source: https://www.cve.org/CVERecord?id=CVE-2026-138872)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-138872 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138872 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca
- https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89
- https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c
- https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9
- https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be
- https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a
- https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d
- https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-138872
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138872"}.Affected versions
- Linux LinuxFrom 5.10.181 · fixed in 5.10.275; From 5.15.113 · fixed in 5.15.226; From 6.1.30 · fixed in 6.1.193; From 6.3.4 · fixed in 6.4
- Linux Linux6.4
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7/10CVSS 7.0
- No patch0/5No signal
What would change the score
- Would score about 82 if added to CISA KEV
- Would score about 77 if CISA's SSVC rates exploitation active
- Would score about 42 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 10
Questions about CVE-2026-138872
Is CVE-2026-138872 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A concurrent online resize of an ext4 filesystem can expand the group array and increment s_groups_count while ext4_get_group_info() reads the array. On weakly ordered CPUs the loads can be reordered, causing an out-of-bounds kernel read that can crash the kernel or corrupt ext4 allocator metadata. A local user can trigger it.
Source: git.kernel.org, cve.org
Which versions are affected by CVE-2026-138872?
Linux: from 5.10.181 before 5.10.275; from 5.15.113 before 5.15.226; from 6.1.30 before 6.1.193; from 6.3.4 before 6.4. Linux: version 6.4.
Source: cve.now feed data
Am I affected, and how do I check?
The listed ranges are Linux kernel 5.10.181 through 5.10.275, 5.15.113 through 5.15.226, 6.1.30 through 6.1.193, and 6.3.4 through 6.4, with the fixed versions excluded. The bug needs an online resize that grows the array past its power-of-two size, and it only happens on weakly ordered CPUs rather than x86 TSO. To check the kernel version, run uname -r.
Source: git.kernel.org, cve.org
How do I fix CVE-2026-138872?
Update to the fixed kernel for the branch in use: 5.10.275, 5.15.226, 6.1.193, or 6.4.
Source: git.kernel.org, cve.org
Related
- CVE-2026-142948i2c: designware: queue only one read command for block reads
- CVE-2026-142947cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails
- CVE-2026-142946ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142945ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142944ASoC: amd: acp-es8336: Use an owned codec device reference
- CVE-2026-142943ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
No corrections so far. Something wrong on this page? Report an error.