# CVE-2026-72213: mm/hugetlb: fix hugetlb cgroup rsvd charge/uncharge mismatch

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-08-15T05:54:07.854Z
- **Modified:** 2026-10-30T13:19:48.497Z

## Who should check

- Anyone running Linux \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< f8dfdf725bccb0ae41eead2f6da8183727218855; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 043c509f2488033c68c46d2de2af082fcd568612; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 1697d253f51cf5e3825a3423ff49e128a3502ab2; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< b785f2bd9496facedc0a031be09cddcd1d3c84d3; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 15807d0ddde37407af72859426b654f3d1972b00
- Anyone running Linux 5.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/hugetlb: fix hugetlb cgroup rsvd charge/uncharge mismatch

In alloc\_hugetlb\_folio(), a single h\_cg pointer is used for both the rsvd
and non-rsvd hugetlb cgroup charges.  When map\_chg is set,
hugetlb\_cgroup\_charge\_cgroup\_rsvd() stores the charged cgroup in h\_cg, but
the immediately following hugetlb\_cgroup\_charge\_cgroup() overwrites h\_cg
with the non-rsvd cgroup pointer.

As a result, hugetlb\_cgroup\_commit\_charge\_rsvd() stores the wrong
(non-rsvd) cgroup pointer into the folio's rsvd slot.

When the folio is later freed, free\_huge\_folio() unconditionally calls
both hugetlb\_cgroup\_uncharge\_folio() and
hugetlb\_cgroup\_uncharge\_folio\_rsvd().  The rsvd uncharge reads back the
wrong cgroup from the folio and decrements a counter that was never
charged for that cgroup, causing a page\_counter underflow:

  page\_counter underflow: -512 nr\_pages=512
  WARNING: mm/page\_counter.c:61 at page\_counter\_cancel

Fix this by introducing a separate h\_cg\_rsvd pointer exclusively for the
rsvd charge path, keeping the rsvd and non-rsvd charges fully independent
through their charge, commit, and error uncharge paths.

## Affected and fixed versions

- Linux: \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< f8dfdf725bccb0ae41eead2f6da8183727218855; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 043c509f2488033c68c46d2de2af082fcd568612; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 1697d253f51cf5e3825a3423ff49e128a3502ab2; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< b785f2bd9496facedc0a031be09cddcd1d3c84d3; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 15807d0ddde37407af72859426b654f3d1972b00 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 15807d0ddde37407af72859426b654f3d1972b00 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72213. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72213.md
Affected: Linux >= 08cf9faf7558020aed6a0da5810b824b07139dfa, < f8dfdf725bccb0ae41eead2f6da8183727218855; >= 08cf9faf7558020aed6a0da5810b824b07139dfa, < 043c509f2488033c68c46d2de2af082fcd568612; >= 08cf9faf7558020aed6a0da5810b824b07139dfa, < 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd; >= 08cf9faf7558020aed6a0da…
Fixed in: Linux 043c509f2488033c68c46d2de2af082fcd568612, Linux 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd, Linux 1697d253f51cf5e3825a3423ff49e128a3502ab2, Linux 15807d0ddde37407af72859426b654f3d1972b00

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72213 being exploited?

There is no confirmed exploitation: CVE-2026-72213 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-72213?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-72213?

Linux \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< f8dfdf725bccb0ae41eead2f6da8183727218855; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 043c509f2488033c68c46d2de2af082fcd568612; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 1697d253f51cf5e3825a3423ff49e128a3502ab2; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< b785f2bd9496facedc0a031be09cddcd1d3c84d3; \>= 08cf9faf7558020aed6a0da5810b824b07139dfa, \< 15807d0ddde37407af72859426b654f3d1972b00; Linux 5.7.

### Is there a fix for CVE-2026-72213?

Yes. Fixed in Linux 043c509f2488033c68c46d2de2af082fcd568612, Linux 5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd, Linux 1697d253f51cf5e3825a3423ff49e128a3502ab2, Linux 15807d0ddde37407af72859426b654f3d1972b00. Upgrade Linux to 15807d0ddde37407af72859426b654f3d1972b00 or later.

### How do I check if I'm affected by CVE-2026-72213?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f8dfdf725bccb0ae41eead2f6da8183727218855>
- other: <https://git.kernel.org/stable/c/043c509f2488033c68c46d2de2af082fcd568612>
- other: <https://git.kernel.org/stable/c/5c32ae4a91fb5f4941328e0c1720a7fa4189c3bd>
- other: <https://git.kernel.org/stable/c/1697d253f51cf5e3825a3423ff49e128a3502ab2>
- other: <https://git.kernel.org/stable/c/b785f2bd9496facedc0a031be09cddcd1d3c84d3>
- other: <https://git.kernel.org/stable/c/15807d0ddde37407af72859426b654f3d1972b00>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72213>

HTML: <https://flawdb.com/CVE-2026-72213> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72213>
