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 9CB832EC563 for ; Tue, 30 Dec 2025 12:24:29 +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=1767097469; cv=none; b=OMkVHetepCNdd4WEg4IeGaBAloK+l3Fgl0VlBvSVYH8BJOBWpGVN5p4PEofCeJEANsZ+IL9zdE2msHpu33KkQbFctn0QddIpDbIz+nDrCyr0s3Jo0b0B0N8c4eOCpBdk2xldjf5OwfHWKi+mqciyhcqY6j8QgkZK0lSfDxpWtYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097469; c=relaxed/simple; bh=Fu1KTeH5q/6tGesjoN7JGXc9QxhvjH1DGf5w2XJYWgM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UDo2cCjDBSkntt332taD6iGQ9P/52sDaHy3/d2OftqRf4rPUWuvlwUTV5Cp46Zi4YgsqttiAj+/7ErizMLiBBirc+gseUalMMQUm2bMCX49peplmpcYoVuKRUoyNum/cK0kvGWn8ybpGWBKPUaDAGairaMSCFv+56sPjy1Iv8gM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mdkC8iR2; 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="mdkC8iR2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C3BCC4CEFB; Tue, 30 Dec 2025 12:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097469; bh=Fu1KTeH5q/6tGesjoN7JGXc9QxhvjH1DGf5w2XJYWgM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mdkC8iR2PhgQWLFkNbRCeCgS9aTQi2h7CaXG11BY8nqbePYcux9dBqMp93uYIad1y 9T4W4kxbuaH19ZwsBlu+7kNPVemnWNk2Z27etf5taRqKTaqaK9Na3qB9ecR/1zqtBM edW+FmVj/lRctHIrS6yhbCuQxka/x7PJ8CbVzKdg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50882: media: uvcvideo: Fix memory leak in uvc_gpio_parse Date: Tue, 30 Dec 2025 13:23:31 +0100 Message-ID: <2025123025-CVE-2022-50882-6f82@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2460; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A4M6AK8uSnNQuRK0TLhfI4NCYKmgJ0ysOdD+DdxjXeA=; b=kA0DAAIRMUfUDdst+ykByyZiAGlTxD2hAfvOF7Sx6/1rPFTsF6gMekjEY2gpREKOKFqKyc16b 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmlTxD0ACgkQMUfUDdst+ymT7gCgmAbV /aSqdgi3jM7NNTUFySbKz9wAn0iaA9/f6gsdyCaiGSa0cxctsgeS 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: uvcvideo: Fix memory leak in uvc_gpio_parse Previously the unit buffer was allocated before checking the IRQ for privacy GPIO. In case of error, the unit buffer was leaked. Allocate the unit buffer after the IRQ to avoid it. Addresses-Coverity-ID: 1474639 ("Resource leak") The Linux kernel CVE team has assigned CVE-2022-50882 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 2886477ff98740cc3333cf785e4de0b1ff3d7a28 and fixed in 5.15.75 with commit 6c5da92103bddd1f0c36cb69446ff7cae3043986 Issue introduced in 5.12 with commit 2886477ff98740cc3333cf785e4de0b1ff3d7a28 and fixed in 5.19.17 with commit deb8f32ae4b10a48c433f2da1b1159521ac24674 Issue introduced in 5.12 with commit 2886477ff98740cc3333cf785e4de0b1ff3d7a28 and fixed in 6.0.3 with commit 4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16e Issue introduced in 5.12 with commit 2886477ff98740cc3333cf785e4de0b1ff3d7a28 and fixed in 6.1 with commit f0f078457f18f10696888f8d0e6aba9deb9cde92 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-50882 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/uvc/uvc_driver.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/6c5da92103bddd1f0c36cb69446ff7cae3043986 https://git.kernel.org/stable/c/deb8f32ae4b10a48c433f2da1b1159521ac24674 https://git.kernel.org/stable/c/4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16e https://git.kernel.org/stable/c/f0f078457f18f10696888f8d0e6aba9deb9cde92