{"id":"CVE-2026-31644","aliases":["CVE-2026-31644"],"related":[],"kind":"vulnerability","state":"published","title":"net: lan966x: fix use-after-free and leak in lan966x_fdma_reload()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: fix use-after-free and leak in lan966x_fdma_reload()\n\nWhen lan966x_fdma_reload() fails to allocate new RX buffers, the restore\npath restarts DMA using old descriptors whose pages were already freed\nvia lan966x_fdma_rx_free_pages(). Since page_pool_put_full_page() can\nrelease pages back to the buddy allocator, the hardware may DMA into\nmemory now owned by other kernel subsystems.\n\nAdditionally, on the restore path, the newly created page pool (if\nallocation partially succeeded) is overwritten without being destroyed,\nleaking it.\n\nFix both issues by deferring the release of old pages until after the\nnew allocation succeeds. Save the old page array before the allocation\nso old pages can be freed on the success path. On the failure path, the\nold descriptors, pages and page pool are all still valid, making the\nrestore safe. Also ensure the restore path re-enables NAPI and wakes\nthe netdev, matching the success path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: fix use-after-free and leak in lan966x_fdma_reload()\n\nWhen lan966x_fdma_reload() fails to allocate new RX buffers, the restore\npath restarts DMA using old descriptors whose pages were already freed\nvia lan966x_fdma_rx_free_pages(). Since page_pool_put_full_page() can\nrelease pages back to the buddy allocator, the hardware may DMA into\nmemory now owned by other kernel subsystems.\n\nAdditionally, on the restore path, the newly created page pool (if\nallocation partially succeeded) is overwritten without being destroyed,\nleaking it.\n\nFix both issues by deferring the release of old pages until after the\nnew allocation succeeds. Save the old page array before the allocation\nso old pages can be freed on the success path. On the failure path, the\nold descriptors, pages and page pool are all still valid, making the\nrestore safe. Also ensure the restore path re-enables NAPI and wakes\nthe netdev, matching the success path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: lan966x: soluciona el uso después de liberación y la fuga en lan966x_fdma_reload()\n\nCuando lan966x_fdma_reload() falla al asignar nuevos búferes RX, la ruta de restauración reinicia el DMA usando descriptores antiguos cuyas páginas ya fueron liberadas a través de lan966x_fdma_rx_free_pages(). Dado que page_pool_put_full_page() puede liberar páginas de vuelta al asignador buddy, el hardware puede realizar DMA en memoria ahora propiedad de otros subsistemas del kernel.\n\nAdemás, en la ruta de restauración, el pool de páginas recién creado (si la asignación tuvo éxito parcialmente) es sobrescrito sin ser destruido, provocando su fuga.\n\nSoluciona ambos problemas posponiendo la liberación de páginas antiguas hasta después de que la nueva asignación tenga éxito. Guarda el array de páginas antiguas antes de la asignación para que las páginas antiguas puedan ser liberadas en la ruta de éxito. En la ruta de fallo, los descriptores antiguos, las páginas y el pool de páginas siguen siendo todos válidos, haciendo que la restauración sea segura. También asegura que la ruta de restauración vuelva a habilitar NAPI y despierte el netdev, coincidiendo con la ruta de éxito.","source":"nvd"}],"published":"2026-04-24T14:44:58.197Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"89ba464fcf548d64bc7215dfe769f791330ae8b6","fixed":"691082c0b93c13a5e068c0905f673060bddc204e","status":"affected"},{"type":"git","introduced":"89ba464fcf548d64bc7215dfe769f791330ae8b6","fixed":"92a673019943770930e2a8bfd52e1aad47a1fc1f","status":"affected"},{"type":"git","introduced":"89ba464fcf548d64bc7215dfe769f791330ae8b6","fixed":"9950e9199b3dfdfbde0b8d96ba947d7b11243801","status":"affected"},{"type":"git","introduced":"89ba464fcf548d64bc7215dfe769f791330ae8b6","fixed":"59c3d55a946cacdb4181600723c20ac4f4c20c84","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.82","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.1","fixed":"6.12.82"},{"status":"affected","introduced":"6.13","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"6.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/691082c0b93c13a5e068c0905f673060bddc204e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92a673019943770930e2a8bfd52e1aad47a1fc1f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9950e9199b3dfdfbde0b8d96ba947d7b11243801","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59c3d55a946cacdb4181600723c20ac4f4c20c84","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31644","url":"https://www.cve.org/CVERecord?id=CVE-2026-31644","licence":"CVE Terms of Use","modified":"2026-08-05T12:24:06.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31644","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31644","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.530Z","epss":{"score":0.0013,"percentile":0.02831,"date":"2026-12-01T12:00:22.000Z"}}