# CVE-2025-21717: net/mlx5e: add missing cpu\_to\_node to kvzalloc\_node in mlx5e\_open\_xdpredirect\_sq

> 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-02-27T02:07:27.369Z
- **Modified:** 2026-08-05T11:53:52.706Z

## Who should check

- Anyone running Linux \>= bb135e40129ddd254cfb474b58981313be79a631, \< a275db45b4161d01716559dd7557db9ea0450952; \>= bb135e40129ddd254cfb474b58981313be79a631, \< 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac
- Anyone running Linux 6.13

## Description

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

net/mlx5e: add missing cpu\_to\_node to kvzalloc\_node in mlx5e\_open\_xdpredirect\_sq

kvzalloc\_node is not doing a runtime check on the node argument
(\_\_alloc\_pages\_node\_noprof does have a VM\_BUG\_ON, but it expands to
nothing on !CONFIG\_DEBUG\_VM builds), so doing any ethtool/netlink
operation that calls mlx5e\_open on a CPU that's larger that MAX\_NUMNODES
triggers OOB access and panic (see the trace below).

Add missing cpu\_to\_node call to convert cpu id to node id.

\[  165.427394\] mlx5\_core 0000:5c:00.0 beth1: Link up
\[  166.479327\] BUG: unable to handle page fault for address: 0000000800000010
\[  166.494592\] \#PF: supervisor read access in kernel mode
\[  166.505995\] \#PF: error\_code(0x0000) - not-present page
...
\[  166.816958\] Call Trace:
\[  166.822380\]  \<TASK\>
\[  166.827034\]  ? \_\_die\_body+0x64/0xb0
\[  166.834774\]  ? page\_fault\_oops+0x2cd/0x3f0
\[  166.843862\]  ? exc\_page\_fault+0x63/0x130
\[  166.852564\]  ? asm\_exc\_page\_fault+0x22/0x30
\[  166.861843\]  ? \_\_kvmalloc\_node\_noprof+0x43/0xd0
\[  166.871897\]  ? get\_partial\_node+0x1c/0x320
\[  166.880983\]  ? deactivate\_slab+0x269/0x2b0
\[  166.890069\]  \_\_\_slab\_alloc+0x521/0xa90
\[  166.898389\]  ? \_\_kvmalloc\_node\_noprof+0x43/0xd0
\[  166.908442\]  \_\_kmalloc\_node\_noprof+0x216/0x3f0
\[  166.918302\]  ? \_\_kvmalloc\_node\_noprof+0x43/0xd0
\[  166.928354\]  \_\_kvmalloc\_node\_noprof+0x43/0xd0
\[  166.938021\]  mlx5e\_open\_channels+0x5e2/0xc00
\[  166.947496\]  mlx5e\_open\_locked+0x3e/0xf0
\[  166.956201\]  mlx5e\_open+0x23/0x50
\[  166.963551\]  \_\_dev\_open+0x114/0x1c0
\[  166.971292\]  \_\_dev\_change\_flags+0xa2/0x1b0
\[  166.980378\]  dev\_change\_flags+0x21/0x60
\[  166.988887\]  do\_setlink+0x38d/0xf20
\[  166.996628\]  ? ep\_poll\_callback+0x1b9/0x240
\[  167.005910\]  ? \_\_nla\_validate\_parse.llvm.10713395753544950386+0x80/0xd70
\[  167.020782\]  ? \_\_wake\_up\_sync\_key+0x52/0x80
\[  167.030066\]  ? \_\_mutex\_lock+0xff/0x550
\[  167.038382\]  ? security\_capable+0x50/0x90
\[  167.047279\]  rtnl\_setlink+0x1c9/0x210
\[  167.055403\]  ? ep\_poll\_callback+0x1b9/0x240
\[  167.064684\]  ? security\_capable+0x50/0x90
\[  167.073579\]  rtnetlink\_rcv\_msg+0x2f9/0x310
\[  167.082667\]  ? rtnetlink\_bind+0x30/0x30
\[  167.091173\]  netlink\_rcv\_skb+0xb1/0xe0
\[  167.099492\]  netlink\_unicast+0x20f/0x2e0
\[  167.108191\]  netlink\_sendmsg+0x389/0x420
\[  167.116896\]  \_\_sys\_sendto+0x158/0x1c0
\[  167.125024\]  \_\_x64\_sys\_sendto+0x22/0x30
\[  167.133534\]  do\_syscall\_64+0x63/0x130
\[  167.141657\]  ? \_\_irq\_exit\_rcu.llvm.17843942359718260576+0x52/0xd0
\[  167.155181\]  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

## Affected and fixed versions

- Linux: \>= bb135e40129ddd254cfb474b58981313be79a631, \< a275db45b4161d01716559dd7557db9ea0450952; \>= bb135e40129ddd254cfb474b58981313be79a631, \< 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-21717.md
Affected: Linux >= bb135e40129ddd254cfb474b58981313be79a631, < a275db45b4161d01716559dd7557db9ea0450952; >= bb135e40129ddd254cfb474b58981313be79a631, < 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac; Linux 6.13
Fixed in: Linux 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac

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

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

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

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

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

Linux \>= bb135e40129ddd254cfb474b58981313be79a631, \< a275db45b4161d01716559dd7557db9ea0450952; \>= bb135e40129ddd254cfb474b58981313be79a631, \< 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac; Linux 6.13.

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

Yes. Fixed in Linux 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac. Upgrade Linux to 979284535aaf12a287a2f43d9d5dfcbdc1dc4cac or later.

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

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/a275db45b4161d01716559dd7557db9ea0450952>
- patch: <https://git.kernel.org/stable/c/979284535aaf12a287a2f43d9d5dfcbdc1dc4cac>

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

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