CVE-2026-31644: net: lan966x: fix use-after-free and leak in lan966x_fdma_reload()
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: fix use-after-free and leak in lan966xfdmareload()
When lan966xfdmareload() fails to allocate new RX buffers, the restore path restarts DMA using old descriptors whose pages were already freed via lan966xfdmarxfreepages(). Since pagepoolputfullpage() can release pages back to the buddy allocator, the hardware may DMA into memory now owned by other kernel subsystems.
Additionally, on the restore path, the newly created page pool (if allocation partially succeeded) is overwritten without being destroyed, leaking it.
Fix both issues by deferring the release of old pages until after the new allocation succeeds. Save the old page array before the allocation so old pages can be freed on the success path. On the failure path, the old descriptors, pages and page pool are all still valid, making the restore safe. Also ensure the restore path re-enables NAPI and wakes the netdev, matching the success path.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31644?
CVE-2026-31644 has been classified as a high severity vulnerability due to potential memory corruption issues.
How do I fix CVE-2026-31644?
To fix CVE-2026-31644, update your Linux kernel to a version that has the patch applied, specifically versions after the affected release.
What are the affected versions for CVE-2026-31644?
CVE-2026-31644 affects Linux kernel versions between 6.12.1 and 6.12.82, as well as versions 6.13 to 6.19.13 and several 7.0 release candidates.
Can CVE-2026-31644 lead to system crashes?
Yes, CVE-2026-31644 can potentially lead to system instability and crashes due to the use-after-free vulnerability.
What components are impacted by CVE-2026-31644?
CVE-2026-31644 specifically impacts the LAN966x driver within the Linux kernel.