# CVE-2025-21981: ice: fix memory leak in aRFS after reset

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.29% (percentile 14, 2026-11-28)
- **CWE:** CWE-401
- **Published:** 2025-04-01T15:47:09.744Z
- **Modified:** 2026-06-17T08:44:45.883Z

## Who should check

- Anyone running Linux \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< ef2bc94059836a115430a6ad9d2838b0b34dc8f5; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< e6902101f34f098af59b0d1d8cf90c4124c02c6a; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< fcbacc47d16306c87ad1b820b7a575f6e9eae58b; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 5d30d256661fc11b6e73fac6c3783a702e1006a3; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 3b27e6e10a32589fcd293b8933ab6de9387a460e; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 78f3d64b30210c0e521c59357431aca14024cb79; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 23d97f18901ef5e4e264e3b1777fe65c760186b5
- Anyone running Linux 5.8

## Description

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

ice: fix memory leak in aRFS after reset

Fix aRFS (accelerated Receive Flow Steering) structures memory leak by
adding a checker to verify if aRFS memory is already allocated while
configuring VSI. aRFS objects are allocated in two cases:
- as part of VSI initialization (at probe), and
- as part of reset handling

However, VSI reconfiguration executed during reset involves memory
allocation one more time, without prior releasing already allocated
resources. This led to the memory leak with the following signature:

\[root@os-delivery ~\]\# cat /sys/kernel/debug/kmemleak
unreferenced object 0xff3c1ca7252e6000 (size 8192):
  comm "kworker/0:0", pid 8, jiffies 4296833052
  hex dump (first 32 bytes):
    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):
    \[\<ffffffff991ec485\>\] \_\_kmalloc\_cache\_noprof+0x275/0x340
    \[\<ffffffffc0a6e06a\>\] ice\_init\_arfs+0x3a/0xe0 \[ice\]
    \[\<ffffffffc09f1027\>\] ice\_vsi\_cfg\_def+0x607/0x850 \[ice\]
    \[\<ffffffffc09f244b\>\] ice\_vsi\_setup+0x5b/0x130 \[ice\]
    \[\<ffffffffc09c2131\>\] ice\_init+0x1c1/0x460 \[ice\]
    \[\<ffffffffc09c64af\>\] ice\_probe+0x2af/0x520 \[ice\]
    \[\<ffffffff994fbcd3\>\] local\_pci\_probe+0x43/0xa0
    \[\<ffffffff98f07103\>\] work\_for\_cpu\_fn+0x13/0x20
    \[\<ffffffff98f0b6d9\>\] process\_one\_work+0x179/0x390
    \[\<ffffffff98f0c1e9\>\] worker\_thread+0x239/0x340
    \[\<ffffffff98f14abc\>\] kthread+0xcc/0x100
    \[\<ffffffff98e45a6d\>\] ret\_from\_fork+0x2d/0x50
    \[\<ffffffff98e083ba\>\] ret\_from\_fork\_asm+0x1a/0x30
    ...

## Affected and fixed versions

- Linux: \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< ef2bc94059836a115430a6ad9d2838b0b34dc8f5; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< e6902101f34f098af59b0d1d8cf90c4124c02c6a; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< fcbacc47d16306c87ad1b820b7a575f6e9eae58b; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 5d30d256661fc11b6e73fac6c3783a702e1006a3; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 3b27e6e10a32589fcd293b8933ab6de9387a460e; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 78f3d64b30210c0e521c59357431aca14024cb79; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 23d97f18901ef5e4e264e3b1777fe65c760186b5 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 23d97f18901ef5e4e264e3b1777fe65c760186b5 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-21981. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21981.md
Affected: Linux >= 28bf26724fdb0e02267d19e280d6717ee810a10d, < ef2bc94059836a115430a6ad9d2838b0b34dc8f5; >= 28bf26724fdb0e02267d19e280d6717ee810a10d, < e6902101f34f098af59b0d1d8cf90c4124c02c6a; >= 28bf26724fdb0e02267d19e280d6717ee810a10d, < fcbacc47d16306c87ad1b820b7a575f6e9eae58b; >= 28bf26724fdb0e02267d19e…
Fixed in: Linux 5d30d256661fc11b6e73fac6c3783a702e1006a3, Linux 3b27e6e10a32589fcd293b8933ab6de9387a460e, Linux 78f3d64b30210c0e521c59357431aca14024cb79, Linux 23d97f18901ef5e4e264e3b1777fe65c760186b5

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-21981 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< ef2bc94059836a115430a6ad9d2838b0b34dc8f5; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< e6902101f34f098af59b0d1d8cf90c4124c02c6a; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< fcbacc47d16306c87ad1b820b7a575f6e9eae58b; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 5d30d256661fc11b6e73fac6c3783a702e1006a3; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 3b27e6e10a32589fcd293b8933ab6de9387a460e; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 78f3d64b30210c0e521c59357431aca14024cb79; \>= 28bf26724fdb0e02267d19e280d6717ee810a10d, \< 23d97f18901ef5e4e264e3b1777fe65c760186b5; Linux 5.8.

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

Yes. Fixed in Linux 5d30d256661fc11b6e73fac6c3783a702e1006a3, Linux 3b27e6e10a32589fcd293b8933ab6de9387a460e, Linux 78f3d64b30210c0e521c59357431aca14024cb79, Linux 23d97f18901ef5e4e264e3b1777fe65c760186b5. Upgrade Linux to 23d97f18901ef5e4e264e3b1777fe65c760186b5 or later.

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

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/ef2bc94059836a115430a6ad9d2838b0b34dc8f5>
- patch: <https://git.kernel.org/stable/c/e6902101f34f098af59b0d1d8cf90c4124c02c6a>
- patch: <https://git.kernel.org/stable/c/fcbacc47d16306c87ad1b820b7a575f6e9eae58b>
- patch: <https://git.kernel.org/stable/c/5d30d256661fc11b6e73fac6c3783a702e1006a3>
- patch: <https://git.kernel.org/stable/c/3b27e6e10a32589fcd293b8933ab6de9387a460e>
- patch: <https://git.kernel.org/stable/c/78f3d64b30210c0e521c59357431aca14024cb79>
- patch: <https://git.kernel.org/stable/c/23d97f18901ef5e4e264e3b1777fe65c760186b5>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## 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-21981>

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