Skip to main content

Linux Kernel GPIB CVE-2026-31769

| EUVDEUVD-2026-26582 HIGH
Use After Free (CWE-416)
2026-05-01 Linux
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to system with GPIB hardware
  2. Delivery
    Open GPIB device descriptor via /dev/gpib ioctl
  3. Exploit
    Thread 1 issues IBRD/IBWAIT ioctl triggering mutex release
  4. Install
    Thread 2 issues IBCLOSEDEV ioctl freeing descriptor
  5. C2
    Thread 1 dereferences freed memory
  6. Execute
    Heap spray to control freed memory contents
  7. Impact
    Redirect kernel execution to payload
  8. Step 8
    Execute arbitrary code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires local authenticated access with an account capable of opening GPIB device nodes (typically /dev/gpib* character devices). The system must have GPIB hardware physically present and the gpib kernel module loaded with device nodes created. Most critically, the vulnerable code path is only reachable when the GPIB subsystem is compiled into the kernel or loaded as a module - standard distribution kernels often exclude GPIB support entirely due to its niche use case. Attack complexity is low (AC:L) once prerequisites are met: no special configuration beyond default GPIB driver operation is required, and the race condition is reliably triggerable by opening a descriptor and issuing concurrent ioctls from separate threads. No user interaction (UI:N) beyond the attacker's own actions is needed. Exploitation is LIMITED to environments with legacy industrial control systems, scientific test equipment, or laboratory instrumentation using IEEE 488 GPIB interfaces - consumer systems, cloud instances, and modern servers virtually never have this hardware. The authentication requirement (PR:L) means network-based remote attackers cannot exploit this directly; local access (AV:L) via SSH, physical console, or prior compromise is mandatory.

Impact

Real-world risk is moderate despite the 7.8 CVSS score. The CVSS vector (AV:L/AC:L/PR:L) indicates local access with low privilege requirements and low attack complexity, meaning an authenticated local user can reliably exploit this. However, multiple factors reduce practical severity: EPSS score of 0.02% (4th percentile) suggests near-zero observed exploitation attempts in the wild, no CISA KEV listing confirms no widespread active exploitation, and the vulnerability requires access to GPIB hardware interfaces which are extremely rare in modern deployments (primarily legacy industrial control systems, scientific instruments, and test equipment). The authentication requirement and local-only attack vector significantly limit the attack surface compared to network-reachable vulnerabilities. The technical impact is severe (arbitrary code execution with kernel privileges leading to complete system compromise), but exploitation prerequisites make this a priority only for organizations actually using GPIB hardware. SSVC decision factors: exploitation status is none (no public POC identified), automatable is no (requires local authenticated access and specific hardware), technical impact is total (kernel memory corruption enables full system takeover). For the vast majority of Linux deployments without GPIB hardware, this vulnerability has zero exploitability despite the high CVSS rating - a clear example where CVSS alone misleads prioritization.

Exploit ScenarioDerived

A local authenticated attacker with a standard user account on a Linux system equipped with GPIB hardware opens a GPIB device handle via /dev/gpib0. From one thread, the attacker initiates a long-running I/O operation (IBRD or IBWAIT ioctl) that will cause the kernel to release big_gpib_mutex while still using the descriptor pointer. Simultaneously from a second thread, the attacker issues an IBCLOSEDEV ioctl targeting the same handle, causing close_dev_ioctl() to free the gpib_descriptor structure. The first thread's ioctl handler then dereferences the freed memory, triggering use-after-free. By carefully timing the race and pre-populating freed memory with attacker-controlled data through heap spraying techniques, the attacker can redirect kernel execution flow to arbitrary code running with kernel privileges, achieving privilege escalation to root and complete system compromise. No public proof-of-concept code is identified at time of analysis, but the race window and exploitation technique are well-understood patterns in kernel exploitation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 03, 2026

Use-after-free in Linux kernel GPIB subsystem allows local authenticated attackers with low privileges to execute arbitrary code, escalate privileges, or crash the system. The vulnerability occurs in IBRD, IBWRT, IBCMD, and IBWAIT ioctl handlers when concurrent IBCLOSEDEV calls free descriptors still in use by I/O operations. EPSS probability is very low (0.02%, 4th percentile), indicating minimal observed exploitation activity. Vendor patches available for stable branches 6.18.22, 6.19.12, and mainline 7.0 via commits cae26eff, 28c75dd1, and d1857f82.

RemediationAI

Apply vendor-released kernel patches immediately for any systems with GPIB hardware: upgrade to Linux kernel 6.18.22 or later for 6.18.x series (commit 28c75dd143ead62e0dfac564c79d251e21d5d74b), 6.19.12 or later for 6.19.x series (commit cae26eff1b56d78bed7873cf3e60a2b1bdd4da6c), or 7.0 or later for mainline (commit d1857f8296dceb75d00ab857fc3c61bc00c7f5c6). Patches available at https://git.kernel.org/stable/c/cae26eff1b56d78bed7873cf3e60a2b1bdd4da6c and related commit URLs. For systems where immediate patching is not feasible, implement compensating controls: unload the GPIB kernel module (rmmod gpib_common and related modules) if GPIB hardware is not actively in use, which eliminates the attack surface entirely. Restrict access to /dev/gpib* device nodes using filesystem permissions (chmod 600, chown root:root) to prevent unprivileged local users from opening GPIB file descriptors required for exploitation. Note that unloading the module will break any applications depending on GPIB functionality. If GPIB access is required, restrict user accounts with physical or SSH access to the system and monitor for unusual ioctl activity on GPIB devices via auditd rules. For most deployments without GPIB hardware, verify the gpib module is not loaded (lsmod | grep gpib) and consider blacklisting it in /etc/modprobe.d/ to prevent accidental loading.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <28c75dd143ead62e0dfac564c79d251e21d5d74b
Linux patch: 6.19.12
Linux patch: 6.18.22
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <cae26eff1b56d78bed7873cf3e60a2b1bdd4da6c
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d1857f8296dceb75d00ab857fc3c61bc00c7f5c6
Linux patch: 7.0

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 GPIB (General Purpose Interface Bus) subsystem in the Linux kernel implements IEEE 488 bus controller functionality through ioctl handlers. The vulnerability stems from improper synchronization between I/O operations and resource cleanup. Four ioctl handlers (read_ioctl, write_ioctl, command_ioctl, wait_ioctl) obtain a gpib_descriptor pointer via handle_to_descriptor() under board->big_gpib_mutex protection, but then release the mutex before completing their operations. During this window, a concurrent IBCLOSEDEV ioctl can invoke close_dev_ioctl(), which frees the descriptor structure while the I/O handler still holds a reference to it. The existing io_in_progress flag was insufficient because it could be cleared from unprivileged userspace via IBWAIT ioctl calling general_ibstatus() with CMPL in set_mask. This is a classic time-of-check-time-of-use race condition where the validity of a resource is checked under lock but the resource is used after the lock is released. The fix introduces a kernel-controlled descriptor_busy atomic reference counter protected by file_priv->descriptors_mutex, ensuring descriptors cannot be freed while kernel I/O paths actively use them.

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

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
7.8 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 16:33 EUVD
CVE Published
May 01, 2026 - 14:14 nvd
HIGH 7.8

DescriptionCVE.org

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

gpib: fix use-after-free in IO ioctl handlers

The IBRD, IBWRT, IBCMD, and IBWAIT ioctl handlers use a gpib_descriptor pointer after board->big_gpib_mutex has been released. A concurrent IBCLOSEDEV ioctl can free the descriptor via close_dev_ioctl() during this window, causing a use-after-free.

The IO handlers (read_ioctl, write_ioctl, command_ioctl) explicitly release big_gpib_mutex before calling their handler. wait_ioctl() is called with big_gpib_mutex held, but ibwait() releases it internally when wait_mask is non-zero. In all four cases, the descriptor pointer obtained from handle_to_descriptor() becomes unprotected.

Fix this by introducing a kernel-only descriptor_busy reference count in struct gpib_descriptor. Each handler atomically increments descriptor_busy under file_priv->descriptors_mutex before releasing the lock, and decrements it when done. close_dev_ioctl() checks descriptor_busy under the same lock and rejects the close with -EBUSY if the count is non-zero.

A reference count rather than a simple flag is necessary because multiple handlers can operate on the same descriptor concurrently (e.g. IBRD and IBWAIT on the same handle from different threads).

A separate counter is needed because io_in_progress can be cleared from unprivileged userspace via the IBWAIT ioctl (through general_ibstatus() with set_mask containing CMPL), which would allow an attacker to bypass a check based solely on io_in_progress. The new descriptor_busy counter is only modified by the kernel IO paths.

The lock ordering is consistent (big_gpib_mutex -> descriptors_mutex) and the handlers only hold descriptors_mutex briefly during the lookup, so there is no deadlock risk and no impact on IO throughput.

Executive ViewAI

Why It Matters

CVE-2026-31769 is a use-after-free vulnerability in the Linux kernel GPIB subsystem that allows authenticated local users to execute arbitrary code or crash systems. This affects organizations running affected kernel versions on systems with GPIB hardware or driver support; exploitation requires local access and low privileges, limiting immediate risk but requiring patching to prevent privilege escalation attacks.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, restrict local access to systems with GPIB subsystem enabled and disable GPIB drivers if not operationally required; monitor system logs for unexpected crashes or privilege escalation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

SUSE

Severity: High
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