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 E4AF61F8EEC for ; Mon, 21 Oct 2024 19:41:12 +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=1729539673; cv=none; b=FL/4u+E8zAODI+Tz8ST5TdAImc76hhPrSKKmhsrgNypSdmoL/CWl6L50/scdG8kdxnaHerq8wSZ87NJWwDiwkxM/BUvpYAnp35VY83OcT/AKW82Ax24W5jFxgrXcL/I/4eFl9GQCcG1QSEORgJcieicFCaOq0gZcqF4VTn/ywdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539673; c=relaxed/simple; bh=KZ4B4fGZbwtEpNwEVZs+2syxI6iL/7F9h3vxiCKvdEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V/o92/Osk3twqd9jSNip5P5wpjeCb21B58jr5UVjprpLGoFb15qEGk2ynuDsA5MDhq9Q+aEimPdbD63eh3Ri58iOJaHZL+Ii1NO+4arSacNVidxXwWK2sIS6rQDOaDbmWqCmmK62M+Uzvol5IJPn/XmaGm5NvQOGJn9TGDYLEPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JHA57faY; 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="JHA57faY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D1CAC4CEC3; Mon, 21 Oct 2024 19:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539672; bh=KZ4B4fGZbwtEpNwEVZs+2syxI6iL/7F9h3vxiCKvdEY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JHA57faYx7KYJiE6milDEDKZEr7/XVJbaIneVxNfsJ09tSjHGdSMoZR52zOWA1Lnq TGE84sR8tTG91KcBCwHQvbv6eFX2bEdHbciV9P4apLsPzcK+lJIsGyMPW24XjX0rM5 GtbThKxhKVT19jHoBQ+yURebdyalVLbgoKtj86j4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50056: usb: gadget: uvc: Fix ERR_PTR dereference in uvc_v4l2.c Date: Mon, 21 Oct 2024 21:39:57 +0200 Message-ID: <2024102135-CVE-2024-50056-78bf@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=2023; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KZ4B4fGZbwtEpNwEVZs+2syxI6iL/7F9h3vxiCKvdEY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlia7/z7p15aaOM7PP43LV+hw27A24m/WpzPnPF8/VTr uw5ph+TO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiFo0M82wkrdz2n1SdKH/n 0K/W3SaVYuwJ3xgWXLqjIKtgea+i4X/Bm7XGPTnTK7gFAQ== 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: Fix ERR_PTR dereference in uvc_v4l2.c Fix potential dereferencing of ERR_PTR() in find_format_by_pix() and uvc_v4l2_enum_format(). Fix the following smatch errors: drivers/usb/gadget/function/uvc_v4l2.c:124 find_format_by_pix() error: 'fmtdesc' dereferencing possible ERR_PTR() drivers/usb/gadget/function/uvc_v4l2.c:392 uvc_v4l2_enum_format() error: 'fmtdesc' dereferencing possible ERR_PTR() Also, fix similar issue in uvc_v4l2_try_format() for potential dereferencing of ERR_PTR(). The Linux kernel CVE team has assigned CVE-2024-50056 to this issue. Affected and fixed versions =========================== Fixed in 6.11.4 with commit cedeb36c3ff4 Fixed in 6.12-rc1 with commit a7bb96b18864 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-2024-50056 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/uvc_v4l2.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/cedeb36c3ff4acd0f3d09918dfd8ed1df05efdd6 https://git.kernel.org/stable/c/a7bb96b18864225a694e3887ac2733159489e4b0