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

CVE-2026-80718
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < 5f43d2c1bea280dcdfabaf156c25e7402fb8039f ; affected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < 92c43ac3c2b09eb16162e8144e73c00b7c3e29d6 ; affected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < 6fc7da2a052f2825fff785e860e67183f5acaaba ; affected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < 01504da375f5b19df195cb1cb1cf1dd184318f97 ; affected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < a6940b84c8c035da465b7165fdfcfb005545724e ; affected a63d4ac4ab6094c051a5a240260d16117a7a2f86 < 32134cf9211b83bed9076d0739c5906fbea4c763
Linux · Linuxaffected 3.18 ; unaffected 0 < 3.18 ; unaffected 5.10.265 ≤ 5.10.* ; unaffected 5.15.216 ≤ 5.15.* ; unaffected 6.1.183 ≤ 6.1.* ; unaffected 6.6.151 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD