{"id":"CVE-2026-138872","aliases":["CVE-2026-138872"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix out-of-bounds read in ext4_get_group_info()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:25:46.643Z","modified":"2026-12-01T06:17:29.610Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"100c0ad6c04597fefeaaba2bb1827cc015d95067","fixed":"840de582e3c98cbf01911472c8d363b9499932ca","status":"affected"},{"type":"git","introduced":"620a3c28221bb219b81bc0bffd065cc187494302","fixed":"22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89","status":"affected"},{"type":"git","introduced":"b4319e457d6e3fb33e443efeaf4634fc36e8a9ed","fixed":"b3151c0908b0ae63bb2bc5faae8d8d3cf421169c","status":"affected"},{"type":"git","introduced":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","fixed":"de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9","status":"affected"},{"type":"git","introduced":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","fixed":"cd24b217717f152195de4abf8272ea1ef2a7c4be","status":"affected"},{"type":"git","introduced":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","fixed":"02eea74948bda0409d7e359969218a814238a42a","status":"affected"},{"type":"git","introduced":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","fixed":"425add03ad9a2fd539bcb02a62b892e19ff0600d","status":"affected"},{"type":"git","introduced":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","fixed":"b067d3c1f90b536e9aa9f48b19580475a0b34f0f","status":"affected"},{"type":"git","version":"31668cebf45adfb6283e465e641c4f5a21b07afa","status":"affected"},{"type":"semver","introduced":"5.10.181","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"5.15.113","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.30","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"6.3.4","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138872","url":"https://www.cve.org/CVERecord?id=CVE-2026-138872","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:26.265Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138872","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138872","licence":"Public domain","modified":"2026-12-01T06:17:29.610Z"}],"updatedAt":"2026-12-01T06:32:14.260Z","epss":{"score":0.00178,"percentile":0.07662,"date":"2026-12-01T12:00:22.000Z"}}