CVE-2026-31606

published 24 Apr 2026 · updated 13 Nov 2026

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

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12.83, Kernel 6.18.24, Kernel 6.19.14 and 10 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=3.19 <6.12.83, >=6.13 <6.18.24, >=6.19 <6.19.14, >=7.0 <7.0.1, >=cb382536052fcc7713988869b54a81137069e5a9 <5a229016ca3ac551294ec59770be9da94ec4bf63, >=cb382536052fcc7713988869b54a81137069e5a9 <75ecc46828ec377dd5692c677168ef6d64fd7123, >=cb382536052fcc7713988869b54a81137069e5a9 <81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d, >=cb382536052fcc7713988869b54a81137069e5a9 <92f23ab86d9524bc51dae25ed916d0e69dce5992, >=cb382536052fcc7713988869b54a81137069e5a9 <c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43, >=cb382536052fcc7713988869b54a81137069e5a9 <eb6ef6185f2054a341ec70d7e2165f5381744215, =3.19, >=cb382536052fcc7713988869b54a81137069e5a9 <3aa77f5da0ecb00895411f4246d8a3e4db0343c26.12.83, 6.18.24, 6.19.14, 7.0.1, 5a229016ca3ac551294ec59770be9da94ec4bf63, 75ecc46828ec377dd5692c677168ef6d64fd7123, 81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d, 92f23ab86d9524bc51dae25ed916d0e69dce5992, c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43, eb6ef6185f2054a341ec70d7e2165f5381744215, 3aa77f5da0ecb00895411f4246d8a3e4db0343c2
linux-kernel: Kernel>=3.19.0 <6.1.191, >=6.13.0 <6.18.24, >=6.19.0 <6.19.14, >=6.2.0 <6.6.160, >=6.20.0 <7.0.1, >=6.7.0 <6.12.836.1.191, 6.18.24, 6.19.14, 6.6.160, 7.0.1, 6.12.83

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-31606 severity on Zeptric[![CVE-2026-31606](https://zeptric.io/badge/cve/CVE-2026-31606.svg)](https://zeptric.io/cve/CVE-2026-31606)