net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6af55ff52b02d492d45db88df3e461fa51a6f753 · < 1b1d3c5d58a80a19d017a409aa2308162bab5bbf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle
dma_free_coherent() in error path takes priv->rx_buf.alloc_len as the dma handle. This would lead to improper unmapping of the buffer.
Change the dma handle to priv->rx_buf.alloc_phys.
From the CVE record · Linux
The Linux kernel’s ec_bhf Ethernet driver passes the buffer length instead of its DMA handle to dma_free_coherent() on an error path, causing improper buffer unmapping. The input does not describe how an attacker could trigger this path or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ec_bhf Ethernet driver should check whether their kernel includes the fix; affected versions are not specified.