net: page_pool: fix use-after-free in page_pool_recycle_ring_bulk()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: net: page_pool: fix use-after-free in page_pool_recycle_ring_bulk() With CONFIG_PAGE_POOL_STATS=y, page_pool_recycle_ring_bulk() updates the recycle stats after dropping the producer lock. If it just recycled the last inflight netmems of a pool being destroyed, page_pool_release() can pass its producer-lock barrier and free the pool before recycle_stat_add() runs. Commit fcc680a647ba7 ("page_pool: allow mixing PPs within one bulk") moved this stat update after the unlock. Commit 271683bb2cf32 ("page_pool: Fix use-after-free in page_pool_recycle_in_ring") later added the barrier, but only fixed page_pool_recycle_in_ring(). Move the update back under the lock.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From fcc680a647ba77370480fe753664cc10d572b240 · fixed in f78d45d5f1ac4141a03f033141368671da4293e4; From fcc680a647ba77370480fe753664cc10d572b240 · fixed in 0b105f4eb78e5ee39e5a74c47c9efd69b6ac849c; From fcc680a647ba77370480fe753664cc10d572b240 · fixed in bdea4980182e3badac74f04df6c07492b91c569e
- Linux Linux
6.14
- KernelLinux
From 6.14.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10