# CVE-2026-99313: HID: logitech-hidpp: fix race condition when accessing stale stack pointer

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.40% (percentile 26, 2026-11-28)
- **Published:** 2026-11-18T08:42:06.681Z
- **Modified:** 2026-11-20T06:17:46.493Z

## Who should check

- Anyone running Linux \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 0fe696148d2c6486e52220aab822135ed7d05f38; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 88effb7680aea4fc9afaf5780a706f5f30d3de42; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< f427383e734e95af923ac470782ad9a3d1f0c276; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 8f282d12550e3beaf3fea782b5befa65f78b3c78; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e320e65900f0e3bf2874e6f5091fec29384f4a60; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e; bd28e66ce1fb42696c351aad8f736570938a2712; \>= 3.18.17, \< 3.19
- Anyone running Linux 3.19

## Description

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.

## Affected and fixed versions

- Linux: \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 0fe696148d2c6486e52220aab822135ed7d05f38; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 88effb7680aea4fc9afaf5780a706f5f30d3de42; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< f427383e734e95af923ac470782ad9a3d1f0c276; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 8f282d12550e3beaf3fea782b5befa65f78b3c78; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e320e65900f0e3bf2874e6f5091fec29384f4a60; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e; bd28e66ce1fb42696c351aad8f736570938a2712; \>= 3.18.17, \< 3.19 (cvelist)
- Linux: 3.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 3.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99313. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99313.md
Affected: Linux >= 2f31c52529103d8f0e1485272064f982d14ce54a, < 0fe696148d2c6486e52220aab822135ed7d05f38; >= 2f31c52529103d8f0e1485272064f982d14ce54a, < 88effb7680aea4fc9afaf5780a706f5f30d3de42; >= 2f31c52529103d8f0e1485272064f982d14ce54a, < f427383e734e95af923ac470782ad9a3d1f0c276; >= 2f31c52529103d8f0e14852…
Fixed in: Linux 0fe696148d2c6486e52220aab822135ed7d05f38, Linux 88effb7680aea4fc9afaf5780a706f5f30d3de42, Linux 8f282d12550e3beaf3fea782b5befa65f78b3c78, Linux 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d, Linux 3.19

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99313 being exploited?

There is no confirmed exploitation: CVE-2026-99313 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99313?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99313?

Linux \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 0fe696148d2c6486e52220aab822135ed7d05f38; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 88effb7680aea4fc9afaf5780a706f5f30d3de42; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< f427383e734e95af923ac470782ad9a3d1f0c276; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 8f282d12550e3beaf3fea782b5befa65f78b3c78; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e320e65900f0e3bf2874e6f5091fec29384f4a60; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d; \>= 2f31c52529103d8f0e1485272064f982d14ce54a, \< e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e; bd28e66ce1fb42696c351aad8f736570938a2712; \>= 3.18.17, \< 3.19; Linux 3.19.

### Is there a fix for CVE-2026-99313?

Yes. Fixed in Linux 0fe696148d2c6486e52220aab822135ed7d05f38, Linux 88effb7680aea4fc9afaf5780a706f5f30d3de42, Linux 8f282d12550e3beaf3fea782b5befa65f78b3c78, Linux 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d, Linux 3.19. Upgrade Linux to 3.19 or later.

### How do I check if I'm affected by CVE-2026-99313?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0fe696148d2c6486e52220aab822135ed7d05f38>
- other: <https://git.kernel.org/stable/c/88effb7680aea4fc9afaf5780a706f5f30d3de42>
- other: <https://git.kernel.org/stable/c/f427383e734e95af923ac470782ad9a3d1f0c276>
- other: <https://git.kernel.org/stable/c/8f282d12550e3beaf3fea782b5befa65f78b3c78>
- other: <https://git.kernel.org/stable/c/e320e65900f0e3bf2874e6f5091fec29384f4a60>
- other: <https://git.kernel.org/stable/c/4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d>
- other: <https://git.kernel.org/stable/c/e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99313>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99313> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99313>
