CVE-2026-138872
ext4: fix out-of-bounds read in ext4_get_group_info()
Check your servers for CVE-2026-138872
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138872 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.66% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 100c0ad6c04597fefeaaba2bb1827cc015d95067, before 840de582e3c98cbf01911472c8d363b9499932ca affected from 620a3c28221bb219b81bc0bffd065cc187494302, before 22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89 affected from b4319e457d6e3fb33e443efeaf4634fc36e8a9ed, before b3151c0908b0ae63bb2bc5faae8d8d3cf421169c affected from 5354b2af34064a4579be8bc0e2f15a7b70f14b5f, before de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9 affected from 5354b2af34064a4579be8bc0e2f15a7b70f14b5f, before cd24b217717f152195de4abf8272ea1ef2a7c4be affected from 5354b2af34064a4579be8bc0e2f15a7b70f14b5f, before 02eea74948bda0409d7e359969218a814238a42a affected from 5354b2af34064a4579be8bc0e2f15a7b70f14b5f, before 425add03ad9a2fd539bcb02a62b892e19ff0600d affected from 5354b2af34064a4579be8bc0e2f15a7b70f14b5f, before b067d3c1f90b536e9aa9f48b19580475a0b34f0f affected 31668cebf45adfb6283e465e641c4f5a21b07afa affected from 5.10.181, before 5.10.275 affected from 5.15.113, before 5.15.226 affected from 6.1.30, before 6.1.193 affected from 6.3.4, before 6.4
Other versions: unaffected
|
| Linux |
affected 6.4 unaffected before 6.4 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138872 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138872
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138872
trivy image --scanners vuln IMAGE | grep CVE-2026-138872
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca git.kernel.org
- https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89 git.kernel.org
- https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c git.kernel.org
- https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9 git.kernel.org
- https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be git.kernel.org
- https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a git.kernel.org
- https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d git.kernel.org
- https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f git.kernel.org
Source: the record CVE-2026-138872 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse