Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98205 Overview
CVE-2026-98205 is an uninitialized memory use vulnerability in the Linux kernel's evdev input subsystem. The flaw resides in the EVIOCSABS ioctl handler, which copies a user-controlled number of bytes into an uninitialized on-stack struct input_absinfo. Because the copy size is derived from _IOC_SIZE() of the ioctl command, userspace controls how much of the structure is populated. The uninitialized tail is subsequently stored into the device state and returned by EVIOCGABS, leaking stale kernel stack contents to userspace.
Critical Impact
Local users with access to an evdev input device can disclose uninitialized kernel stack memory, potentially revealing pointers, secrets, or data useful for bypassing KASLR and advancing further exploitation.
Affected Products
- Linux kernel versions containing the evdev input driver prior to the fix commits
- Distributions tracking mainline and stable kernel branches referenced in the patch series
- Any Linux-based system exposing /dev/input/event* devices to local users
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98205 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98205
Vulnerability Analysis
The EVIOCSABS ioctl in drivers/input/evdev.c sets the absolute-axis parameters for an input device. The handler declares struct input_absinfo abs on the stack without initialization, then calls copy_from_user() with a length clamped to min_t(size_t, size, sizeof(struct input_absinfo)). The size value originates from _IOC_SIZE() of the issued ioctl, meaning a caller can issue a command with a deliberately short size.
When the supplied size is smaller than sizeof(struct input_absinfo), the trailing bytes of abs retain whatever uninitialized data was present on the kernel stack. The handler then assigns the entire structure into the device state with dev->absinfo[t] = abs;. A subsequent call to EVIOCGABS returns this structure to userspace, exposing the stale stack bytes.
The pre-existing fix-up only cleared the resolution field, which was sufficient for the historical structure layout but did not account for arbitrary short copies. The resolved patch zeroes the structure before the copy_from_user() so any bytes not supplied by the caller are read back as zero.
Root Cause
The root cause is uninitialized stack memory use combined with a user-controlled, partial copy length. The handler trusted the ioctl size without ensuring the destination buffer was first zeroed [CWE-908: Use of Uninitialized Resource].
Attack Vector
A local attacker with permission to open an evdev device node issues EVIOCSABS with a truncated _IOC_SIZE, writing only a prefix of struct input_absinfo. The attacker then issues EVIOCGABS on the same axis and reads back the structure, recovering the uninitialized tail bytes that originated from the kernel stack. This primitive can be repeated to harvest kernel addresses or sensitive values useful for defeating address-space layout randomization.
See the upstream fix in Kernel Commit 30b853a and companion stable backports for the exact code changes.
Detection Methods for CVE-2026-98205
Indicators of Compromise
- Unexpected processes opening /dev/input/event* nodes outside of normal input stack components such as X server, Wayland compositors, or udev
- Repeated ioctl() calls to evdev file descriptors with EVIOCSABS using non-standard sizes, followed by EVIOCGABS reads
- Local user processes accessing input devices without any corresponding desktop or user-session context
Detection Strategies
- Enable kernel auditing on ioctl syscalls targeting character devices under /dev/input/ and alert on unusual callers
- Use KASAN or KMSAN builds in test environments to flag uninitialized memory reads in the input subsystem
- Review eBPF or tracepoint:syscalls:sys_enter_ioctl telemetry for anomalous short-size EVIOCSABS commands
Monitoring Recommendations
- Track kernel version inventory and flag hosts running kernels that lack the referenced stable commits
- Correlate local process activity against expected input-device consumers and alert on deviations
- Monitor for userspace binaries that enumerate /dev/input nodes and perform back-to-back set/get ioctl pairs
How to Mitigate CVE-2026-98205
Immediate Actions Required
- Identify Linux hosts running kernel versions prior to the fix and prioritize them for patching, especially multi-user systems and shared workstations
- Restrict access to /dev/input/event* devices to trusted groups through udev rules and filesystem permissions
- Rebuild or update custom kernels to include the upstream fix before redeployment
Patch Information
The vulnerability is resolved by zeroing struct input_absinfo before the copy_from_user() in the EVIOCSABS handler. Apply the mainline fix and the stable backports: Kernel Commit 30b853a, Kernel Commit 3dfe48d, Kernel Commit 71e5619, Kernel Commit 89b6ffa, Kernel Commit 8b85296, Kernel Commit af5f713, Kernel Commit c0aebb5, and Kernel Commit e834e13. Consume distribution-provided kernel updates once vendors ship the backport.
Workarounds
- Tighten udev rules so that only required desktop sessions can open evdev devices, limiting the local attack surface
- Remove or disable unused input device nodes on servers and headless systems that do not require them
- Enforce least-privilege user accounts and disable local shell access for untrusted users until the patch is deployed
# Example udev rule restricting evdev access to the 'input' group
# Save as /etc/udev/rules.d/60-evdev-restrict.rules
KERNEL=="event*", SUBSYSTEM=="input", MODE="0640", GROUP="input"
# Reload rules and re-trigger
sudo udevadm control --reload-rules
sudo udevadm trigger
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

