Skip to main content

Linux Kernel CVE-2026-31667

| EUVDEUVD-2026-25560 HIGH
Improper Locking (CWE-667)
2026-04-24 Linux GHSA-mxvq-qhx2-fp47
7.8
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
2.5 LOW

Local-only race needing uinput access and precise upload/teardown timing (AV:L, AC:H, PR:L); a locking deadlock affects availability only, so C:N/I:N and A:L for a recoverable hang.

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Analysis Generated
Jul 24, 2026 - 02:24 vuln.today
Patch released
Apr 27, 2026 - 20:00 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
EUVD ID Assigned
Apr 24, 2026 - 15:00 euvd
EUVD-2026-25560
CVE Published
Apr 24, 2026 - 14:45 nvd
HIGH 7.8

DescriptionCVE.org

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

Input: uinput - fix circular locking dependency with ff-core

A lockdep circular locking dependency warning can be triggered reproducibly when using a force-feedback gamepad with uinput (for example, playing ELDEN RING under Wine with a Flydigi Vader 5 controller):

ff->mutex -> udev->mutex -> input_mutex -> dev->mutex -> ff->mutex

The cycle is caused by four lock acquisition paths:

  1. ff upload: input_ff_upload() holds ff->mutex and calls

uinput_dev_upload_effect() -> uinput_request_submit() -> uinput_request_send(), which acquires udev->mutex.

  1. device create: uinput_ioctl_handler() holds udev->mutex and calls

uinput_create_device() -> input_register_device(), which acquires input_mutex.

  1. device register: input_register_device() holds input_mutex and

calls kbd_connect() -> input_register_handle(), which acquires dev->mutex.

  1. evdev release: evdev_release() calls input_flush_device() under

dev->mutex, which calls input_ff_flush() acquiring ff->mutex.

Fix this by introducing a new state_lock spinlock to protect udev->state and udev->dev access in uinput_request_send() instead of acquiring udev->mutex. The function only needs to atomically check device state and queue an input event into the ring buffer via uinput_dev_event() -- both operations are safe under a spinlock (ktime_get_ts64() and wake_up_interruptible() do not sleep). This breaks the ff->mutex -> udev->mutex link since a spinlock is a leaf in the lock ordering and cannot form cycles with mutexes.

To keep state transitions visible to uinput_request_send(), protect writes to udev->state in uinput_create_device() and uinput_destroy_device() with the same state_lock spinlock.

Additionally, move init_completion(&request->done) from uinput_request_send() to uinput_request_submit() before uinput_request_reserve_slot(). Once the slot is allocated, uinput_flush_requests() may call complete() on it at any time from the destroy path, so the completion must be initialised before the request becomes visible.

Lock ordering after the fix:

ff->mutex -> state_lock (spinlock, leaf) udev->mutex -> state_lock (spinlock, leaf) udev->mutex -> input_mutex -> dev->mutex -> ff->mutex (no back-edge)

AnalysisAI

Improper lock ordering in the Linux kernel's uinput driver interacting with the force-feedback (ff-core) subsystem creates a circular locking dependency (ff->mutex → udev->mutex → input_mutex → dev->mutex → ff->mutex) that lockdep flags and that can deadlock kernel threads. It is reproducibly triggered by a local user exercising a force-feedback device through uinput - for example a Flydigi Vader 5 gamepad under Wine/Proton - and is fixed by replacing a mutex acquisition in uinput_request_send() with a leaf spinlock. There is no public exploit identified at time of analysis, EPSS is negligible (0.02%), and the issue is not on CISA KEV; despite the 7.8 CVSS this is a reliability/locking correctness fix rather than a memory-corruption bug.

Technical ContextAI

The affected code is the Linux input stack: the uinput driver (drivers/input/misc/uinput.c) that lets userspace create virtual input devices, and the force-feedback core (ff-core) that mediates effect uploads. The root cause is classified as CWE-667 (Improper Locking): four independent lock-acquisition paths - force-feedback effect upload (input_ff_upload holding ff->mutex), uinput device creation (holding udev->mutex), input_register_device (holding input_mutex), and evdev_release flushing under dev->mutex - together form a cycle among ff->mutex, udev->mutex, input_mutex and dev->mutex. Because these are sleeping mutexes, the cycle is a genuine ABBA-style deadlock hazard. The fix introduces a dedicated state_lock spinlock to guard udev->state and udev->dev in uinput_request_send() (safe because ktime_get_ts64() and wake_up_interruptible() do not sleep), making it a leaf in the lock order that cannot participate in a mutex cycle, and relocates init_completion() into uinput_request_submit() so a request is fully initialized before uinput_flush_requests() can complete it.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 5.10.253, 5.15.203, 6.1.169, 6.6.135, 6.12.82, 6.18.23, 6.19.13, or mainline 7.0, whichever matches your series - using your distribution's package (for Ubuntu apply the update in USN-8567-1 at https://ubuntu.com/security/notices/USN-8567-1, and track equivalent Red Hat/SUSE errata). The upstream fixes are the git.kernel.org stable commits listed in the references. If immediate patching is not possible, the practical compensating control is to restrict access to the uinput interface: ensure /dev/uinput is not world-accessible and that the uinput module is only usable by trusted users/services (tighten udev permissions or unload/blacklist the uinput module where virtual input devices and force-feedback controllers are not needed), accepting that this breaks virtual-input tooling such as Steam Input, gamepad emulation, and remote-desktop input injection. Because the defect is a locking correctness issue with no confidentiality/integrity primitive, no network-layer mitigation applies.

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

Share

CVE-2026-31667 vulnerability details – vuln.today

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