{"id":"CVE-2026-31606","aliases":["CVE-2026-31606"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_hid: don't call cdev_init while cdev in use","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: don't call cdev_init while cdev in use\n\nWhen calling unbind, then bind again, cdev_init reinitialized the cdev,\neven though there may still be references to it. That's the case when\nthe /dev/hidg* device is still opened. This obviously unsafe behavior\nlike oopes.\n\nThis fixes this by using cdev_alloc to put the cdev on the heap. That\nway, we can simply allocate a new one in hidg_bind.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: don't call cdev_init while cdev in use\n\nWhen calling unbind, then bind again, cdev_init reinitialized the cdev,\neven though there may still be references to it. That's the case when\nthe /dev/hidg* device is still opened. This obviously unsafe behavior\nlike oopes.\n\nThis fixes this by using cdev_alloc to put the cdev on the heap. That\nway, we can simply allocate a new one in hidg_bind.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: gadget: f_hid: no llamar a cdev_init mientras cdev esté en uso\n\nAl llamar a unbind, luego a bind de nuevo, cdev_init reinicializaba el cdev, incluso si todavía puede haber referencias a él. Ese es el caso cuando el dispositivo /dev/hidg todavía está abierto. Este comportamiento obviamente inseguro como oopes.\n\nEsto lo soluciona usando cdev_alloc para poner el cdev en el heap. De esa manera, podemos simplemente asignar uno nuevo en hidg_bind.","source":"nvd"}],"published":"2026-04-24T14:42:28.792Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"92f23ab86d9524bc51dae25ed916d0e69dce5992","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"3aa77f5da0ecb00895411f4246d8a3e4db0343c2","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"eb6ef6185f2054a341ec70d7e2165f5381744215","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"5a229016ca3ac551294ec59770be9da94ec4bf63","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"75ecc46828ec377dd5692c677168ef6d64fd7123","status":"affected"},{"type":"git","introduced":"cb382536052fcc7713988869b54a81137069e5a9","fixed":"81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.19","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/92f23ab86d9524bc51dae25ed916d0e69dce5992","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3aa77f5da0ecb00895411f4246d8a3e4db0343c2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6c0d13db5d0f8d465eabc14bd23d2b6a7247a43","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb6ef6185f2054a341ec70d7e2165f5381744215","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a229016ca3ac551294ec59770be9da94ec4bf63","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75ecc46828ec377dd5692c677168ef6d64fd7123","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81ebd43cc0d6d106ce7b6ccbf7b5e40ca7f5503d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31606","url":"https://www.cve.org/CVERecord?id=CVE-2026-31606","licence":"CVE Terms of Use","modified":"2026-10-30T12:24:27.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31606","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31606","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.511Z","epss":{"score":0.00162,"percentile":0.05567,"date":"2026-12-01T12:00:22.000Z"}}