{"id":"CVE-2026-90019","summary":"usb: gadget: fix null pointer dereference in usb_put_function_instance()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: fix null pointer dereference in usb_put_function_instance()\n\nusb_put_function_instance() attempts to dereference fd inside fi struct\nto get mod in uvc_alloc_inst() error path. However, fd is not allocated\nuntil later in try_get_usb_function_instance() after allocating fi in\nuvc_alloc_inst() and thus guranteed to be null in error path. Fix this\nby adding a null check for fi-\u003efd that returns if fd is null.","modified":"2026-09-18T03:48:34.860599157Z","published":"2026-09-16T10:33:24.173Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90019.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0fc54a00954f9f4c3e3d4ffa64a530685d99a39b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a9691fff79bcce95338435599df6d3ae433cfdc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5117f236e9e30744338b425395d55913c4500897"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e6736c049683380f5e20becde498986e9293ca4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e74ac5c596fd246e37eadfc354567179ccbe9aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a4f4ca7ff32ae24807c83e2a06d62b13378d53c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3a7fa61997db3bf6dadef4c1bd87a4fa782a817"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90019.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90019"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2"},{"fixed":"0fc54a00954f9f4c3e3d4ffa64a530685d99a39b"},{"fixed":"6e6736c049683380f5e20becde498986e9293ca4"},{"fixed":"3a9691fff79bcce95338435599df6d3ae433cfdc"},{"fixed":"7a4f4ca7ff32ae24807c83e2a06d62b13378d53c"},{"fixed":"6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0"},{"fixed":"d3a7fa61997db3bf6dadef4c1bd87a4fa782a817"},{"fixed":"5117f236e9e30744338b425395d55913c4500897"},{"fixed":"6e74ac5c596fd246e37eadfc354567179ccbe9aa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90019.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90019.json"}}],"schema_version":"1.9.0"}