CVE-2026-90001
HID: bpf: serialize device reference release in struct_ops destroy path
Mitigation
- Upgrade Linux to 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0 or later.
Who should check
- Anyone running Linux >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 401359684620145be710de97b87e1a47abfe1459; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < c7f927aa8b55008ed5ea0814313d5dad771dcf3c; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < bfb7939788f3c8dd080a4dd81e38d625b35d194e; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0
- Anyone running Linux 6.11
Vulnerability facts
- Affected
- Linux >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 401359684620145be710de97b87e1a47abfe1459; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < c7f927aa8b55008ed5ea0814313d5dad771dcf3c; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < bfb7939788f3c8dd080a4dd81e38d625b35d194e; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0; Linux 6.11
- Fixed in
- Linux 401359684620145be710de97b87e1a47abfe1459, Linux 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 401359684620145be710de97b87e1a47abfe1459; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < c7f927aa8b55008ed5ea0814313d5dad771dcf3c; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < bfb7939788f3c8dd080a4dd81e38d625b35d194e; >= ebc0d8093e8c97de459615438edefad1a4ac352c, < 9cdc7e6dc7a99ad7311ad5e7c145f2b9ce4e24b0 | — | cvelist |
| Linux | 6.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
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.