Menu

Star on GitHub · 3.2k

CVE-2025-38440

7.8 · HIGH

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 poi…

Published Jul 25, 2025CWE-362EPSS 0.13%

Overview

CVE-2025-38440 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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_c

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38440?

CVE-2025-38440 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-38440?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38440?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38440?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38440 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all