{"id":"CVE-2026-99469","summary":"media: gspca: use vb2_video_unregister_device() on disconnect","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: gspca: use vb2_video_unregister_device() on disconnect\n\ngspca uses vb2_fop_release(), but gspca_disconnect() only unregisters\nthe video device. If the queue owner closes the device after USB\ndisconnect, vb2_fop_release() releases the queue and invokes\ngspca_stop_streaming() at that point.\n\ngspca_stream_off() calls subdriver stop callbacks and\nusb_set_interface() through gspca_dev-\u003edev. By the time the late close\nruns, the USB core can have freed the usb_device, resulting in a\nuse-after-free. This was observed as a KASAN use-after-free in sd_stopN().\n\nUse vb2_video_unregister_device() so the queue is released and streaming\nis stopped synchronously during disconnect, while the usb_device is still\nvalid. Since the helper takes the queue lock, which is usb_lock, call it\nafter dropping that lock.","modified":"2026-11-19T17:01:19.833573426Z","published":"2026-11-19T14:42:55.312Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99469.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3dbbbc3cafa2de377d9b97af4e35b8b6b5282047"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d02a2ed057372d3739ab23d778fc4e04d3330513"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6b21af3e32f142bf3e591dbb10044c60472f716"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99469.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99469"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25"},{"fixed":"fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2"},{"fixed":"d02a2ed057372d3739ab23d778fc4e04d3330513"},{"fixed":"f6b21af3e32f142bf3e591dbb10044c60472f716"},{"fixed":"3dbbbc3cafa2de377d9b97af4e35b8b6b5282047"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99469.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99469.json"}}],"schema_version":"1.9.2"}