net: hip04: fix RX buffer leak on build_skb failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 701a0fd5231866db08cebcd502894699f49cb960 · < 80d977f280b4eccd4ac5369871d0ecb2b9c9a49d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: hip04: fix RX buffer leak on build_skb failure
When build_skb() fails in hip04_rx_poll(), the driver jumps to the refill path without releasing the current RX buffer and its DMA mapping. Installing a replacement buffer then overwrites the slot references and leaks both resources.
Keep the current slot intact and return budget so NAPI retries the same buffer. Also free a newly allocated RX fragment when dma_map_single() fails.
This issue was found by an in-house static analysis tool.
From the CVE record · Linux
The Linux kernel hip04 driver leaks an RX buffer and its DMA mapping if build_skb() fails during RX polling. A separate DMA mapping failure can leak a newly allocated RX fragment. The input does not establish whether an attacker can trigger these failures or specify access or interaction requirements.
Engineers running Linux kernels with the hip04 network driver should check whether their kernel is affected; affected versions are not specified.