# CVE-2025-38127: ice: fix Tx scheduler error handling in XDP callback

> 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, CNA) `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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-07-03T08:35:32.453Z
- **Modified:** 2026-10-30T13:18:01.010Z

## Who should check

- Anyone running Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 6bea620584f079d7aa3924ee191ea7ba25e02fc2; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 276849954d7cbe6eec827b21fe2df43f9bf07011; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0e061abaad1498c5b76c10c594d4359ceb6b9145; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0153f36041b8e52019ebfa8629c13bf8f9b0a951
- Anyone running Linux 5.5

## Description

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

ice: fix Tx scheduler error handling in XDP callback

When the XDP program is loaded, the XDP callback adds new Tx queues.
This means that the callback must update the Tx scheduler with the new
queue number. In the event of a Tx scheduler failure, the XDP callback
should also fail and roll back any changes previously made for XDP
preparation.

The previous implementation had a bug that not all changes made by the
XDP callback were rolled back. This caused the crash with the following
call trace:

\[  +9.549584\] ice 0000:ca:00.0: Failed VSI LAN queue config for XDP, error: -5
\[  +0.382335\] Oops: general protection fault, probably for non-canonical address 0x50a2250a90495525: 0000 \[\#1\] SMP NOPTI
\[  +0.010710\] CPU: 103 UID: 0 PID: 0 Comm: swapper/103 Not tainted 6.14.0-net-next-mar-31+ \#14 PREEMPT(voluntary)
\[  +0.010175\] Hardware name: Intel Corporation M50CYP2SBSTD/M50CYP2SBSTD, BIOS SE5C620.86B.01.01.0005.2202160810 02/16/2022
\[  +0.010946\] RIP: 0010:\_\_ice\_update\_sample+0x39/0xe0 \[ice\]

\[...\]

\[  +0.002715\] Call Trace:
\[  +0.002452\]  \<IRQ\>
\[  +0.002021\]  ? \_\_die\_body.cold+0x19/0x29
\[  +0.003922\]  ? die\_addr+0x3c/0x60
\[  +0.003319\]  ? exc\_general\_protection+0x17c/0x400
\[  +0.004707\]  ? asm\_exc\_general\_protection+0x26/0x30
\[  +0.004879\]  ? \_\_ice\_update\_sample+0x39/0xe0 \[ice\]
\[  +0.004835\]  ice\_napi\_poll+0x665/0x680 \[ice\]
\[  +0.004320\]  \_\_napi\_poll+0x28/0x190
\[  +0.003500\]  net\_rx\_action+0x198/0x360
\[  +0.003752\]  ? update\_rq\_clock+0x39/0x220
\[  +0.004013\]  handle\_softirqs+0xf1/0x340
\[  +0.003840\]  ? sched\_clock\_cpu+0xf/0x1f0
\[  +0.003925\]  \_\_irq\_exit\_rcu+0xc2/0xe0
\[  +0.003665\]  common\_interrupt+0x85/0xa0
\[  +0.003839\]  \</IRQ\>
\[  +0.002098\]  \<TASK\>
\[  +0.002106\]  asm\_common\_interrupt+0x26/0x40
\[  +0.004184\] RIP: 0010:cpuidle\_enter\_state+0xd3/0x690

Fix this by performing the missing unmapping of XDP queues from
q\_vectors and setting the XDP rings pointer back to NULL after all those
queues are released.
Also, add an immediate exit from the XDP callback in case of ring
preparation failure.

## Affected and fixed versions

- Linux: \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 6bea620584f079d7aa3924ee191ea7ba25e02fc2; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 276849954d7cbe6eec827b21fe2df43f9bf07011; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0e061abaad1498c5b76c10c594d4359ceb6b9145; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0153f36041b8e52019ebfa8629c13bf8f9b0a951 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38127.md
Affected: Linux >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 6bea620584f079d7aa3924ee191ea7ba25e02fc2; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 276849954d7cbe6eec827b21fe2df43f9bf07011; >= efc2214b6047b6f5b4ca531…
Fixed in: Linux 6bea620584f079d7aa3924ee191ea7ba25e02fc2, Linux 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e, Linux 276849954d7cbe6eec827b21fe2df43f9bf07011, Linux 0e061abaad1498c5b76c10c594d4359ceb6b9145, Linux 0153f36041b8e52019ebfa8629c13bf8f9b0a951

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

There is no confirmed exploitation: CVE-2025-38127 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-26).

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

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

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

Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 6bea620584f079d7aa3924ee191ea7ba25e02fc2; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 276849954d7cbe6eec827b21fe2df43f9bf07011; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0e061abaad1498c5b76c10c594d4359ceb6b9145; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 0153f36041b8e52019ebfa8629c13bf8f9b0a951; Linux 5.5.

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

Yes. Fixed in Linux 6bea620584f079d7aa3924ee191ea7ba25e02fc2, Linux 1d3c5d0dec6797eca3a861dab0816fa9505d9c3e, Linux 276849954d7cbe6eec827b21fe2df43f9bf07011, Linux 0e061abaad1498c5b76c10c594d4359ceb6b9145, Linux 0153f36041b8e52019ebfa8629c13bf8f9b0a951. Upgrade Linux to 0153f36041b8e52019ebfa8629c13bf8f9b0a951 or later.

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

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/1d3c5d0dec6797eca3a861dab0816fa9505d9c3e>
- patch: <https://git.kernel.org/stable/c/276849954d7cbe6eec827b21fe2df43f9bf07011>
- patch: <https://git.kernel.org/stable/c/0e061abaad1498c5b76c10c594d4359ceb6b9145>
- patch: <https://git.kernel.org/stable/c/0153f36041b8e52019ebfa8629c13bf8f9b0a951>
- other: <https://git.kernel.org/stable/c/6bea620584f079d7aa3924ee191ea7ba25e02fc2>

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

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