CVE-2026-53299: net: airoha: Move ndesc initialization at end of airoha_qdma_init_tx()
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_tx()
If queue entry list allocation fails in airoha_qdma_init_tx_queue routine, airoha_qdma_cleanup_tx_queue() will trigger a NULL pointer dereference accessing the queue entry array. The issue is due to the early ndesc initialization in airoha_qdma_init_tx_queue(). Fix the issue moving ndesc initialization at end of airoha_qdma_init_tx routine.
The Linux kernel CVE team has assigned CVE-2026-53299 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 3f47e67dff1f7266e112c50313d63824f6f17102 and fixed in 7.0.10 with commit ece31f9dae0c3cd3277e66667e7b8ab2577cf34a Issue introduced in 6.19 with commit 3f47e67dff1f7266e112c50313d63824f6f17102 and fixed in 7.1 with commit f329924bb49458c65297f1361f545816a5b90998
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-53299
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/90619fdedfb9cc8a80f217d882ee7a84d3703e72 https://git.kernel.org/stable/c/ece31f9dae0c3cd3277e66667e7b8ab2577cf34a https://git.kernel.org/stable/c/f329924bb49458c65297f1361f545816a5b90998