CVE-2026-138872
published high CVSS 3.1 · 7.0ext4: fix out-of-bounds read in ext4_get_group_info()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux100c0ad6c04597fefeaaba2bb1827cc015d95067 to < 840de582e3c98cbf01911472c8d363b9499932ca · 620a3c28221bb219b81bc0bffd065cc187494302 to < 22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89 · b4319e457d6e3fb33e443efeaf4634fc36e8a9ed to < b3151c0908b0ae63bb2bc5faae8d8d3cf421169c · 5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9 · 5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < cd24b217717f152195de4abf8272ea1ef2a7c4be · 5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < 02eea74948bda0409d7e359969218a814238a42a · 5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < 425add03ad9a2fd539bcb02a62b892e19ff0600d · 5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < b067d3c1f90b536e9aa9f48b19580475a0b34f0f · 31668cebf45adfb6283e465e641c4f5a21b07afa · 5.10.181 to < 5.10.275 · 5.15.113 to < 5.15.226 · 6.1.30 to < 6.1.193 · 6.3.4 to < 6.4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Both sides are local syscalls: the reader is a write() whose extent goal from ext4_ext_find_goal() lands in a newly added group and reaches ext4_get_group_info() via ext4_mb_find_by_goal()/ext4_mb_load_buddy_gfp(); the writer is the EXT4_IOC_GROUP_ADD/EXT4_IOC_RESIZE_FS ioctl. No remote protocol carries the group number. AC:H - The attacker must catch a concurrent online resize they cannot start, and the CPU must reorder the s_group_info load ahead of the s_groups_count load across the whole publish-to-increment window of ext4_flex_group_add(). This only happens on weakly ordered CPUs, never on x86 TSO, and only when the resize grows the array past its power-of-two size. PR:L - The reader side only needs an unprivileged user who can write a file on the ext4 filesystem being resized; ext4_mb_initialize_context() bounds the goal only by an unordered ext4_blocks_count(es) read. The resize itself needs CAP_SYS_RESOURCE in the initial namespace (capable() in ext4_resize_begin()), which is why that side is counted under AC:H rather than given to the attacker. UI:N - No victim has to open, mount or run anything for the attacker. The resize is a routine admin operation the attacker waits for, and that is already counted under AC:H, not counted again as user interaction. S:U - The bad array read and the use of the resulting pointer both happen in ext4 mballoc in the same kernel, so the impact stays within the kernel's own security authority. C:H - ext4_get_group_info() reads a slot past the end of the old s_group_info pointer array, treats that adjacent slab value as an ext4_group_info ** and dereferences it. The resulting pointer is then read by mballoc (bb_free, bb_state), so neighbouring heap contents decide what memory the kernel reads. I:H - The wild ext4_group_info pointer becomes e4b->bd_info, and mb_free_blocks()/mb_mark_used() write through it (bb_free, bb_first_free, bb_counters[]). If the neighbouring slab object is sprayed, this becomes an attacker-influenced kernel write. A:H - Dereferencing a garbage pointer taken from beyond the old s_group_info array, as ext4_mb_find_by_goal() and ext4_mb_load_buddy_gfp() do, causes a kernel oops or corrupts the allocator's metadata.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 100c0ad6c04597fefeaaba2bb1827cc015d95067 to < 840de582e3c98cbf01911472c8d363b9499932ca (affected · git)620a3c28221bb219b81bc0bffd065cc187494302 to < 22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89 (affected · git)b4319e457d6e3fb33e443efeaf4634fc36e8a9ed to < b3151c0908b0ae63bb2bc5faae8d8d3cf421169c (affected · git)5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9 (affected · git)5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < cd24b217717f152195de4abf8272ea1ef2a7c4be (affected · git)5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < 02eea74948bda0409d7e359969218a814238a42a (affected · git)5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < 425add03ad9a2fd539bcb02a62b892e19ff0600d (affected · git)5354b2af34064a4579be8bc0e2f15a7b70f14b5f to < b067d3c1f90b536e9aa9f48b19580475a0b34f0f (affected · git)31668cebf45adfb6283e465e641c4f5a21b07afa (affected · git)5.10.181 to < 5.10.275 (affected · semver)5.15.113 to < 5.15.226 (affected · semver)6.1.30 to < 6.1.193 (affected · semver)6.3.4 to < 6.4 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.4 (affected)0 to < 6.4 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a
- https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89
- https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d
- https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca
- https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f
- https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c
- https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be
- https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9
Provider assertions
1Linux · cna
ext4: fix out-of-bounds read in ext4_get_group_info()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5840589e8b9fa4bef589d4c0eb8df5d1feff2e9739da5ee7d04ec53472020a4d
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record