Skip to main content

Linux Kernel CVE-2026-31727

| EUVDEUVD-2026-26540 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-05-01 Linux
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Local access to system
  2. Delivery
    Enable USB gadget mode or trigger hot-unplug
  3. Exploit
    Execute ethtool query on gadget interface
  4. Install
    Race condition hits during unbind window
  5. C2
    eth_get_drvinfo dereferences NULL gadget pointer
  6. Execute
    Kernel NULL pointer oops
  7. Impact
    Denial of service via crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Successful exploitation requires four specific, concrete conditions: First, the Linux kernel must have USB gadget (u_ether) support compiled and the gadget interface must be actively configured and bound (e.g., usb0 interface created via configfs or legacy gadget mode). Second, a local user must have sufficient privileges to execute ethtool or similar ioctl-based network tool that calls eth_get_drvinfo() - this is typically any user with access to /sys/class/net/ which is world-readable on many systems, but triggering the code path requires unprivileged execution (PR:L). Third, the gadget device must be in the process of unbind (e.g., via 'echo 0 > /sys/bus/usb/devices/{device}/unbind' or hardware disconnect), and the gadget pointer must have been cleared by commit ec35c1969650's reparenting logic. Fourth, the race condition window must be hit - ethtool query must execute between the moment the gadget pointer is set to NULL and the moment the interface is fully removed from the netdevice stack, a window that may be milliseconds wide on modern systems. This race condition significantly limits practical exploitation. Systems without USB gadget mode enabled, non-Linux systems, or systems running patched kernel versions are not vulnerable. The vulnerability does not require user interaction (UI:N) from the perspective of the user running ethtool, but it does require coincidental or deliberately engineered timing that makes it difficult to exploit reliably.

Impact

Real-world risk is LOW despite the availability of local attack vectors. CVSS 5.5 indicates local attack vector requiring low privileges (PR:L), no user interaction (UI:N), and limited scope (S:U) with high availability impact (A:H). However, the EPSS score of 0.02% (5th percentile) signals minimal exploitation probability in practice, suggesting this vulnerability is difficult to exploit reliably due to tight race-condition timing requirements - the attacker must invoke ethtool queries within a narrow window during device detach. The attack requires local system access and authenticated user context (PR:L). No KEV listing or public proof-of-concept identified, indicating this is not actively exploited in the wild. The impact is confined to denial of service (availability) affecting only the gadget interface itself, not the broader system. For embedded systems or IoT devices using USB gadget mode with active ethtool monitoring, the risk is marginally elevated; for standard desktop/server deployments without USB gadget functionality enabled, risk is negligible. CVSS and EPSS are not in conflict - the high CVSS reflects the severity IF exploitation occurs, while low EPSS reflects the probability that it will occur, which is appropriate for a race-condition vulnerability with strict timing constraints.

Exploit ScenarioDerived

A local user with low privileges on a system running USB gadget mode (e.g., an embedded device, Android phone with USB tethering, or test/development machine) initiates rapid ethtool queries against the gadget interface (e.g., ethtool -i usb0) while simultaneously triggering device unbind via sysfs (echo 0 > /sys/bus/usb/devices/*/unbind or via user disconnect events). If the timing aligns such that ethtool's SIOCETHTOOL ioctl is processed after the gadget pointer is cleared but before the interface is fully removed, the kernel dereferences NULL in eth_get_drvinfo(), causing a kernel panic or oops that crashes the device or forces a reboot. No public exploit code is documented, but the vulnerability is trivially reproducible with race-condition fuzzing tools once the timing is understood.

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

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

Alert me

AnalysisAIv1 – May 07, 2026

NULL pointer dereference in the USB Ethernet gadget driver (u_ether) allows local attackers with low privileges to cause a denial of service by querying device information via ethtool during device unbind. The vulnerability occurs when userspace tools call eth_get_drvinfo() on a gadget interface after the kernel has cleared the gadget pointer during device reparenting, triggering a crash without authentication or user interaction. EPSS exploitation probability is minimal (0.02%), and this is a localized denial of service with no impact on confidentiality or integrity.

RemediationAI

Vendor-released patch is available. Update to Linux kernel 6.12.81 or later for the 6.12 branch, 6.19.12 or later for the 6.19 branch, or 6.18.22 or later for the 6.18 branch. For distribution kernels, apply the backported fix from the vendor's stable tree using the commit references provided (0326429e8ba99892e1d1e115dc8e88e1a3b64e24 for the core fix). The patch adds a NULL check in eth_get_drvinfo() to safely handle cases where the gadget pointer has been cleared during device unbind, skipping the copying of firmware version and bus info strings which are natively handled as empty by ethtool_get_drvinfo(). As a temporary workaround for systems that cannot be patched immediately, disable ethtool queries on gadget interfaces during device hot-unplug events by restricting user permissions on /sys/class/net/{ethX}/statistics access or by unloading the USB gadget driver before maintenance, though this introduces functional limitations. No compensating controls fully mitigate the race condition without the patch.

Affected VersionsENISA

Linux e584cb58a2ea7ff4d3a4bc43d5ca512ed3ecb77d <a36e5e800b9c93e3e1ffa42f34d38b36775dbcee
Linux 6.12.78 <6.12.81
Linux ec35c1969650e7cb6c8a91020e568ed46e3551b0 <e002e92e88e12457373ed096b18716d97e7bbb20
Linux 6.19.9 <6.19.12
Linux 6.18.19 <6.18.22
Linux 85acaba2f42b557499bab3608307f17bf13beb69 <7de4d46be40738c7e48e64b5cc0a34aa1e047b0a
Linux 93f116c3393a22acab96ad1bef12b2572eb80ca4 <0326429e8ba99892e1d1e115dc8e88e1a3b64e24

Affected Packages

euvd linux fix: 6.12.81, 6.18.22, 6.19.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The vulnerability exists in the Linux kernel's USB gadget subsystem, specifically in the u_ether driver's eth_get_drvinfo() function. The underlying issue stems from commit ec35c1969650 ('usb: gadget: f_ncm: Fix net_device lifecycle with device_move'), which reparents the gadget device to /sys/devices/virtual during unbind, clearing the gadget pointer stored in the net_device structure. When userspace tools (such as ethtool) query driver information via the SIOCETHTOOL ioctl during the brief window between unbind initiation and interface cleanup, eth_get_drvinfo() attempts to dereference a NULL gadget pointer (CWE-476: NULL Pointer Dereference). The affected code path flows through dev_ioctl() → dev_ethtool() → ethtool_get_drvinfo() → eth_get_drvinfo(). The gadget device structure is critical to the USB Ethernet implementation, but the safe handling of its lifecycle during hot-unplug events was incomplete before this fix.

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 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

5
CVSS changed
May 07, 2026 - 16:22 NVD
5.5 (MEDIUM)
Patch available
May 01, 2026 - 16:02 EUVD
Patch released
May 01, 2026 - 15:24 nvd
Patch available
CVE Published
May 01, 2026 - 14:14 nvd
MEDIUM 5.5
CVE Published
May 01, 2026 - 14:14 nvd
N/A

DescriptionNVD

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

usb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo

Commit ec35c1969650 ("usb: gadget: f_ncm: Fix net_device lifecycle with device_move") reparents the gadget device to /sys/devices/virtual during unbind, clearing the gadget pointer. If the userspace tool queries on the surviving interface during this detached window, this leads to a NULL pointer dereference.

Unable to handle kernel NULL pointer dereference Call trace: eth_get_drvinfo+0x50/0x90 ethtool_get_drvinfo+0x5c/0x1f0 __dev_ethtool+0xaec/0x1fe0 dev_ethtool+0x134/0x2e0 dev_ioctl+0x338/0x560

Add a NULL check for dev->gadget in eth_get_drvinfo(). When detached, skip copying the fw_version and bus_info strings, which is natively handled by ethtool_get_drvinfo for empty strings.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

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.0%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

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

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

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