{"id":"CVE-2026-31755","aliases":["CVE-2026-31755"],"related":[],"kind":"vulnerability","state":"published","title":"usb: cdns3: gadget: fix NULL pointer dereference in ep_queue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: cdns3: gadget: fix NULL pointer dereference in ep_queue\n\nWhen the gadget endpoint is disabled or not yet configured, the ep->desc\npointer can be NULL. This leads to a NULL pointer dereference when\n__cdns3_gadget_ep_queue() is called, causing a kernel crash.\n\nAdd a check to return -ESHUTDOWN if ep->desc is NULL, which is the\nstandard return code for unconfigured endpoints.\n\nThis prevents potential crashes when ep_queue is called on endpoints\nthat are not ready.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: cdns3: gadget: fix NULL pointer dereference in ep_queue\n\nWhen the gadget endpoint is disabled or not yet configured, the ep->desc\npointer can be NULL. This leads to a NULL pointer dereference when\n__cdns3_gadget_ep_queue() is called, causing a kernel crash.\n\nAdd a check to return -ESHUTDOWN if ep->desc is NULL, which is the\nstandard return code for unconfigured endpoints.\n\nThis prevents potential crashes when ep_queue is called on endpoints\nthat are not ready.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nusb: cdns3: gadget: corrección de desreferencia de puntero NULL en ep_queue\n\nCuando el endpoint del gadget está deshabilitado o aún no configurado, el puntero ep  ->  desc puede ser NULL. Esto provoca una desreferencia de puntero NULL cuando se llama a __cdns3_gadget_ep_queue(), causando un fallo del kernel.\n\nSe añade una comprobación para devolver -ESHUTDOWN si ep  ->  desc es NULL, que es el código de retorno estándar para endpoints no configurados.\n\nEsto evita posibles fallos cuando se llama a ep_queue en endpoints que no están listos.","source":"nvd"}],"published":"2026-05-01T14:14:46.288Z","modified":"2026-11-11T21:10:00.200Z","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":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"3cf0580a09d417eab41ce914a11f9cde3a121871","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"3d1433fe34b224b90259e207e5389e95b504ef04","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"d61446dfc9d387775bb1b95b081953201b9222af","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"390536cc6af4ca5566bc3bf1f8b704700380cd2c","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f","status":"affected"},{"type":"git","introduced":"7733f6c32e36ff9d7adadf40001039bf219b1cbe","fixed":"7f6f127b9bc34bed35f56faf7ecb1561d6b39000","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.260","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"5.4","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3cf0580a09d417eab41ce914a11f9cde3a121871","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d1433fe34b224b90259e207e5389e95b504ef04","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d61446dfc9d387775bb1b95b081953201b9222af","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/390536cc6af4ca5566bc3bf1f8b704700380cd2c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f6f127b9bc34bed35f56faf7ecb1561d6b39000","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31755","url":"https://www.cve.org/CVERecord?id=CVE-2026-31755","licence":"CVE Terms of Use","modified":"2026-07-04T11:50:33.684Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31755","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31755","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.371Z","epss":{"score":0.00127,"percentile":0.0259,"date":"2026-12-01T12:00:22.000Z"}}