net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race
In the Linux kernel, the following vulnerability has been resolved: net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race This bug was discovered while testing the hns3 driver under channel reconfiguration (`ethtool -L` / `ethtool -G`) with iperf3 traffic on arm64. The race is intermittently triggered when page_pool_destroy() runs page_pool_scrub() concurrently with page return via page_pool_put_netmem() on a different CPU. A WARN in page_pool_clear_pp_info() surfaced the dangling DMA index bits left by the cmpxchg loser, which led to the investigation. page_pool_scrub() iterates pool->dma_mapped via xa_for_each() with no page ref held. __page_pool_release_netmem_dma() currently reads and writes netmem fields (dma_addr, DMA index bits in pp_magic) after xa_cmpxchg() returns. The unref path calls put_page() unconditionally regardless of the cmpxchg outcome; when it loses the cmpxchg, it still frees the page before the scrub winner finishes these netmem accesses, so scrub touches a freed page -- a Use-After-Free. Fix this by splitting the DMA release into two functions: 1. __page_pool_unmap_netmem_dma() caches dma_addr before xa_cmpxchg(), does the cmpxchg to remove the DMA mapping, and calls dma_unmap on the cached address. It never touches netmem fields after the cmpxchg, making it safe for the scrub path which holds no page ref. 2. __page_pool_release_netmem_dma() wraps the above and additionally clears dma_addr and DMA index bits in netmem fields. Thi
CVE-2026-90201
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-90201
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4f51fb0d257ff4d406ec27966902de075e3b118e",
"lessThan": "bbfef303f980c1c078b8fa142e10a0e2fbcdd247",
"versionType": "git"
},
{
"status": "affected",
"version": "ee62ce7a1d909ccba0399680a03c2dee83bcae95",
"lessThan": "424a9fc4876cc7f28e9cb0aa8d92e920d726e350",
"versionType": "git"
},
{
"status": "affected",
"version": "ee62ce7a1d909ccba0399680a03c2dee83bcae95",
"lessThan": "9b65b0253ad5a66f73efee9a79a21a1e2b57cf59",
"versionType": "git"
},
{
"status": "affected",
"version": "ee62ce7a1d909ccba0399680a03c2dee83bcae95",
"lessThan": "24ef02f934eeb48830cff6b739abc3c62b1d107b",
"versionType": "git"
},
{
"status": "affected",
"version": "c30ae60f41f9edd6e1b5cad41cf28ce04dae39e4",
"versionType": "git"
},
{
"status": "affected",
"version": "6.12.34",
"lessThan": "6.12.110",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.15.3",
"lessThan": "6.16",
"versionType": "semver"
}
],
"programFiles": [
"net/core/page_pool.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.16"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.16",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/core/page_pool.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-90201
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #36579 · Revision 1
- Added to Heist Feed
- Publisher date