CVE-2026-139412: net: alacritech: fix dma_free_coherent() in error path
In the Linux kernel, the following vulnerability has been resolved:
net: alacritech: fix dmafreecoherent() in error path
In slicinitstatqueue(), a series of coherent buffers is allocated with the length size. The size is then stored in stq->memsize for normal deallocation. However, in the error path, stq->memsize is also used but is not initialized. This error may leave the freed buffers mapped, leaking a resource and allowing the device to access freed memory.
Change the length in error path to size.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel alacritech driver, change the length argument in the error path of dma_free_coherent() to size.