Skip to content
OpenAdvisories
Unscored CVE-2025-38417 EUVD-2025-22669GHSA-3g9v-mx9v-wmwv

ice: fix eswitch code memory leak in reset scenario

Published Jul 25, 2025 · Updated Nov 5, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-nvidia-6.14 Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.14 Package: linux-oem-6.5 Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.5 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

ice: fix eswitch code memory leak in reset scenario

Add simple eswitch mode checker in attaching VF procedure and allocate
required port representor memory structures only in switchdev mode.
The reset flows triggers VF (if present) detach/attach procedure.
It might involve VF port representor(s) re-creation if the device is
configured is switchdev mode (not legacy one).
The memory was blindly allocated in current implementation,
regardless of the mode and not freed if in legacy mode.

Kmemeleak trace:
unreferenced object (percpu) 0x7e3bce5b888458 (size 40):
comm "bash", pid 1784, jiffies 4295743894
hex dump (first 32 bytes on cpu 45):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc 0):
pcpu_alloc_noprof+0x4c4/0x7c0
ice_repr_create+0x66/0x130 [ice]
ice_repr_create_vf+0x22/0x70 [ice]
ice_eswitch_attach_vf+0x1b/0xa0 [ice]
ice_reset_all_vfs+0x1dd/0x2f0 [ice]
ice_pci_err_resume+0x3b/0xb0 [ice]
pci_reset_function+0x8f/0x120
reset_store+0x56/0xa0
kernfs_fop_write_iter+0x120/0x1b0
vfs_write+0x31c/0x430
ksys_write+0x61/0xd0
do_syscall_64+0x5b/0x180
entry_SYSCALL_64_after_hwframe+0x76/0x7e

Testing hints (ethX is PF netdev):
- create at least one VF
echo 1 > /sys/class/net/ethX/device/sriov_numvfs
- trigger the reset
echo 1 > /sys/class/net/ethX/device/reset

Affected products

VendorProductAffectedFixed
Linux Linux 6.12 6.12.35

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.12.35-1 —
Debian 13 linux 6.12.35-1 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 24.04 LTS linux-aws-6.14 +1 6.14.0-1015.15~24.04.1 USN-7833-3, USN-7833-1
Ubuntu 24.04 LTS linux-azure-6.14 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu 24.04 LTS linux-azure-nvidia-6.14 6.14.0-1007.7 USN-7834-1
Ubuntu 24.04 LTS linux-gcp-6.14 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu 24.04 LTS linux-hwe-6.14 6.14.0-34.34~24.04.1 USN-7856-1
Ubuntu 24.04 LTS linux-oem-6.14 6.14.0-1014.14 USN-7833-1
Ubuntu 24.04 LTS linux-riscv +6 No fix yet —
Ubuntu 24.04 LTS linux-riscv-6.14 6.14.0-34.34.1~24.04.1 —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 6.14.0-1014.14~24.04.1 USN-7833-2
ReleasePackageFixed inAdvisory
RHEL 10 rv +77 6.12.0-55.29.1.el10_0 RHSA-2025:14510
RHEL 9 rv +77 5.14.0-570.37.1.el9_6 RHSA-2025:14420

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 kernel-doc +1 6.12.0-55.29.1.el10_0 ALSA-2025:14510
AlmaLinux 9 rv +75 5.14.0-570.37.1.el9_6 ALSA-2025:14420

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 kernel 6.12.0-55.29.1.el10_0 RLSA-2025:14510
Rocky Linux 9 kernel 5.14.0-570.37.1.el9_6 RLSA-2025:14420
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +5 6.4.0-150700.53.11.1 SUSE-SU-2025:02997-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.11.1 SUSE-SU-2025:03011-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.11.1.150700.17.9.4 SUSE-SU-2025:02997-1
SLES 15 SP7 kernel-docs 6.4.0-150700.53.11.3 SUSE-SU-2025:02997-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLES 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21179-1, SUSE-SU-2025:21139-1
SLES 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21074-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.6.1 SUSE-SU-2026:20560-1, SUSE-SU-2025:21074-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.11.1 SUSE-SU-2025:02997-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_3 1-150700.1.5.1 SUSE-SU-2025:02853-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_3 1-150700.15.3.4 SUSE-SU-2025:02997-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.13.1 SUSE-SU-2025:02853-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 openSUSE-SU-2025:20081-1
openSUSE Leap 16.0 kernel-rt +10 6.12.0-160000.6.1 openSUSE-SU-2025:20081-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 rv +28 6.12.0-55.29.1.0.1.el10_0 ELSA-2025-14510
Oracle Linux 9 kernel-uek +34 6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 9 rv +28 5.14.0-570.37.1.0.1.el9_6 ELSA-2025-14420

Advisories 24

References