{"id":"CVE-2026-99469","aliases":["CVE-2026-99469"],"related":[],"kind":"vulnerability","state":"published","title":"media: gspca: use vb2_video_unregister_device() on disconnect","summary":"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->dev. 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->dev. 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.","source":"cvelist"}],"published":"2026-11-19T14:42:55.312Z","modified":"2026-11-23T08:17:50.550Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"aa3d73c8f24eca700a3278985b61f8a437f59805","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"99ce88b7439d2bb2e5da774a9c9e9c38a8b3dde5","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"a80e1fba874ca71f328094c8c5276e8be0f091cc","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"e87a2571054aad561d028fee9b85c000af022726","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"d02a2ed057372d3739ab23d778fc4e04d3330513","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"f6b21af3e32f142bf3e591dbb10044c60472f716","status":"affected"},{"type":"git","introduced":"f729ef5796d82a95758d9edc7eea5879a3a12b25","fixed":"3dbbbc3cafa2de377d9b97af4e35b8b6b5282047","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/aa3d73c8f24eca700a3278985b61f8a437f59805","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99ce88b7439d2bb2e5da774a9c9e9c38a8b3dde5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a80e1fba874ca71f328094c8c5276e8be0f091cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e87a2571054aad561d028fee9b85c000af022726","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d02a2ed057372d3739ab23d778fc4e04d3330513","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6b21af3e32f142bf3e591dbb10044c60472f716","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3dbbbc3cafa2de377d9b97af4e35b8b6b5282047","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99469","url":"https://www.cve.org/CVERecord?id=CVE-2026-99469","licence":"CVE Terms of Use","modified":"2026-11-23T08:03:13.711Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99469","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99469","licence":"Public domain","modified":"2026-11-23T08:17:50.550Z"}],"updatedAt":"2026-11-25T22:59:52.082Z","epss":{"score":0.00218,"percentile":0.13089,"date":"2026-12-01T12:00:22.000Z"}}