# CVE-2026-90001: HID: bpf: serialize device reference release in struct\_ops destroy path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-16T10:33:12.063Z
- **Modified:** 2026-10-19T09:18:47.660Z

## Who should check

- Anyone running Linux \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 401359684620145be710de97b87e1a47abfe1459; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< c7f927aa8b55008ed5ea0814313d5dad771dcf3c; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< bfb7939788f3c8dd080a4dd81e38d625b35d194e; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0
- Anyone running Linux 6.11

## Description

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

HID: bpf: serialize device reference release in struct\_ops destroy path

\_\_hid\_bpf\_ops\_destroy\_device() and hid\_bpf\_unreg() can race on the
same registration reference, double-putting struct hid\_device and
freeing it while hid\_destroy\_device() still uses it.  Serialize the
remove/NULL decision under hdev-\>bpf.prog\_list\_lock so exactly one
path releases each registration reference: unreg re-checks ops-\>hdev
under the lock and returns without putting when the destroy path
already cleared it; all put\_device() calls happen after the lock is
dropped, which is safe because a concurrent unreg then observes
ops-\>hdev == NULL under the lock.

Background: each successful attach (hid\_bpf\_ops\_reg) acquires one
device reference (hid\_get\_device()).  Two paths can release it:

- device destruction: hid\_destroy\_device() -\> hid\_bpf\_destroy\_device()
  -\> \_\_hid\_bpf\_ops\_destroy\_device(), which walks hdev-\>bpf.prog\_list
  under rcu\_read\_lock() and drops one reference per attached program;
- BPF link release: bpf map delete (no BPF\_F\_LINK) synchronously calls
  st\_ops-\>unreg() -\> hid\_bpf\_unreg(), which drops the reference for
  its own registration.

The coordination handshake (e-\>hdev = NULL on the destroy side vs
"if (!hdev) return" on the unreg side) is a TOCTOU check: the two
paths run under different lock domains (rcu\_read\_lock vs
prog\_list\_lock), so a concurrent unreg can read ops-\>hdev as
non-NULL, block on prog\_list\_lock, and then proceed while the
destroy traversal executes - both paths then drop the same
reference.  The refcount reaches zero legitimately (each decrement
is individually valid), so no refcount\_t saturation fires: the
device is simply freed while the transport is still inside
hid\_destroy\_device(), and subsequent teardown touches freed memory.

The fix serializes the remove/NULL decision under prog\_list\_lock on
both sides and moves the destroy-side puts outside the lock.  With
the lock held, plain reads/writes of ops-\>hdev are sufficient; no
READ\_ONCE/WRITE\_ONCE are added, keeping the patch minimal.

Unlocked-read safety: the unlocked read of ops-\>hdev at the top of
hid\_bpf\_unreg() cannot touch a freed device, because the unreg path
itself still holds this registration's reference (released only by
its own hid\_put\_device() after the lock is dropped), and a destroy
traversal that already cleared ops-\>hdev makes the lock-internal
re-check return early without any put.  At most one of the two
paths releases each registration reference.

## Affected and fixed versions

- Linux: \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 401359684620145be710de97b87e1a47abfe1459; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< c7f927aa8b55008ed5ea0814313d5dad771dcf3c; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< bfb7939788f3c8dd080a4dd81e38d625b35d194e; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0 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-90001. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90001.md
Affected: Linux >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 401359684620145be710de97b87e1a47abfe1459; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < c7f927aa8b55008ed5ea0814313d5dad771dcf3c; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < bfb7939788f3c8dd080a4dd81e38d625b35d194e; >= ebc0d8093e8c97de4596154…
Fixed in: Linux 401359684620145be710de97b87e1a47abfe1459, Linux 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0

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-90001 being exploited?

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

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

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

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

Linux \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 401359684620145be710de97b87e1a47abfe1459; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< c7f927aa8b55008ed5ea0814313d5dad771dcf3c; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< bfb7939788f3c8dd080a4dd81e38d625b35d194e; \>= ebc0d8093e8c97de459615438edefad1a4ac352c, \< 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0; Linux 6.11.

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

Yes. Fixed in Linux 401359684620145be710de97b87e1a47abfe1459, Linux 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0. Upgrade Linux to 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0 or later.

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

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/401359684620145be710de97b87e1a47abfe1459>
- other: <https://git.kernel.org/stable/c/c7f927aa8b55008ed5ea0814313d5dad771dcf3c>
- other: <https://git.kernel.org/stable/c/bfb7939788f3c8dd080a4dd81e38d625b35d194e>
- other: <https://git.kernel.org/stable/c/9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0>

## 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-90001>

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