{"id":"CVE-2026-90201","aliases":["CVE-2026-90201"],"related":[],"kind":"vulnerability","state":"published","title":"net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race\n\nThis bug was discovered while testing the hns3 driver under channel\nreconfiguration (`ethtool -L` / `ethtool -G`) with iperf3 traffic on\narm64. The race is intermittently triggered when page_pool_destroy()\nruns page_pool_scrub() concurrently with page return via\npage_pool_put_netmem() on a different CPU. A WARN in\npage_pool_clear_pp_info() surfaced the dangling DMA index bits left\nby the cmpxchg loser, which led to the investigation.\n\npage_pool_scrub() iterates pool->dma_mapped via xa_for_each() with no\npage ref held. __page_pool_release_netmem_dma() currently reads and\nwrites netmem fields (dma_addr, DMA index bits in pp_magic) after\nxa_cmpxchg() returns. The unref path calls put_page() unconditionally\nregardless of the cmpxchg outcome; when it loses the cmpxchg, it still\nfrees the page before the scrub winner finishes these netmem accesses,\nso scrub touches a freed page -- a Use-After-Free.\n\nFix this by splitting the DMA release into two functions:\n\n1. __page_pool_unmap_netmem_dma() caches dma_addr before xa_cmpxchg(),\n   does the cmpxchg to remove the DMA mapping, and calls dma_unmap on\n   the cached address. It never touches netmem fields after the cmpxchg,\n   making it safe for the scrub path which holds no page ref.\n\n2. __page_pool_release_netmem_dma() wraps the above and additionally\n   clears dma_addr and DMA index bits in netmem fields. This is safe\n   only when the caller holds a page ref, so it is used by the return\n   path (page_pool_return_netmem).\n\nThe scrub path calls __page_pool_unmap_netmem_dma() directly; the return\npath calls __page_pool_release_netmem_dma().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race\n\nThis bug was discovered while testing the hns3 driver under channel\nreconfiguration (`ethtool -L` / `ethtool -G`) with iperf3 traffic on\narm64. The race is intermittently triggered when page_pool_destroy()\nruns page_pool_scrub() concurrently with page return via\npage_pool_put_netmem() on a different CPU. A WARN in\npage_pool_clear_pp_info() surfaced the dangling DMA index bits left\nby the cmpxchg loser, which led to the investigation.\n\npage_pool_scrub() iterates pool->dma_mapped via xa_for_each() with no\npage ref held. __page_pool_release_netmem_dma() currently reads and\nwrites netmem fields (dma_addr, DMA index bits in pp_magic) after\nxa_cmpxchg() returns. The unref path calls put_page() unconditionally\nregardless of the cmpxchg outcome; when it loses the cmpxchg, it still\nfrees the page before the scrub winner finishes these netmem accesses,\nso scrub touches a freed page -- a Use-After-Free.\n\nFix this by splitting the DMA release into two functions:\n\n1. __page_pool_unmap_netmem_dma() caches dma_addr before xa_cmpxchg(),\n   does the cmpxchg to remove the DMA mapping, and calls dma_unmap on\n   the cached address. It never touches netmem fields after the cmpxchg,\n   making it safe for the scrub path which holds no page ref.\n\n2. __page_pool_release_netmem_dma() wraps the above and additionally\n   clears dma_addr and DMA index bits in netmem fields. This is safe\n   only when the caller holds a page ref, so it is used by the return\n   path (page_pool_return_netmem).\n\nThe scrub path calls __page_pool_unmap_netmem_dma() directly; the return\npath calls __page_pool_release_netmem_dma().","source":"cvelist"}],"published":"2026-09-17T16:07:18.838Z","modified":"2026-10-19T09:19:10.163Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4f51fb0d257ff4d406ec27966902de075e3b118e","fixed":"bbfef303f980c1c078b8fa142e10a0e2fbcdd247","status":"affected"},{"type":"git","introduced":"ee62ce7a1d909ccba0399680a03c2dee83bcae95","fixed":"424a9fc4876cc7f28e9cb0aa8d92e920d726e350","status":"affected"},{"type":"git","introduced":"ee62ce7a1d909ccba0399680a03c2dee83bcae95","fixed":"9b65b0253ad5a66f73efee9a79a21a1e2b57cf59","status":"affected"},{"type":"git","introduced":"ee62ce7a1d909ccba0399680a03c2dee83bcae95","fixed":"24ef02f934eeb48830cff6b739abc3c62b1d107b","status":"affected"},{"type":"git","version":"c30ae60f41f9edd6e1b5cad41cf28ce04dae39e4","status":"affected"},{"type":"semver","introduced":"6.12.34","fixed":"6.12.110","status":"affected"},{"type":"semver","introduced":"6.15.3","fixed":"6.16","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bbfef303f980c1c078b8fa142e10a0e2fbcdd247","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/424a9fc4876cc7f28e9cb0aa8d92e920d726e350","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b65b0253ad5a66f73efee9a79a21a1e2b57cf59","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24ef02f934eeb48830cff6b739abc3c62b1d107b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90201","url":"https://www.cve.org/CVERecord?id=CVE-2026-90201","licence":"CVE Terms of Use","modified":"2026-10-19T08:59:37.392Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90201","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90201","licence":"Public domain","modified":"2026-10-19T09:19:10.163Z"}],"updatedAt":"2026-11-25T22:59:39.339Z","epss":{"score":0.00206,"percentile":0.11169,"date":"2026-12-01T12:00:22.000Z"}}