Skip to main content

Linux Kernel CVE-2025-38440

MEDIUM
Race Condition (CWE-362)
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
4.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local shell on mlx5 NIC host
  2. Delivery
    Generate sustained high-throughput network traffic via AF_XDP socket
  3. Exploit
    Trigger concurrent DIM disable (ethtool or kernel-internal)
  4. Execution
    NAPI poll reads stale DIM-enabled state bit
  5. Persist
    rq->dim or sq->dim dereferenced as NULL in net_dim()
  6. Impact
    Kernel panic crashes system

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local shell access with at least low-privilege credentials (PR:L per CVSS) on a Linux system where the mlx5_core module is loaded - meaning the host must have Mellanox/NVIDIA ConnectX NIC hardware physically installed and the driver active. The race is only triggerable when DIM is actively being disabled (teardown path) while a NAPI poll is concurrently executing the DIM-enabled code path - a timing-sensitive window (AC:H). In practice, this is most likely during ethtool adaptive-coalescing toggle operations under active NIC traffic, or during internal kernel DIM state management. Remote unauthenticated exploitation is not possible. Limiting factors: narrow race window requiring precise concurrent scheduling (AC:H), hardware prerequisite (mlx5 NIC required), local access required (AV:L), and no confidentiality or integrity impact - only availability.

Impact

CVSS 3.1 scores this at 4.7 (Medium) with vector AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H. The AC:H rating accurately reflects the race condition's narrow timing window - reliable exploitation requires orchestrating concurrent DIM disable and NAPI polling, which is difficult to control deterministically. EPSS of 0.11% at the 1st percentile strongly corroborates low real-world exploitation probability; this is effectively unmeasured in the wild. The vulnerability is not listed in CISA KEV, and no POC exploit code has been identified. Despite the low intentional-exploitation risk, the operational risk is non-trivial: in busy data center or cloud environments running mlx5 NICs, this race can manifest as a spontaneous kernel panic during ethtool-driven DIM toggling or internal kernel DIM state changes under load, with no attacker involvement. The availability impact is categorically High (A:H) because a successful trigger produces a kernel panic and full system crash. CVSS signals and EPSS are consistent - this is a stability/reliability issue more than a targeted attack vector, but it warrants patching on any production mlx5 NIC host.

Exploit ScenarioDerived

A local user with a shell on a Linux server using a Mellanox/NVIDIA ConnectX NIC generates sustained high-volume network traffic (e.g., via an AF_XDP/XDP busy-poll socket as evidenced by the kernel trace), then concurrently triggers DIM state changes by calling ethtool to toggle adaptive interrupt coalescing on the active interface. The race window between the NAPI poll's state-bit check and the pointer dereference yields a NULL pointer dereference in net_dim(), immediately crashing the kernel and taking the entire server offline. No public exploit code exists; the crash can also occur spontaneously without malicious intent.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

NULL pointer dereference in the Linux kernel's mlx5e Ethernet driver (mlx5_core module) causes kernel panic on systems equipped with Mellanox/NVIDIA ConnectX NICs. The race condition between DIM (Dynamic Interrupt Moderation) teardown and concurrent NAPI polling allows a local attacker with low privileges to crash the system, resulting in a complete denial of service. No public exploit code exists and EPSS is 0.11% (1st percentile), indicating near-zero opportunistic exploitation risk; however, the crash can also be triggered spontaneously on production systems under heavy NIC load during DIM reconfiguration.

RemediationAI

Apply the upstream kernel fix from the stable patch commits available at https://git.kernel.org/stable/c/2bc6fb90486e42dd80e660ef7a40c02b2516c6d6, https://git.kernel.org/stable/c/7581afc051542e11ccf3ade68acd01b7fb1a3cde, and https://git.kernel.org/stable/c/eb41a264a3a576dc040ee37c3d9d6b7e2d9be968 - one per affected stable branch. Distributions (RHEL, Ubuntu, SUSE, Debian) should be monitored for backported package updates; update the kernel package as soon as vendor builds are available. The exact patched tagged release version is not confirmed in the available data - only commit SHAs are referenced. As a partial operational workaround, administrators can avoid toggling DIM state via ethtool (ethtool --set-coalesce ethX adaptive-rx off or adaptive-tx off) while the NIC is under heavy traffic load, which reduces the probability of hitting the race window. This is not a complete fix, as DIM state transitions can also occur internally. Unloading the mlx5_core module is a drastic workaround that eliminates the vulnerable code path entirely but requires alternative NIC hardware. No confidentiality or integrity trade-offs apply to the patch - the only change is a synchronization barrier added to the DIM teardown path.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in net/mlx5e, the Ethernet driver for Mellanox/NVIDIA ConnectX NICs within the mlx5_core kernel module. DIM (Dynamic Interrupt Moderation) dynamically adjusts NIC interrupt coalescing based on traffic patterns. The race is a classic TOCTOU (Time-Of-Check-To-Time-Of-Use) pattern (CWE-362): the NAPI poll path reads the DIM enable state bit to determine whether rq->dim or sq->dim is a valid pointer, then dereferences it - but these are two non-atomic operations. A concurrent DIM teardown path can zero the pointer between the check and the dereference, landing net_dim() at address 0x0 and triggering a fatal kernel NULL pointer dereference. The kernel log confirms the crash site is net_dim+0x23, called from mlx5e_handle_rx_dim via mlx5e_napi_poll, with XDP/AF_XDP busy-poll (xsk_recvmsg) as the triggering syscall path. The fix is to call synchronize_net() during DIM teardown, which drains all in-flight NAPI callbacks before the context is freed, eliminating the window. CPE data confirms affected products are cpe:2.3:o:linux:linux_kernel across stable branches and explicitly 6.16-rc1 through 6.16-rc5.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

Local race condition requires concurrent scheduling precision (AC:H, AV:L); only kernel crash is achievable, with no data exposure (C:N/I:N/A:H).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 4.7 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionNVD

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 ]---

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
Mellanox/NVIDIA NICs ubiquitous in cloud and data center infrastructure
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
Image SLES15-SP7-Azure-3P Image SLES15-SP7-Azure-Basic Image SLES15-SP7-Azure-Standard Image SLES15-SP7-HPC-Azure Affected
Image SLES15-SP7-BYOS-Azure Image SLES15-SP7-BYOS-EC2 Image SLES15-SP7-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-Aliyun Image SLES15-SP7-CHOST-BYOS-Azure Image SLES15-SP7-CHOST-BYOS-EC2 Image SLES15-SP7-CHOST-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-GDC Image SLES15-SP7-CHOST-BYOS-SAP-CCloud Image SLES15-SP7-EC2 Image SLES15-SP7-EC2-ECS-HVM Image SLES15-SP7-GCE Image SLES15-SP7-GCE-3P Image SLES15-SP7-HPC-BYOS-Azure Image SLES15-SP7-HPC-BYOS-EC2 Image SLES15-SP7-HPC-BYOS-GCE Image SLES15-SP7-Hardened-BYOS-Azure Image SLES15-SP7-Hardened-BYOS-EC2 Image SLES15-SP7-Hardened-BYOS-GCE Image SLES15-SP7-SAPCAL-Azure Image SLES15-SP7-SAPCAL-EC2 Image SLES15-SP7-SAPCAL-GCE Affected
Image SLES15-SP7-SAP-Azure Image SLES15-SP7-SAP-Azure-3P Image SLES15-SP7-SAP-Azure-LI-BYOS-Production Image SLES15-SP7-SAP-Azure-VLI-BYOS-Production Image SLES15-SP7-SAP-BYOS-Azure Image SLES15-SP7-SAP-BYOS-EC2 Image SLES15-SP7-SAP-BYOS-GCE Image SLES15-SP7-SAP-EC2 Image SLES15-SP7-SAP-GCE Image SLES15-SP7-SAP-GCE-3P Image SLES15-SP7-SAP-Hardened-Azure Image SLES15-SP7-SAP-Hardened-BYOS-Azure Image SLES15-SP7-SAP-Hardened-BYOS-EC2 Image SLES15-SP7-SAP-Hardened-BYOS-GCE Image SLES15-SP7-SAP-Hardened-GCE Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy