Skip to main content

Linux Kernel CVE-2026-46258

| EUVDEUVD-2026-34120 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-06-03 Linux GHSA-xf52-gg4r-hj5f
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain local low-privilege shell
  2. Delivery
    Open /dev/gpiochipN character device
  3. Exploit
    Issue GPIO_GET_LINEHANDLE ioctl to invoke linehandle_create()
  4. Execution
    retain_and_null_ptr(lh) nullifies lh pointer
  5. Persist
    Debug printout dereferences NULL lh
  6. Impact
    Kernel panic triggers system 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

The attacker must have local authenticated access (CVSS PR:L) to a system where: (1) the Linux kernel was compiled with CONFIG_GPIOLIB_CDEV enabled, (2) GPIO character device hardware or emulation is present and accessible as /dev/gpiochipN, and (3) the attacker has read/write permissions on those device nodes. Systems without physical GPIO hardware, without the gpio-cdev kernel module loaded, or where /dev/gpiochip* devices are restricted to root only are not exploitable. Exploitation is strictly limited to denial of service (kernel panic); there is no code execution, privilege escalation, or data disclosure vector. The attack requires no user interaction and no special network access - purely local OS-level access to the GPIO device interface.

Impact

The CVSS 5.5 score is supported by the vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - local attack surface, low complexity, low privileges, high availability impact. These signals align well with the description: a local user who can open and perform ioctl operations on a GPIO character device can reproducibly crash the kernel. EPSS of 0.02% (5th percentile) and the absence of a CISA KEV listing are mutually consistent, indicating this has not attracted widespread attacker interest. There is no conflict between CVSS signals and the description. The practical risk is highest on embedded Linux systems, IoT gateways, industrial control systems, or any Linux host with accessible GPIO hardware where untrusted local users exist. On typical cloud VMs or servers without GPIO hardware or without CONFIG_GPIOLIB_CDEV loaded, this vulnerability is not reachable. There is no confidentiality or integrity impact, so the risk ceiling is a hard system crash - impactful for availability-sensitive deployments but not a stepping stone to privilege escalation.

Exploit ScenarioDerived

A local user with low privileges on a Linux system running an affected kernel version opens a /dev/gpiochipN device and issues an ioctl to create a line handle, reaching the linehandle_create() code path. The retain_and_null_ptr(lh) macro nullifies lh, and the immediately following debug printout dereferences it, triggering a kernel NULL pointer dereference oops. Depending on kernel configuration, this results in either a kernel panic and system reboot or a process kill with potential system instability. No public POC has been identified, but the code path is straightforward to reach for anyone familiar with the Linux GPIO uAPI.

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 – Jun 09, 2026

NULL pointer dereference in the Linux kernel's GPIO character device subsystem (gpio/cdev) allows a local, low-privileged user to crash the kernel via a denial-of-service. In linehandle_create(), the macro retain_and_null_ptr(lh) sets lh to NULL, but a subsequent debug printout immediately dereferences that same pointer - triggering a kernel panic. No public exploit has been identified at time of analysis, and EPSS indicates very low exploitation probability at 0.02% (5th percentile), consistent with a local-access-only DoS with no code execution or data exposure component.

RemediationAI

Upgrade to Linux kernel 6.19.4 or Linux 7.0, which incorporate the corrective stable commits available at https://git.kernel.org/stable/c/87b9d7a4cfbed5f42af440372026270af997c766 and https://git.kernel.org/stable/c/6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e respectively. Distribution-specific kernel packages (Debian, Ubuntu, RHEL, etc.) should be monitored for backported fixes to their supported kernel versions. As a compensating control where immediate patching is not feasible, restrict unprivileged access to GPIO character devices by tightening udev rules or filesystem permissions on /dev/gpiochip* nodes (e.g., mode 0600, root-only ownership), which prevents the ioctl path from being reachable by low-privileged users; note this will break any legitimate userspace GPIO applications relying on those devices. Alternatively, if GPIO character device support is not required, unloading or blacklisting the gpiolib-cdev kernel module eliminates the attack surface entirely with no side effects on non-GPIO workloads.

Affected VersionsENISA

Linux 6.19
Linux da7e394bf58f94e9783379fef7c7fb4411b03208 <87b9d7a4cfbed5f42af440372026270af997c766
Linux da7e394bf58f94e9783379fef7c7fb4411b03208 <6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e
Linux patch: 6.19.4
Linux patch: 0
Linux patch: 7.0

Affected Packages

euvd linux no fix

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 resides in the Linux kernel's GPIO character device layer (drivers/gpio/gpiolib-cdev.c), specifically in the linehandle_create() function. CPE data (cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*) identifies the affected product as the mainline Linux kernel across versions introducing commit da7e394bf58f94e9783379fef7c7fb4411b03208 up to the fix commits. CWE-476 (NULL Pointer Dereference) precisely describes the root cause: the retain_and_null_ptr() macro is a kernel idiom that explicitly nullifies a pointer after transferring ownership or releasing a reference, but the debug log statement immediately following it blindly dereferences lh without a NULL guard. The fix replaces the lh dereference in the debug path with handlereq.lines, which holds the equivalent value and is not nullified. This class of bug is common at ownership-transfer boundaries in kernel subsystems where debug instrumentation is added without accounting for pointer lifetime changes.

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

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

4
CVSS changed
Jun 09, 2026 - 20:22 NVD
5.5 (MEDIUM)
Patch available
Jun 03, 2026 - 19:01 EUVD
CVE Published
Jun 03, 2026 - 15:49 nvd
MEDIUM 5.5
CVE Published
Jun 03, 2026 - 15:49 nvd
UNKNOWN (no severity yet)

DescriptionNVD

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

gpio: cdev: Avoid NULL dereference in linehandle_create()

In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh);

Soon after, there is a debug printout that dereferences "lh", which will crash things.

Avoid the crash by using handlereq.lines, which is the same value.

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: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

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