{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138872",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.900Z",
        "datePublished": "2026-11-30T13:25:46.643Z",
        "dateUpdated": "2026-12-01T05:40:26.265Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:40:26.265Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix out-of-bounds read in ext4_get_group_info()\n\nA plain read of s_groups_count in ext4_get_group_info() allows CPU\nload-load reordering. On weak memory models, speculative prefetch of\ns_group_info prior to the boundary check could lead to an out-of-bounds\nread if a concurrent online resize expands the array and increments\ns_groups_count.\n\nThe data race occurs between the ioctl configuration path (holding the\nresize lock via ext4_resize_begin) and the lockless metadata lookup path:\n\n   CPU 0 (Writer, Resize Lock)                CPU 1 (Reader, Lockless)\n   ---------------------------                ------------------------\n   ext4_ioctl()\n     [EXT4_IOC_GROUP_ADD]\n     ext4_ioctl_group_add()\n       ext4_resize_begin() // Takes lock\n       ext4_group_add()\n         ext4_mb_alloc_groupinfo()\n           // Publishes expanded array via RCU\n           rcu_assign_pointer(s_group_info, ...)\n\n         ext4_flex_group_add()\n           ext4_update_super()\n                                              ext4_get_group_info()\n                                                // Speculative / out-of-order read\n                                                [Loads old/smaller s_group_info pointer]\n             [Plain C store / smp_wmb()]\n             sbi->s_groups_count += ...;\n                                                // Reads new s_groups_count,\n                                                // boundary check passes\n                                                if (group >= s_groups_count)\n\n                                                // Out-of-bounds array access!\n                                                sbi_array_rcu_deref(..., s_group_info)\n\nFix this by using ext4_get_groups_count() to enforce acquire semantics."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ext4/balloc.c"
                    ],
                    "versions": [
                        {
                            "version": "100c0ad6c04597fefeaaba2bb1827cc015d95067",
                            "lessThan": "840de582e3c98cbf01911472c8d363b9499932ca",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "620a3c28221bb219b81bc0bffd065cc187494302",
                            "lessThan": "22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b4319e457d6e3fb33e443efeaf4634fc36e8a9ed",
                            "lessThan": "b3151c0908b0ae63bb2bc5faae8d8d3cf421169c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f",
                            "lessThan": "de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f",
                            "lessThan": "cd24b217717f152195de4abf8272ea1ef2a7c4be",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f",
                            "lessThan": "02eea74948bda0409d7e359969218a814238a42a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f",
                            "lessThan": "425add03ad9a2fd539bcb02a62b892e19ff0600d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f",
                            "lessThan": "b067d3c1f90b536e9aa9f48b19580475a0b34f0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "31668cebf45adfb6283e465e641c4f5a21b07afa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.10.181",
                            "lessThan": "5.10.275",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.113",
                            "lessThan": "5.15.226",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.30",
                            "lessThan": "6.1.193",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.3.4",
                            "lessThan": "6.4",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ext4/balloc.c"
                    ],
                    "versions": [
                        {
                            "version": "6.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.181",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.113",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.30",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.4",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.4",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.4",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.4",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.4",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.3.4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca"
                },
                {
                    "url": "https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be"
                },
                {
                    "url": "https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f"
                }
            ],
            "title": "ext4: fix out-of-bounds read in ext4_get_group_info()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}