# CVE-2025-21883: ice: Fix deinitializing VF in error path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-03-27T14:57:11.766Z
- **Modified:** 2026-06-17T08:44:31.533Z

## Who should check

- Anyone running Linux \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 3c01102bec9592928e6b155da41cfcd5d25a2066; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< a4880583f88deba63504ce1c8287a70d39c01378; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 34393fd78d7183a007eaf0090966ebedcc29bd57; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c
- Anyone running Linux 6.4

## Description

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

ice: Fix deinitializing VF in error path

If ice\_ena\_vfs() fails after calling ice\_create\_vf\_entries(), it frees
all VFs without removing them from snapshot PF-VF mailbox list, leading
to list corruption.

Reproducer:
  devlink dev eswitch set $PF1\_PCI mode switchdev
  ip l s $PF1 up
  ip l s $PF1 promisc on
  sleep 1
  echo 1 \> /sys/class/net/$PF1/device/sriov\_numvfs
  sleep 1
  echo 1 \> /sys/class/net/$PF1/device/sriov\_numvfs

Trace (minimized):
  list\_add corruption. next-\>prev should be prev (ffff8882e241c6f0), but was 0000000000000000. (next=ffff888455da1330).
  kernel BUG at lib/list\_debug.c:29!
  RIP: 0010:\_\_list\_add\_valid\_or\_report+0xa6/0x100
   ice\_mbx\_init\_vf\_info+0xa7/0x180 \[ice\]
   ice\_initialize\_vf\_entry+0x1fa/0x250 \[ice\]
   ice\_sriov\_configure+0x8d7/0x1520 \[ice\]
   ? \_\_percpu\_ref\_switch\_mode+0x1b1/0x5d0
   ? \_\_pfx\_ice\_sriov\_configure+0x10/0x10 \[ice\]

Sometimes a KASAN report can be seen instead with a similar stack trace:
  BUG: KASAN: use-after-free in \_\_list\_add\_valid\_or\_report+0xf1/0x100

VFs are added to this list in ice\_mbx\_init\_vf\_info(), but only removed
in ice\_free\_vfs(). Move the removing to ice\_free\_vf\_entries(), which is
also being called in other places where VFs are being removed (including
ice\_free\_vfs() itself).

## Affected and fixed versions

- Linux: \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 3c01102bec9592928e6b155da41cfcd5d25a2066; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< a4880583f88deba63504ce1c8287a70d39c01378; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 34393fd78d7183a007eaf0090966ebedcc29bd57; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21883. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21883.md
Affected: Linux >= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, < 3c01102bec9592928e6b155da41cfcd5d25a2066; >= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, < a4880583f88deba63504ce1c8287a70d39c01378; >= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, < 34393fd78d7183a007eaf0090966ebedcc29bd57; >= 8cd8a6b17d275a45e3722d0…
Fixed in: Linux 3c01102bec9592928e6b155da41cfcd5d25a2066, Linux 34393fd78d7183a007eaf0090966ebedcc29bd57, Linux 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21883 being exploited?

There is no confirmed exploitation: CVE-2025-21883 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21883?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21883?

Linux \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 3c01102bec9592928e6b155da41cfcd5d25a2066; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< a4880583f88deba63504ce1c8287a70d39c01378; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 34393fd78d7183a007eaf0090966ebedcc29bd57; \>= 8cd8a6b17d275a45e3722d0215f6115b687c8c3e, \< 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c; Linux 6.4.

### Is there a fix for CVE-2025-21883?

Yes. Fixed in Linux 3c01102bec9592928e6b155da41cfcd5d25a2066, Linux 34393fd78d7183a007eaf0090966ebedcc29bd57, Linux 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c. Upgrade Linux to 79990cf5e7aded76d0c092c9f5ed31eb1c75e02c or later.

### How do I check if I'm affected by CVE-2025-21883?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3c01102bec9592928e6b155da41cfcd5d25a2066>
- patch: <https://git.kernel.org/stable/c/a4880583f88deba63504ce1c8287a70d39c01378>
- patch: <https://git.kernel.org/stable/c/34393fd78d7183a007eaf0090966ebedcc29bd57>
- patch: <https://git.kernel.org/stable/c/79990cf5e7aded76d0c092c9f5ed31eb1c75e02c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21883>

HTML: <https://flawdb.com/CVE-2025-21883> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21883>
