net: airoha: Move ndesc initialization at end of airoha_qdma_init_tx()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
7.0.107.1In 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.
From the CVE record · Linux
The Linux kernel's airoha QDMA transmit-queue initialization can leave the queue in a state where cleanup dereferences a NULL pointer if queue-entry allocation fails. The input does not establish whether an attacker can trigger the failure, or specify network access, authentication, or user-interaction requirements.
Operators running Linux kernels with the airoha QDMA driver should check their versions; affected versions were not provided.