CVE-2026-31606usb: gadget: f_hid: don't call cdev_init while cdev in use
- 5.5MediumCVSS base score
- 0.16%Exploitation in 30 daysEPSS · top 95% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: don't call cdev_init while cdev in use When calling unbind, then bind again, cdev_init reinitialized the cdev, even though there may still be references to it. That's the case when the /dev/hidg* device is still opened. This obviously unsafe behavior like oopes. This fixes this by using cdev_alloc to put the cdev on the heap. That way, we can simply allocate a new one in hidg_bind.
Timeline
ID reserved
By Linux
- 46 days later
· 46 days later
Published
- 6 months later
· 6 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.16% · top 95% of all CVEs (13 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected cb382536052fcc7713988869b54a81137069e5a9 – < 92f23ab86d9524bc51dae25ed916d0e69dce5992
- affected cb382536052fcc7713988869b54a81137069e5a9 – < 3aa77f5da0ecb00895411f4246d8a3e4db0343c2
- affected cb382536052fcc7713988869b54a81137069e5a9 – < c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43
- affected cb382536052fcc7713988869b54a81137069e5a9 – < eb6ef6185f2054a341ec70d7e2165f5381744215
- affected cb382536052fcc7713988869b54a81137069e5a9 – < 5a229016ca3ac551294ec59770be9da94ec4bf63
- affected cb382536052fcc7713988869b54a81137069e5a9 – < 75ecc46828ec377dd5692c677168ef6d64fd7123
- affected cb382536052fcc7713988869b54a81137069e5a9 – < 81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d
- affected 3.19
- unaffected < 3.19
- unaffected 6.1.191 – ≤ 6.1.*
- unaffected 6.6.160 – ≤ 6.6.*
- unaffected 6.12.83 – ≤ 6.12.*
- unaffected 6.18.24 – ≤ 6.18.*
- unaffected 6.19.14 – ≤ 6.19.*
- unaffected 7.0.1 – ≤ 7.0.*
- unaffected 7.1 – ≤ *
References
References7
- https://git.kernel.org/stable/c/92f23ab86d9524bc51dae25ed916d0e69dce5992 (opens in a new tab)
- https://git.kernel.org/stable/c/3aa77f5da0ecb00895411f4246d8a3e4db0343c2 (opens in a new tab)
- https://git.kernel.org/stable/c/c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43 (opens in a new tab)
- https://git.kernel.org/stable/c/eb6ef6185f2054a341ec70d7e2165f5381744215 (opens in a new tab)
- https://git.kernel.org/stable/c/5a229016ca3ac551294ec59770be9da94ec4bf63 (opens in a new tab)
- https://git.kernel.org/stable/c/75ecc46828ec377dd5692c677168ef6d64fd7123 (opens in a new tab)
- https://git.kernel.org/stable/c/81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-25499 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-31606)Record last updated .