# CVE-2025-40091: ixgbe: fix too early devlink\_free() in ixgbe\_remove()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-10-30T09:47:59.253Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< df445969aa727cd64f3f29dc1f85fb60aca238d1; \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< 5feef67b646d8f5064bac288e22204ffba2b9a4a
- Anyone running Linux 6.16

## Description

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

ixgbe: fix too early devlink\_free() in ixgbe\_remove()

Since ixgbe\_adapter is embedded in devlink, calling devlink\_free()
prematurely in the ixgbe\_remove() path can lead to UAF. Move devlink\_free()
to the end.

KASAN report:

 BUG: KASAN: use-after-free in ixgbe\_reset\_interrupt\_capability+0x140/0x180 \[ixgbe\]
 Read of size 8 at addr ffff0000adf813e0 by task bash/2095
 CPU: 1 UID: 0 PID: 2095 Comm: bash Tainted: G S  6.17.0-rc2-tnguy.net-queue+ \#1 PREEMPT(full)
 \[...\]
 Call trace:
  show\_stack+0x30/0x90 (C)
  dump\_stack\_lvl+0x9c/0xd0
  print\_address\_description.constprop.0+0x90/0x310
  print\_report+0x104/0x1f0
  kasan\_report+0x88/0x180
  \_\_asan\_report\_load8\_noabort+0x20/0x30
  ixgbe\_reset\_interrupt\_capability+0x140/0x180 \[ixgbe\]
  ixgbe\_clear\_interrupt\_scheme+0xf8/0x130 \[ixgbe\]
  ixgbe\_remove+0x2d0/0x8c0 \[ixgbe\]
  pci\_device\_remove+0xa0/0x220
  device\_remove+0xb8/0x170
  device\_release\_driver\_internal+0x318/0x490
  device\_driver\_detach+0x40/0x68
  unbind\_store+0xec/0x118
  drv\_attr\_store+0x64/0xb8
  sysfs\_kf\_write+0xcc/0x138
  kernfs\_fop\_write\_iter+0x294/0x440
  new\_sync\_write+0x1fc/0x588
  vfs\_write+0x480/0x6a0
  ksys\_write+0xf0/0x1e0
  \_\_arm64\_sys\_write+0x70/0xc0
  invoke\_syscall.constprop.0+0xcc/0x280
  el0\_svc\_common.constprop.0+0xa8/0x248
  do\_el0\_svc+0x44/0x68
  el0\_svc+0x54/0x160
  el0t\_64\_sync\_handler+0xa0/0xe8
  el0t\_64\_sync+0x1b0/0x1b8

## Affected and fixed versions

- Linux: \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< df445969aa727cd64f3f29dc1f85fb60aca238d1; \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< 5feef67b646d8f5064bac288e22204ffba2b9a4a (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-40091.md
Affected: Linux >= a0285236ab93fdfdd1008afaa04561d142d6c276, < df445969aa727cd64f3f29dc1f85fb60aca238d1; >= a0285236ab93fdfdd1008afaa04561d142d6c276, < 5feef67b646d8f5064bac288e22204ffba2b9a4a; Linux 6.16
Fixed in: Linux 5feef67b646d8f5064bac288e22204ffba2b9a4a

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< df445969aa727cd64f3f29dc1f85fb60aca238d1; \>= a0285236ab93fdfdd1008afaa04561d142d6c276, \< 5feef67b646d8f5064bac288e22204ffba2b9a4a; Linux 6.16.

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

Yes. Fixed in Linux 5feef67b646d8f5064bac288e22204ffba2b9a4a. Upgrade Linux to 5feef67b646d8f5064bac288e22204ffba2b9a4a or later.

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

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

- other: <https://git.kernel.org/stable/c/df445969aa727cd64f3f29dc1f85fb60aca238d1>
- other: <https://git.kernel.org/stable/c/5feef67b646d8f5064bac288e22204ffba2b9a4a>

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

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