CVE-2026-31606

CVE-2026-31606

Medium · published April 24, 2026

CVSS v3.1
5.5
EPSS
0%
Percentile
5.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00162 · 5.1th percentile
Published
2026-04-24T19:16Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 3.19, < 6.12.836.12.83
linux/linux_kernel≥ 6.13, < 6.18.246.18.24
linux/linux_kernel≥ 6.19, < 6.19.146.19.14
linux/linux_kernel≥ 7.0, < 7.0.17.0.1
References (6)
EPSS history
Timeline
  • 24 APR 14:42Z
    usb: gadget: f_hid: don't call cdev_init while cdev in use
    cvelistv5