KernelScan.io

HIGH

net/ethernet DMA Handle Leak

CVE-2026-43283

CVSS 8.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

KernelScan AI5.5MEDIUM

01

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.

02

Engine v0.2.0

Risk summary

Systems using Beckhoff CX5020 EtherCAT master modules may experience memory leaks and potential system instability when network interface initialization fails. The bug causes improper DMA buffer cleanup, leading to resource exhaustion over time. This affects industrial automation systems and embedded devices using this specific hardware.

Affecteddrivers/net/ethernet/ec_bhf.c (Beckhoff EtherCAT driver)

Vulnerability analysis

The vulnerability occurs in the error handling path of the ec_bhf_open() function where dma_free_coherent() is called with the wrong DMA handle parameter. Instead of using the physical DMA address (priv->rx_buf.alloc_phys), the code incorrectly passes the buffer length (priv->rx_buf.alloc_len) as the DMA handle. This causes the DMA subsystem to fail to properly unmap and free the coherent DMA buffer, resulting in a memory leak. The fix corrects the parameter to use the proper physical address, ensuring DMA buffers are correctly released during error cleanup. The attack surface is local and requires low privileges to trigger through network interface operations.

03

BranchFixed inPatch commit
5.105.10.2520f589ee54fd6
5.155.15.202accd0599bc8e
6.16.1.1658320727be7ff
6.126.12.751b1371cd4032
6.186.18.161b1d3c5d58a8
6.196.19.67e54ff938beb
6.66.6.1281e300c33ef3c
mainline7.0ffe68c376699