net: ena: fix MMIO read buffer leak on probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1738cd3ed342294360d6a74d4e58800004bff854 · < 30ff01b4c7e419bb70f40f01dcd7f6af680808b3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ena: fix MMIO read buffer leak on probe failure
ena_device_init() initializes the MMIO read mechanism with ena_com_mmio_reg_read_request_init(), which allocates a coherent DMA buffer for MMIO read responses.
The normal removal path releases this buffer through ena_com_mmio_reg_read_request_destroy(). However, if ena_probe() fails after ena_device_init() succeeds, the error path destroys the admin resources and eventually frees ena_dev without destroying the MMIO read request, leaving the coherent DMA buffer allocated.
Call ena_com_mmio_reg_read_request_destroy() in the probe error path before releasing the remaining device resources.
This issue was found by manual code inspection.
From the CVE record · Linux
The Linux kernel’s ena driver can leave a coherent DMA buffer allocated if device probing fails after MMIO read initialization. The input does not describe an attacker-controlled trigger, authentication requirement, or user interaction.
Engineers running Linux systems that use the ena driver should check their kernel versions; affected versions were not provided.