CVE-2026-99313·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: HID: logitech-hidpp: fix race condition when accessing stale stack pointer The driver uses hidpp->send_receive_buf to point to a stack-allocated buffer in the synchronous command path (__do_hidpp_send_message_sync). However, this pointer is not cleared when the function returns. If an event is processed (e.g. by a different thread) while the send_mutex is held by a new command, but before that command has updated send_receive_buf, the handler (hidpp_raw_hidpp_event) will observe that the mutex is locked and dereference the stale pointer. This results in an out-of-bounds access on a different thread's kernel stack (or a NULL pointer dereference on the very first command). Fix this by: 1. Clearing hidpp->send_receive_buf to NULL before releasing the mutex in the synchronous command path. 2. Moving the assignment of the local 'question' and 'answer' pointers inside the mutex_is_locked() block in the handler, and adding a NULL check before dereferencing.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.1
- Published
How to fix this CVE
Update your Linux kernel to a patched version to resolve a race condition in the Logitech HID driver that could cause out-of-bounds memory access. Users should upgrade to kernel 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, or later depending on their current kernel branch. Most users should check with their Linux distribution for a patched kernel package rather than compiling mainline kernel 7.1.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and compare against the fixed versions (5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, or 7.1+)
- Step 2: Verify if the Logitech HID driver is loaded with `lsmod | grep hid_logitech_hidpp`; if not present, the system is not exposed
- Step 3: Search kernel logs for HID-related crashes or NULL pointer dereferences with `dmesg | grep -i 'hid\|null pointer\|oops'`
- Step 4: After applying the kernel update, reboot and confirm the new version with `uname -r` matches a fixed release
FAQ
What is CVE-2026-99313?
CVE-2026-99313 is a race condition in the Linux kernel's Logitech HID driver where a stale stack pointer is dereferenced by an event handler, causing out-of-bounds memory access or NULL pointer dereference across different kernel threads.
Is CVE-2026-99313 being actively exploited?
No, CVE-2026-99313 is not currently listed on the CISA KEV catalog and no public exploits are available. However, the vulnerability can still cause system crashes and data corruption.
What versions of Kernel are affected by CVE-2026-99313?
All kernel versions before the fixed releases are affected: 5.10.270 and earlier (5.10 branch), 5.15.221 and earlier (5.15 branch), 6.1.188 and earlier (6.1 branch), 6.6.157 and earlier (6.6 branch), 6.12.111 and earlier (6.12 branch), 6.18.53 and earlier (6.18 branch), and mainline prior to 7.1.
How do I check if my server is vulnerable to CVE-2026-99313?
Run `uname -r` to get your kernel version, then verify if it is below 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, or 7.1. If the HID Logitech driver is not loaded (`lsmod | grep hid_logitech_hidpp`), the system is not exposed.
Does Defensia detect CVE-2026-99313?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel is detected on a monitored server, CVE-2026-99313 will appear in your dashboard with remediation steps and patch availability for your Linux distribution.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0fe696148d2c6486e52220aab822135ed7d05f38
- https://git.kernel.org/stable/c/4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d
- https://git.kernel.org/stable/c/88effb7680aea4fc9afaf5780a706f5f30d3de42
- https://git.kernel.org/stable/c/8f282d12550e3beaf3fea782b5befa65f78b3c78
- https://git.kernel.org/stable/c/e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-99313. Free for 1 server.
Get started free