# CVE-2025-38440: net/mlx5e: Fix race between DIM disable and net\_dim()

> 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-07-25T15:27:19.447Z
- **Modified:** 2026-10-15T22:18:41.243Z

## Who should check

- Anyone running Linux \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 7581afc051542e11ccf3ade68acd01b7fb1a3cde; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< eb41a264a3a576dc040ee37c3d9d6b7e2d9be968
- Anyone running Linux 6.10

## Description

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

net/mlx5e: Fix race between DIM disable and net\_dim()

There's a race between disabling DIM and NAPI callbacks using the dim
pointer on the RQ or SQ.

If NAPI checks the DIM state bit and sees it still set, it assumes
\`rq-\>dim\` or \`sq-\>dim\` is valid. But if DIM gets disabled right after
that check, the pointer might already be set to NULL, leading to a NULL
pointer dereference in net\_dim().

Fix this by calling \`synchronize\_net()\` before freeing the DIM context.
This ensures all in-progress NAPI callbacks are finished before the
pointer is cleared.

Kernel log:

BUG: kernel NULL pointer dereference, address: 0000000000000000
...
RIP: 0010:net\_dim+0x23/0x190
...
Call Trace:
 \<TASK\>
 ? \_\_die+0x20/0x60
 ? page\_fault\_oops+0x150/0x3e0
 ? common\_interrupt+0xf/0xa0
 ? sysvec\_call\_function\_single+0xb/0x90
 ? exc\_page\_fault+0x74/0x130
 ? asm\_exc\_page\_fault+0x22/0x30
 ? net\_dim+0x23/0x190
 ? mlx5e\_poll\_ico\_cq+0x41/0x6f0 \[mlx5\_core\]
 ? sysvec\_apic\_timer\_interrupt+0xb/0x90
 mlx5e\_handle\_rx\_dim+0x92/0xd0 \[mlx5\_core\]
 mlx5e\_napi\_poll+0x2cd/0xac0 \[mlx5\_core\]
 ? mlx5e\_poll\_ico\_cq+0xe5/0x6f0 \[mlx5\_core\]
 busy\_poll\_stop+0xa2/0x200
 ? mlx5e\_napi\_poll+0x1d9/0xac0 \[mlx5\_core\]
 ? mlx5e\_trigger\_irq+0x130/0x130 \[mlx5\_core\]
 \_\_napi\_busy\_loop+0x345/0x3b0
 ? sysvec\_call\_function\_single+0xb/0x90
 ? asm\_sysvec\_call\_function\_single+0x16/0x20
 ? sysvec\_apic\_timer\_interrupt+0xb/0x90
 ? pcpu\_free\_area+0x1e4/0x2e0
 napi\_busy\_loop+0x11/0x20
 xsk\_recvmsg+0x10c/0x130
 sock\_recvmsg+0x44/0x70
 \_\_sys\_recvfrom+0xbc/0x130
 ? \_\_schedule+0x398/0x890
 \_\_x64\_sys\_recvfrom+0x20/0x30
 do\_syscall\_64+0x4c/0x100
 entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
...
---\[ end trace 0000000000000000 \]---
...
---\[ end Kernel panic - not syncing: Fatal exception in interrupt \]---

## Affected and fixed versions

- Linux: \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 7581afc051542e11ccf3ade68acd01b7fb1a3cde; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< eb41a264a3a576dc040ee37c3d9d6b7e2d9be968 (cvelist)
- Linux: 6.10 (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-38440. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38440.md
Affected: Linux >= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, < 7581afc051542e11ccf3ade68acd01b7fb1a3cde; >= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, < 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6; >= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, < eb41a264a3a576dc040ee37c3d9d6b7e2d9be968; Linux 6.10
Fixed in: Linux 7581afc051542e11ccf3ade68acd01b7fb1a3cde, Linux 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6

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

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

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

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

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

Linux \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 7581afc051542e11ccf3ade68acd01b7fb1a3cde; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6; \>= 445a25f6e1a2f6a132b06af6ede4f3c9b5f9af68, \< eb41a264a3a576dc040ee37c3d9d6b7e2d9be968; Linux 6.10.

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

Yes. Fixed in Linux 7581afc051542e11ccf3ade68acd01b7fb1a3cde, Linux 2bc6fb90486e42dd80e660ef7a40c02b2516c6d6. No fix listed yet: follow the vendor advisory.

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

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/7581afc051542e11ccf3ade68acd01b7fb1a3cde>
- patch: <https://git.kernel.org/stable/c/2bc6fb90486e42dd80e660ef7a40c02b2516c6d6>
- patch: <https://git.kernel.org/stable/c/eb41a264a3a576dc040ee37c3d9d6b7e2d9be968>

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

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