CVE-2026-31667·Kernel vulnerability
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. 2. device create: uinput_ioctl_handler() holds udev->mutex and calls uinput_create_device() -> input_register_device(), which acquires input_mutex. 3. device register: input_register_device() holds input_mutex and calls kbd_connect() -> input_register_handle(), which acquires dev->mutex. 4. 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)
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.14% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31667 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.14%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.13
Fixed in: 6.19.13
How to fix this CVE
Update your Linux kernel to version 6.19.13 or later to resolve a circular locking dependency in the uinput force-feedback subsystem. This vulnerability affects systems using force-feedback input devices (such as gaming controllers) with the uinput driver. Apply kernel updates through your distribution's package manager and reboot your system.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check the installed kernel version with: uname -r (must be 6.19.13 or later to be safe; versions 6.19.0-6.19.12 are vulnerable)
- Verify if uinput and force-feedback drivers are loaded: lsmod | grep -E 'uinput|ff_'
- Search kernel logs for locking warnings related to uinput: journalctl -k | grep -i 'lockdep\|circular\|uinput'
- Confirm the patch is applied by checking kernel release info: cat /proc/version | grep -q '6.19.13' && echo 'Patched' || echo 'Vulnerable'
FAQ
What is CVE-2026-31667?
This vulnerability is a circular locking dependency in the Linux kernel's uinput force-feedback subsystem that can cause system hangs or crashes when using force-feedback input devices. The issue occurs due to improper lock ordering between the force-feedback mutex, uinput device mutex, and input subsystem mutexes.
Is CVE-2026-31667 being actively exploited?
No, this CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is available. However, it can be triggered reproducibly when using force-feedback gaming controllers like the Flydigi Vader 5.
What versions of Kernel are affected by CVE-2026-31667?
Linux kernel versions 6.19.0 through 6.19.12 are vulnerable. The fix is included in kernel version 6.19.13 and later.
How do I check if my server is vulnerable to CVE-2026-31667?
Run uname -r and check if the output shows a version between 6.19.0 and 6.19.12. If so, and if you use force-feedback input devices with uinput, your system is vulnerable. Additionally, check if the uinput module is loaded: lsmod | grep uinput
Does Defensia detect CVE-2026-31667?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31667 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1534661043c434b81cfde26b97a2fb2460329cf0
- https://git.kernel.org/stable/c/1e09dfbb4f5d20ee111f92325a00f85778a5f328
- https://git.kernel.org/stable/c/271ee71a1917b89f6d73ec82dd091c33d92ee617
- https://git.kernel.org/stable/c/4cda78d6f8bf2b700529f2fbccb994c3e826d7c2
- https://git.kernel.org/stable/c/546c18a14924eb521fe168d916d7ce28f1e13c1d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31667. Free for 1 server.
Get started free