CVE-2026-53298: net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue()
If queue entry or DMA descriptor list allocation fails in airoha_qdma_init_rx_queue routine, airoha_qdma_cleanup() will trigger a NULL pointer dereference running netif_napi_del() for RX queue NAPIs since netif_napi_add() has never been executed to this particular RX NAPI. The issue is due to the early ndesc initialization in airoha_qdma_init_rx_queue() since airoha_qdma_cleanup() relies on ndesc value to check if the queue is properly initialized. Fix the issue moving ndesc initialization at end of airoha_qdma_init_tx routine. Move page_pool allocation after descriptor list allocation in order to avoid memory leaks if desc allocation fails.
The Linux kernel CVE team has assigned CVE-2026-53298 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 23020f04932701d5c8363e60756f12b43b8ed752 and fixed in 6.12.91 with commit d36be272adda7f313e39dd118086955d993bf6a7 Issue introduced in 6.11 with commit 23020f04932701d5c8363e60756f12b43b8ed752 and fixed in 6.18.33 with commit 4d4acfa348a1d8c0941004823662ede0fdb5dea5 Issue introduced in 6.11 with commit 23020f04932701d5c8363e60756f12b43b8ed752 and fixed in 7.0.10 with commit 14dc48e5ba73d5c69559bf1a1a6884f7843aade7 Issue introduced in 6.11 with commit 23020f04932701d5c8363e60756f12b43b8ed752 and fixed in 7.1 with commit 379050947a1828826ad7ea50c95245a56929b35a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53298
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/airoha/airoha_eth.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d36be272adda7f313e39dd118086955d993bf6a7 https://git.kernel.org/stable/c/4d4acfa348a1d8c0941004823662ede0fdb5dea5 https://git.kernel.org/stable/c/14dc48e5ba73d5c69559bf1a1a6884f7843aade7 https://git.kernel.org/stable/c/379050947a1828826ad7ea50c95245a56929b35a