Skip to contentSkip to conversation

CVE-2026-98486: net: ena: fix MMIO read buffer leak on probe failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98486 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 6.12.112 with commit 7bd3e9a2d0c288e54f51df260d9433163f5fbc1e
	Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 6.18.55 with commit 30ff01b4c7e419bb70f40f01dcd7f6af680808b3
	Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 7.2.9 with commit 47785f9f638b064ce6e32e8e3b6f1ffd83849fc2
	Issue introduced in 4.9 with commit 1738cd3ed342294360d6a74d4e58800004bff854 and fixed in 7.3-rc5 with commit 9476b4468862927297c94c440863cd8ed1e7cc83

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98486

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/amazon/ena/ena_netdev.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/7bd3e9a2d0c288e54f51df260d9433163f5fbc1e
	https://git.kernel.org/stable/c/30ff01b4c7e419bb70f40f01dcd7f6af680808b3
	https://git.kernel.org/stable/c/47785f9f638b064ce6e32e8e3b6f1ffd83849fc2
	https://git.kernel.org/stable/c/9476b4468862927297c94c440863cd8ed1e7cc83