Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100340; b=w0Ysh1QpvHxfH1qGJBf7ShJ05CwXFj4DKHuoS0uz4btzkH+bKovBMhoUSfCiyNGwMlmV m5q6tfmFzezEE0YiLX1gqKMQOodXim1P1BJLOzvQrYHpt8rNdXNfDqscuXUHsOL4GWEZn lDZaN0d00NbXu+sZijIqhihlcC5PjrVB6hSKTFeYqsdKrhND//RORmYJoUxfjP3awu+SG EgEpRlWvDxyWC3ncdF3AGp+lWQv5xPr9r63O43MWBOdZ2s4E8iMrpbviEWDfilAo9kHV7 i86qtw+tia/4z7cUv44G0LA4O2PQI6ARRWE732CZ/UmQww0jzqSG0hzN1WsiwJLLQTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100340; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=/4JxRA7PMaarW99iuzFbhWdc9UqgbKK9/IT9G7a8PL0=; b=qcRhJh4SIxwhWkJED4HqMlqtVX74QLT4geGxdCCIj0T3n2ecdGvC6WuR9wN10YJo9YQq 0OxKS7HS2lzLIfnO1hp1isOGSmkvIiPDGyVzErR9MqeIYewI1378PmJqLiL2l6vcIys6k Y4H8RTNdigYSD9FLpkVxz34V7It01/k+svRKVsLzfPJZvbk55WtmhmroSOoE8+WUS9xfF sr/w3ofeziBSd3+T0jlH3mROujaj4eskuPPHARx//L/WTozm3ErphhskLWTdT6VJNNavb xPqXDtNSDO3ZNdp66gfDeeTIfP0uvXw9NULTXtIBXWRNQH2lA9Ior+CSMHbgwwU2xxg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=d0MfnCMS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9373606A320 for ; Thu, 19 Nov 2026 14:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=d0MfnCMS Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC0BE1F000C5; Thu, 19 Nov 2026 14:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100339; bh=/4JxRA7PMaarW99iuzFbhWdc9UqgbKK9/IT9G7a8PL0=; h=From:To:Cc:Subject:Date:Reply-To; b=d0MfnCMS4OS7wXyWYN95Xkf1F7lbH445ZMZLhxEV5bfvR6sbgllpJ4XxHkHguRAs0 dB+3PfnerTBGXGyI8GOXStLHnEnc9DKkMPbBYw/xONcQWzCAlNHsw2ZrcxlQ//ey4H Er+MFRgHyVT/jy+nDi/N+Fcrw5SITzVqmKaGrmCI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99469: media: gspca: use vb2_video_unregister_device() on disconnect Date: Thu, 19 Nov 2026 15:26:07 +0100 Message-ID: <2026111910-CVE-2026-99469-f816@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ii6W2MA1jEaxMNDKY4GAMZFVCLWRGQtOa+MsGBsUXTE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2boiXDLPBj66GCDwkUOO9e0CeW8/pkVrxDXmRM1J3 sdyfDpXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEsJ5hnqXnjruCtTy7Dtw5 xXBo2d17wefc/Bjm16y65/a5p1DJRrmiTWqvh2p5tIcJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: gspca: use vb2_video_unregister_device() on disconnect gspca uses vb2_fop_release(), but gspca_disconnect() only unregisters the video device. If the queue owner closes the device after USB disconnect, vb2_fop_release() releases the queue and invokes gspca_stop_streaming() at that point. gspca_stream_off() calls subdriver stop callbacks and usb_set_interface() through gspca_dev->dev. By the time the late close runs, the USB core can have freed the usb_device, resulting in a use-after-free. This was observed as a KASAN use-after-free in sd_stopN(). Use vb2_video_unregister_device() so the queue is released and streaming is stopped synchronously during disconnect, while the usb_device is still valid. Since the helper takes the queue lock, which is usb_lock, call it after dropping that lock. The Linux kernel CVE team has assigned CVE-2026-99469 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit f729ef5796d82a95758d9edc7eea5879a3a12b25 and fixed in 6.12.117 with commit fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2 Issue introduced in 5.10 with commit f729ef5796d82a95758d9edc7eea5879a3a12b25 and fixed in 6.18.61 with commit d02a2ed057372d3739ab23d778fc4e04d3330513 Issue introduced in 5.10 with commit f729ef5796d82a95758d9edc7eea5879a3a12b25 and fixed in 7.3.2 with commit f6b21af3e32f142bf3e591dbb10044c60472f716 Issue introduced in 5.10 with commit f729ef5796d82a95758d9edc7eea5879a3a12b25 and fixed in 7.4-rc1 with commit 3dbbbc3cafa2de377d9b97af4e35b8b6b5282047 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99469 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/usb/gspca/gspca.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fda9ca3cbee24f6e48c04946a8d2f66565d2d4b2 https://git.kernel.org/stable/c/d02a2ed057372d3739ab23d778fc4e04d3330513 https://git.kernel.org/stable/c/f6b21af3e32f142bf3e591dbb10044c60472f716 https://git.kernel.org/stable/c/3dbbbc3cafa2de377d9b97af4e35b8b6b5282047