net: airoha: Fix memory leak in airoha_qdma_rx_process()
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 |
|
|
6.18.246.19.147.0In the Linux kernel, the following vulnerability has been resolved:
net: airoha: Fix memory leak in airoha_qdma_rx_process()
If an error occurs on the subsequents buffers belonging to the non-linear part of the skb (e.g. due to an error in the payload length reported by the NIC or if we consumed all the available fragments for the skb), the page_pool fragment will not be linked to the skb so it will not return to the pool in the airoha_qdma_rx_process() error path. Fix the memory leak partially reverting commit 'd6d2b0e1538d ("net: airoha: Fix page recycling in airoha_qdma_rx_process()")' and always running page_pool_put_full_page routine in the airoha_qdma_rx_process() error path.
From the CVE record · Linux
The Linux kernel’s airoha network driver can leak a page-pool fragment when processing an error in subsequent buffers of a non-linear packet. This can occur if the NIC reports an erroneous payload length or the packet runs out of available fragments; the input does not establish whether an attacker can trigger it remotely or whether authentication or user interaction is required.
Engineers running the Linux kernel with the airoha network driver should check their kernel version; affected versions are not specified.