Skip to contentSkip to conversation

CVE-2026-46162: ice: fix double free in ice_sf_eth_activate() error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

ice: fix double free in ice_sf_eth_activate() error path

When auxiliary_device_add() fails, ice_sf_eth_activate() jumps to aux_dev_uninit and calls auxiliary_device_uninit(&sf_dev->adev).

The device release callback ice_sf_dev_release() frees sf_dev, but the current error path falls through to sf_dev_free and calls kfree(sf_dev) again, causing a double free.

Keep kfree(sf_dev) for the auxiliary_device_init() failure path, but avoid falling through to sf_dev_free after auxiliary_device_uninit().

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

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

	Issue introduced in 6.12 with commit 13acc5c4cdbeccf3274cbbd4de2e2d316b8c4ce6 and fixed in 6.12.88 with commit 2ca30340b5028ddc3f17086a538feeff06167b1b
	Issue introduced in 6.12 with commit 13acc5c4cdbeccf3274cbbd4de2e2d316b8c4ce6 and fixed in 6.18.30 with commit 121d1f253aed515cd85748f68c664a6cb756e8ad
	Issue introduced in 6.12 with commit 13acc5c4cdbeccf3274cbbd4de2e2d316b8c4ce6 and fixed in 7.0.7 with commit d0c6a4816609f145ffcc74e64baa214c571c17c6
	Issue introduced in 6.12 with commit 13acc5c4cdbeccf3274cbbd4de2e2d316b8c4ce6 and fixed in 7.1-rc1 with commit 9aab1c3d7299285e2569cbc0ed5892d631a241b2

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-46162

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/intel/ice/ice_sf_eth.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/2ca30340b5028ddc3f17086a538feeff06167b1b
	https://git.kernel.org/stable/c/121d1f253aed515cd85748f68c664a6cb756e8ad
	https://git.kernel.org/stable/c/d0c6a4816609f145ffcc74e64baa214c571c17c6
	https://git.kernel.org/stable/c/9aab1c3d7299285e2569cbc0ed5892d631a241b2