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 06E26330327 for ; Wed, 24 Dec 2025 12:26:51 +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=1766579212; cv=none; b=k3ozYbFbKVtA7yCCLW9wmHHedS14e1r2Rmp+QyIoh9hMtkCPYXL9VC6y2L0iy7U7fXBcZ26ScNaQ6vrcKNIdKJMJUjk+md2M7wzzd0dhgA66Xzs+vO3W4RjZ0L8SDoaVq0qLFpnwzRRdRguGnOHwmGvMaKUH7JgbdrfSYY7M1lI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579212; c=relaxed/simple; bh=mwiW7UG9gQVJVCH/zApVj4GGOfqKtHWI21SCCm4p/sg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l+9rHwKRw0B9sQLnxSfO+6/lI7Q/lZil9LFFC9WBGmNGxGNfkXh9A50BxwrGsZjJ7k3/dPTIa28i41ugx6DkiEeYhwfUZz+0+QkFy92nZEJ/G6XmRNumuEyhObQX0BVmMcXjMXBej4hOWgttDwblB542R01RzOE/54/CdK3BmBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eBg3zjBc; 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="eBg3zjBc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B763C16AAE; Wed, 24 Dec 2025 12:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579211; bh=mwiW7UG9gQVJVCH/zApVj4GGOfqKtHWI21SCCm4p/sg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=eBg3zjBcYJqpUMXmTOKpGW0JQbI3KLiiq4qtrxdIs+aJysImFyIPu3RxuHKwrGWUs GlL+qBxbkd6Zw81aZ+XclLDK/2ht/gzBCmbzd8VALRlE0OOJ3SmJBHEXhifl3XUbtA ZJ+WE4twAh0ta1qABNcaumA+gAgY9OE6KKbjZyZg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50722: media: ipu3-imgu: Fix NULL pointer dereference in active selection access Date: Wed, 24 Dec 2025 13:26:21 +0100 Message-ID: <2025122417-CVE-2022-50722-06c7@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=2402; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OzFFwC2y1APtZTGYRhJdN5ePlpg6fQC4zuAK0ZPZsXY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet1/aJjRK35ta+bCwJYEndp5J2/6PorMs+IJc1/678 bVgF7NkRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk+maGBbPnby+++rs8njNc JuHp/57HqeZyjgwLtp5au7rmV8ejdYk2DPeftSqGLBScAAA= 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: ipu3-imgu: Fix NULL pointer dereference in active selection access What the IMGU driver did was that it first acquired the pointers to active and try V4L2 subdev state, and only then figured out which one to use. The problem with that approach and a later patch (see Fixes: tag) is that as sd_state argument to v4l2_subdev_get_try_crop() et al is NULL, there is now an attempt to dereference that. Fix this. Also rewrap lines a little. The Linux kernel CVE team has assigned CVE-2022-50722 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 5.15.76 with commit 5265cc1202a31f7097691c3483a0d60d624424a5 Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 6.0.6 with commit 740717b756c17190dc2d2ad4c6de1e63f214e0c9 Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 6.1 with commit b9eb3ab6f30bf32f7326909f17949ccb11bab514 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-50722 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/staging/media/ipu3/ipu3-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/5265cc1202a31f7097691c3483a0d60d624424a5 https://git.kernel.org/stable/c/740717b756c17190dc2d2ad4c6de1e63f214e0c9 https://git.kernel.org/stable/c/b9eb3ab6f30bf32f7326909f17949ccb11bab514