net: ena: fix MMIO read buffer leak on probe failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0d31edc7ff1f7f265c11248819dfaf5a8274b209, Kernel 30ff01b4c7e419bb70f40f01dcd7f6af680808b3, Kernel 47785f9f638b064ce6e32e8e3b6f1ffd83849fc2 and 5 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.9, >=1738cd3ed342294360d6a74d4e58800004bff854 <0d31edc7ff1f7f265c11248819dfaf5a8274b209, >=1738cd3ed342294360d6a74d4e58800004bff854 <30ff01b4c7e419bb70f40f01dcd7f6af680808b3, >=1738cd3ed342294360d6a74d4e58800004bff854 <47785f9f638b064ce6e32e8e3b6f1ffd83849fc2, >=1738cd3ed342294360d6a74d4e58800004bff854 <4b90112826439149dcee20e73d02f25ae0e2a9fb, >=1738cd3ed342294360d6a74d4e58800004bff854 <7bd3e9a2d0c288e54f51df260d9433163f5fbc1e, >=1738cd3ed342294360d6a74d4e58800004bff854 <9476b4468862927297c94c440863cd8ed1e7cc83, >=1738cd3ed342294360d6a74d4e58800004bff854 <9de940a3c5731be5a544f6f366576cc4dc073f7c, >=1738cd3ed342294360d6a74d4e58800004bff854 <a0f5fd7a285f44fa402242f26feddfe1d4a0fc6c | 0d31edc7ff1f7f265c11248819dfaf5a8274b209, 30ff01b4c7e419bb70f40f01dcd7f6af680808b3, 47785f9f638b064ce6e32e8e3b6f1ffd83849fc2, 4b90112826439149dcee20e73d02f25ae0e2a9fb, 7bd3e9a2d0c288e54f51df260d9433163f5fbc1e, 9476b4468862927297c94c440863cd8ed1e7cc83, 9de940a3c5731be5a544f6f366576cc4dc073f7c, a0f5fd7a285f44fa402242f26feddfe1d4a0fc6c |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket