# usb: gadget: f_hid: don't call cdev_init while cdev in use

CVE record · `CVE-2026-31606`

- **Identifiers:** `CVE-2026-31606`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 24 Apr 2026
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 24 Apr 2026, 14:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before 92f23ab86d9524bc51dae25ed916d0e69dce5992` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before 3aa77f5da0ecb00895411f4246d8a3e4db0343c2` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before eb6ef6185f2054a341ec70d7e2165f5381744215` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before 5a229016ca3ac551294ec59770be9da94ec4bf63` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before 75ecc46828ec377dd5692c677168ef6d64fd7123` (git)
  - affected: `cb382536052fcc7713988869b54a81137069e5a9 to before 81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.19`
  - unaffected: `before 3.19` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.160 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.83 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.24 to 6.18.*, inclusive` (semver)
  - unaffected: `6.19.14 to 6.19.*, inclusive` (semver)
  - unaffected: `7.0.1 to 7.0.*, inclusive` (semver)
  - unaffected: `7.1 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel USB gadget HID function (f_hid) is affected from a 2014-era commit until fixes in several stable branches, with affected versions listed as 3.19 and later before the fixed releases. Unbinding and rebinding the gadget while a /dev/hidg\* device is still open reinitializes a character device that still has references, which can cause a crash. The source gives few details about who can trigger this or what else an attacker could do. Upgrade to a fixed kernel version from the stable branch that matches your release, such as 6.1.191, 6.6.160, 6.12.83, or 6.18.24 or later.

Written 12 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 4th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 24 Apr 2026, 15:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-31606)

## Sources

- [CVE List: CVE-2026-31606](https://www.cve.org/CVERecord?id=CVE-2026-31606)
- [NVD: CVE-2026-31606](https://nvd.nist.gov/vuln/detail/CVE-2026-31606)

### References from the CNA

- <https://git.kernel.org/stable/c/92f23ab86d9524bc51dae25ed916d0e69dce5992>
- <https://git.kernel.org/stable/c/3aa77f5da0ecb00895411f4246d8a3e4db0343c2>
- <https://git.kernel.org/stable/c/c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43>
- <https://git.kernel.org/stable/c/eb6ef6185f2054a341ec70d7e2165f5381744215>
- <https://git.kernel.org/stable/c/5a229016ca3ac551294ec59770be9da94ec4bf63>
- <https://git.kernel.org/stable/c/75ecc46828ec377dd5692c677168ef6d64fd7123>
- <https://git.kernel.org/stable/c/81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-31606>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-31606/>. Everything for agents: <https://agentprime.io/llms.txt>.
