# CVE-2026-80718: mm/percpu-km: fix bitmap overflow and accounting in pcpu_create_chunk()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-28T06:53:15.490Z
- Modified: 2026-08-29T07:16:53.323Z
- Assigned by: Linux

## Description

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

mm/percpu-km: fix bitmap overflow and accounting in pcpu_create_chunk()

In pcpu_create_chunk(), nr_pages is the total contiguous backing
allocation, i.e., nr_units * pcpu_unit_pages, but pcpu_chunk_populated()
uses it to set chunk->populated, whose size is pcpu_unit_pages, bitmap. 
Since bit N in chunk->populated means page offset N inside every unit is
backed.  When nr_units > 1, the function writes beyond chunk->populated. 
Fix it by using chunk->nr_pages.

It also fixes the global pcpu_nr_empty_pop_pages accounting, since
pcpu_balance_free() only iterates up to chunk->nr_pages.

Commit a63d4ac4ab609 ("percpu: make percpu-km set chunk->populated bitmap
properly") introduced the bitmap overflow issue.  Later, commit
b539b87fed37f ("percpu: implmeent pcpu_nr_empty_pop_pages and
chunk->nr_populated") added pcpu_nr_empty_pop_pages and caused the
accounting issue.

(As written by CVE List.)

## Affected

- Linux Linux: from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 5f43d2c1bea280dcdfabaf156c25e7402fb8039f; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 92c43ac3c2b09eb16162e8144e73c00b7c3e29d6; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 6fc7da2a052f2825fff785e860e67183f5acaaba; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 01504da375f5b19df195cb1cb1cf1dd184318f97; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before a6940b84c8c035da465b7165fdfcfb005545724e; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 32134cf9211b83bed9076d0739c5906fbea4c763; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 5c7fc39bf19abb38a996aaad77b3e3a8f48581c3; from a63d4ac4ab6094c051a5a240260d16117a7a2f86 before 89b1b79c308818a715e75f28744b70d8940a07c9; 3.18 (not affected: before 3.18; from 5.10.265 up to 5.10.*; from 5.15.216 up to 5.15.*; from 6.1.183 up to 6.1.*; from 6.6.151 up to 6.6.*; from 6.12.103 up to 6.12.*; from 6.18.44 up to 6.18.*; from 7.1.8 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/5f43d2c1bea280dcdfabaf156c25e7402fb8039f>
- <https://git.kernel.org/stable/c/92c43ac3c2b09eb16162e8144e73c00b7c3e29d6>
- <https://git.kernel.org/stable/c/6fc7da2a052f2825fff785e860e67183f5acaaba>
- <https://git.kernel.org/stable/c/01504da375f5b19df195cb1cb1cf1dd184318f97>
- <https://git.kernel.org/stable/c/a6940b84c8c035da465b7165fdfcfb005545724e>
- <https://git.kernel.org/stable/c/32134cf9211b83bed9076d0739c5906fbea4c763>
- <https://git.kernel.org/stable/c/5c7fc39bf19abb38a996aaad77b3e3a8f48581c3>
- <https://git.kernel.org/stable/c/89b1b79c308818a715e75f28744b70d8940a07c9>

## Sources

- CVE List: [CVE-2026-80718](https://www.cve.org/CVERecord?id=CVE-2026-80718), CVE Terms of Use, modified 2026-08-29
- NVD: [CVE-2026-80718](https://nvd.nist.gov/vuln/detail/CVE-2026-80718), Public domain, modified 2026-08-29

---

Page: https://cve.day/CVE-2026-80718 · Whole record: https://cve.day/CVE-2026-80718.json · Rebuilt by cve.day 2026-11-25T22:59:35.625Z
