net: airoha: fix BQL imbalance in TX path
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: fix BQL imbalance in TX path
Fix a possible BQL imbalance in airoha_dev_xmit(), where inflight packets are accounted only for the AIROHA_NUM_TX_RING netdev TX queues. The queue index is computed as:
qid = skb_get_queue_mapping(skb) % ARRAY_SIZE(qdma->q_tx) txq = netdev_get_tx_queue(dev, qid);
However, airoha_qdma_tx_napi_poll() accounts completions across all netdev TX queues (num_tx_queues), leading to inconsistent BQL accounting.
Also reset all netdev TX queues in the ndo_stop callback.
From the CVE record · Linux
The Linux kernel’s airoha transmit path can account for packets and completions across different sets of TX queues, causing a possible Byte Queue Limits (BQL) imbalance. The input does not specify an attacker action, resulting impact, or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel with the airoha network driver should check their installations; affected versions are not specified.