Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6D7D1DF26A for ; Mon, 21 Oct 2024 20:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541443; cv=none; b=Anv7oHftRx20/7XHvpTsScsBewFkrVSWfxwWab26pI0HCoJqdD/UOzlVOWFZ0tCm5dZ1TWdWLZ/p9mo73y/7qsttOdnubCIl2RuzpsA/EgouFRedLSF01TMbAYkfcKisu2ViJK/YC0gMwYvBaNJrlVvzxax7y5s9HbmKAmRF3fI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541443; c=relaxed/simple; bh=BTJwS2+lJHQ4aa46PPQXJK1eyj/PXyp1cKjQrIWTyRw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FlYlVAwizPwT34Ity7lv7f9hkQe23MM8Q5XoSdOHdQ9YmRNL27LRZ8owC1GrD2kqbEwv5E3Kgw2bsHMIcwBGH21bIUZGfTa8jVT6CTeu62R86ITlH+p/iHbGlSeY5SBRDNn7WeoUml7BDAx9nsStornl/diIYf+T1kf1MFRXG40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P2bOUez7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="P2bOUez7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45D35C4CEC3; Mon, 21 Oct 2024 20:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541443; bh=BTJwS2+lJHQ4aa46PPQXJK1eyj/PXyp1cKjQrIWTyRw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P2bOUez7S0aL8lHuX8JAlbhErwVjn3c14ij0JuqmKWeGRYSMhfcmejpr7Xic1JMjk P1XNvCNHyIxewfaQjmEH7wFTDSg6X0zYu68owxhly51ZBWaKSm1cpIV3SdYyksSNj/ ss1ZhqZrGdlFOdumfA5mhExTXdrLS5c2+dSYMK9g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48948: usb: gadget: uvc: Prevent buffer overflow in setup handler Date: Mon, 21 Oct 2024 22:05:40 +0200 Message-ID: <2024102140-CVE-2022-48948-588a@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3179; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BTJwS2+lJHQ4aa46PPQXJK1eyj/PXyp1cKjQrIWTyRw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW0SsN3OtbF43rShvnYm7p4+YyTqewlWHJ30xMIuYw 90ZcvNZRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykRpthwcZyC+W0sm9qZ212 SWSdlTBy2neUh2Gu3Ju9Wgeur7dunR0oZl1/5o5K96t2AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: Prevent buffer overflow in setup handler Setup function uvc_function_setup permits control transfer requests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE), data stage handler for OUT transfer uses memcpy to copy req->actual bytes to uvc_event->data.data array of size 60. This may result in an overflow of 4 bytes. The Linux kernel CVE team has assigned CVE-2022-48948 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 4.9.337 with commit 4972e3528b96 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 4.14.303 with commit 06fd17ee92c8 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 4.19.270 with commit bc8380fe5768 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 5.4.229 with commit b8fb1cba934e Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 5.10.161 with commit c79538f32df1 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 5.15.85 with commit 6b41a35b41f7 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 6.0.15 with commit 7b1f773277a7 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 6.1.1 with commit d1a92bb8d697 Issue introduced in 2.6.35 with commit cdda479f15cd and fixed in 6.2 with commit 4c92670b1672 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-2022-48948 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/usb/gadget/function/f_uvc.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/4972e3528b968665b596b5434764ff8fd9446d35 https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5 https://git.kernel.org/stable/c/bc8380fe5768c564f921f7b4eaba932e330b9e4b https://git.kernel.org/stable/c/b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be https://git.kernel.org/stable/c/c79538f32df12887f110dcd6b9c825b482905f24 https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5 https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954 https://git.kernel.org/stable/c/d1a92bb8d697f170d93fe922da763d7d156b8841 https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107