{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "100c0ad6c04597fefeaaba2bb1827cc015d95067"
            },
            {
              "fixed": "840de582e3c98cbf01911472c8d363b9499932ca"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "620a3c28221bb219b81bc0bffd065cc187494302"
            },
            {
              "fixed": "22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "b4319e457d6e3fb33e443efeaf4634fc36e8a9ed"
            },
            {
              "fixed": "b3151c0908b0ae63bb2bc5faae8d8d3cf421169c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5354b2af34064a4579be8bc0e2f15a7b70f14b5f"
            },
            {
              "fixed": "de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9"
            },
            {
              "fixed": "cd24b217717f152195de4abf8272ea1ef2a7c4be"
            },
            {
              "fixed": "02eea74948bda0409d7e359969218a814238a42a"
            },
            {
              "fixed": "425add03ad9a2fd539bcb02a62b892e19ff0600d"
            },
            {
              "fixed": "b067d3c1f90b536e9aa9f48b19580475a0b34f0f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "31668cebf45adfb6283e465e641c4f5a21b07afa"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.181"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.113"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.30"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.3.4"
            },
            {
              "fixed": "6.4"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.4.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138872.json"
  },
  "details": "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-\u003es_groups_count += ...;\n                                                // Reads new s_groups_count,\n                                                // boundary check passes\n                                                if (group \u003e= 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.",
  "id": "CVE-2026-138872",
  "modified": "2026-12-01T06:45:59.598319629Z",
  "published": "2026-11-30T13:25:46.643Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/02eea74948bda0409d7e359969218a814238a42a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/22ee086e5c96d9e0f47ed0450b5e3b2d39ae9a89"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/425add03ad9a2fd539bcb02a62b892e19ff0600d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/840de582e3c98cbf01911472c8d363b9499932ca"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b067d3c1f90b536e9aa9f48b19580475a0b34f0f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b3151c0908b0ae63bb2bc5faae8d8d3cf421169c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cd24b217717f152195de4abf8272ea1ef2a7c4be"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/de1e5704b3d71ef2c111ea424aa8e0e3ee8c6bf9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138872.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138872"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ext4: fix out-of-bounds read in ext4_get_group_info()"
}