CVE-2026-31606: usb: gadget: f_hid: don't call cdev_init while cdev in use
Vulnerability summary
CVE-2026-31606 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5.5% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 28 · Related 27Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
6%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.16% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu159 products
- linuxAll versions (No fix recorded) | < 6.8.0-136.136 | < 7.0.0-27.27
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1061.64 | < 7.0.0-1008.8
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard8 products
- linux-aws-6.18< 6.18.31-r0
- linux-azure-6.18< 6.18.31-r0
- linux-gcp-6.18< 6.18.31-r0
- linux-qemu-6.12< 6.12.85-r0
- linux-qemu-6.18< 6.18.31-r0
Linux2 products
- linux≥ cb382536052fcc7713988869b54a81137069e5a9, < 92f23ab86d9524bc51dae25ed916d0e69dce5992 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < 3aa77f5da0ecb00895411f4246d8a3e4db0343c2 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < eb6ef6185f2054a341ec70d7e2165f5381744215 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < 5a229016ca3ac551294ec59770be9da94ec4bf63 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < 75ecc46828ec377dd5692c677168ef6d64fd7123 | ≥ cb382536052fcc7713988869b54a81137069e5a9, < 81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d | 3.19
- linux_kernel≥ 3.19, < 6.12.83 | ≥ 6.13, < 6.18.24 | ≥ 6.19, < 6.19.14 | ≥ 7.0, < 7.0.1
Debian1 product
- linuxAll versions (No fix recorded) | < 6.1.192-1 | < 6.12.85-1 | < 6.19.14-1
4 vendors · 170 products