# CVE-2025-40250: net/mlx5: Clean up only new IRQ glue on request\_irq() failure

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-04T16:08:12.984Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 4d6b4bea8b80bfa13c903ba547538249e7c5e977; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< d47515af6cccd7484d8b0870376858c9848a18ec
- Anyone running Linux 6.4

## Description

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

net/mlx5: Clean up only new IRQ glue on request\_irq() failure

The mlx5\_irq\_alloc() function can inadvertently free the entire rmap
and end up in a crash\[1\] when the other threads tries to access this,
when request\_irq() fails due to exhausted IRQ vectors. This commit
modifies the cleanup to remove only the specific IRQ mapping that was
just added.

This prevents removal of other valid mappings and ensures precise
cleanup of the failed IRQ allocation's associated glue object.

Note: This error is observed when both fwctl and rds configs are enabled.

\[1\]
mlx5\_core 0000:05:00.0: Successfully registered panic handler for port 1
mlx5\_core 0000:05:00.0: mlx5\_irq\_alloc:293:(pid 66740): Failed to
request irq. err = -28
infiniband mlx5\_0: mlx5\_ib\_test\_wc:290:(pid 66740): Error -28 while
trying to test write-combining support
mlx5\_core 0000:05:00.0: Successfully unregistered panic handler for port 1
mlx5\_core 0000:06:00.0: Successfully registered panic handler for port 1
mlx5\_core 0000:06:00.0: mlx5\_irq\_alloc:293:(pid 66740): Failed to
request irq. err = -28
infiniband mlx5\_0: mlx5\_ib\_test\_wc:290:(pid 66740): Error -28 while
trying to test write-combining support
mlx5\_core 0000:06:00.0: Successfully unregistered panic handler for port 1
mlx5\_core 0000:03:00.0: mlx5\_irq\_alloc:293:(pid 28895): Failed to
request irq. err = -28
mlx5\_core 0000:05:00.0: mlx5\_irq\_alloc:293:(pid 28895): Failed to
request irq. err = -28
general protection fault, probably for non-canonical address
0xe277a58fde16f291: 0000 \[\#1\] SMP NOPTI

RIP: 0010:free\_irq\_cpu\_rmap+0x23/0x7d
Call Trace:
   \<TASK\>
   ? show\_trace\_log\_lvl+0x1d6/0x2f9
   ? show\_trace\_log\_lvl+0x1d6/0x2f9
   ? mlx5\_irq\_alloc.cold+0x5d/0xf3 \[mlx5\_core\]
   ? \_\_die\_body.cold+0x8/0xa
   ? die\_addr+0x39/0x53
   ? exc\_general\_protection+0x1c4/0x3e9
   ? dev\_vprintk\_emit+0x5f/0x90
   ? asm\_exc\_general\_protection+0x22/0x27
   ? free\_irq\_cpu\_rmap+0x23/0x7d
   mlx5\_irq\_alloc.cold+0x5d/0xf3 \[mlx5\_core\]
   irq\_pool\_request\_vector+0x7d/0x90 \[mlx5\_core\]
   mlx5\_irq\_request+0x2e/0xe0 \[mlx5\_core\]
   mlx5\_irq\_request\_vector+0xad/0xf7 \[mlx5\_core\]
   comp\_irq\_request\_pci+0x64/0xf0 \[mlx5\_core\]
   create\_comp\_eq+0x71/0x385 \[mlx5\_core\]
   ? mlx5e\_open\_xdpsq+0x11c/0x230 \[mlx5\_core\]
   mlx5\_comp\_eqn\_get+0x72/0x90 \[mlx5\_core\]
   ? xas\_load+0x8/0x91
   mlx5\_comp\_irqn\_get+0x40/0x90 \[mlx5\_core\]
   mlx5e\_open\_channel+0x7d/0x3c7 \[mlx5\_core\]
   mlx5e\_open\_channels+0xad/0x250 \[mlx5\_core\]
   mlx5e\_open\_locked+0x3e/0x110 \[mlx5\_core\]
   mlx5e\_open+0x23/0x70 \[mlx5\_core\]
   \_\_dev\_open+0xf1/0x1a5
   \_\_dev\_change\_flags+0x1e1/0x249
   dev\_change\_flags+0x21/0x5c
   do\_setlink+0x28b/0xcc4
   ? \_\_nla\_parse+0x22/0x3d
   ? inet6\_validate\_link\_af+0x6b/0x108
   ? cpumask\_next+0x1f/0x35
   ? \_\_snmp6\_fill\_stats64.constprop.0+0x66/0x107
   ? \_\_nla\_validate\_parse+0x48/0x1e6
   \_\_rtnl\_newlink+0x5ff/0xa57
   ? kmem\_cache\_alloc\_trace+0x164/0x2ce
   rtnl\_newlink+0x44/0x6e
   rtnetlink\_rcv\_msg+0x2bb/0x362
   ? \_\_netlink\_sendskb+0x4c/0x6c
   ? netlink\_unicast+0x28f/0x2ce
   ? rtnl\_calcit.isra.0+0x150/0x146
   netlink\_rcv\_skb+0x5f/0x112
   netlink\_unicast+0x213/0x2ce
   netlink\_sendmsg+0x24f/0x4d9
   \_\_sock\_sendmsg+0x65/0x6a
   \_\_\_\_sys\_sendmsg+0x28f/0x2c9
   ? import\_iovec+0x17/0x2b
   \_\_\_sys\_sendmsg+0x97/0xe0
   \_\_sys\_sendmsg+0x81/0xd8
   do\_syscall\_64+0x35/0x87
   entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x0
RIP: 0033:0x7fc328603727
Code: c3 66 90 41 54 41 89 d4 55 48 89 f5 53 89 fb 48 83 ec 10 e8 0b ed
ff ff 44 89 e2 48 89 ee 89 df 41 89 c0 b8 2e 00 00 00 0f 05 \<48\> 3d 00
f0 ff ff 77 35 44 89 c7 48 89 44 24 08 e8 44 ed ff ff 48
RSP: 002b:00007ffe8eb3f1a0 EFLAGS: 00000293 ORIG\_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000000000d RCX: 00007fc328603727
RDX: 0000000000000000 RSI: 00007ffe8eb3f1f0 RDI: 000000000000000d
RBP: 00007ffe8eb3f1f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00000000000
---truncated---

## Affected and fixed versions

- Linux: \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 4d6b4bea8b80bfa13c903ba547538249e7c5e977; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< d47515af6cccd7484d8b0870376858c9848a18ec (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40250.md
Affected: Linux >= 3354822cde5a9f72aa725b3c619188b149a71a33, < 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0; >= 3354822cde5a9f72aa725b3c619188b149a71a33, < 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee; >= 3354822cde5a9f72aa725b3c619188b149a71a33, < 4d6b4bea8b80bfa13c903ba547538249e7c5e977; >= 3354822cde5a9f72aa725b3…
Fixed in: Linux 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0, Linux 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee, Linux 4d6b4bea8b80bfa13c903ba547538249e7c5e977

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

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

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

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

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

Linux \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< 4d6b4bea8b80bfa13c903ba547538249e7c5e977; \>= 3354822cde5a9f72aa725b3c619188b149a71a33, \< d47515af6cccd7484d8b0870376858c9848a18ec; Linux 6.4.

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

Yes. Fixed in Linux 69e043bce09c9a77e5f55b9ac7505874a2a1a9f0, Linux 6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee, Linux 4d6b4bea8b80bfa13c903ba547538249e7c5e977. No fix listed yet: follow the vendor advisory.

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

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/69e043bce09c9a77e5f55b9ac7505874a2a1a9f0>
- other: <https://git.kernel.org/stable/c/6ebd02cf2dde11b86f89ea4c9f55179eab30d4ee>
- other: <https://git.kernel.org/stable/c/4d6b4bea8b80bfa13c903ba547538249e7c5e977>
- other: <https://git.kernel.org/stable/c/d47515af6cccd7484d8b0870376858c9848a18ec>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.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-40250>

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