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 55BAE28BA95 for ; Tue, 30 Dec 2025 12:10:03 +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=1767096605; cv=none; b=K+3mXWaVyC4NLjf66ex1vtDAn3A3baP9t24SHyfS+OiZ/5NocHMZm9TrJlJO97D6oLjkmyELvkOEGile6nllBxHcxGOQXZ89SOJaJBmZdrhNdL/6PcbHmHaCKfx6MrcWNrZW5VwpuBMVcflZk+XsubFeE6rESoeEvA2mFQMa4ag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096605; c=relaxed/simple; bh=fVzqruV4p9jyJSUA9fkKP1TyRKlLPRo8S5YxQc1dL9g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GnblHY9HdVNWYlo5dO4qa085FFhwyPi8DklIA+/m4txdWzLgoKesDxcurGrgfB8ilklJqro2xFGHv84E/8rWJcWsbAwJvBcTzHtKbdSEE7qp/fVTrXBTRs4FOGaB64wmiJ0btz71VtcOi9WrS7RrmuIvvLCPfUxfKkq95TmE5fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZpYwWz9K; 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="ZpYwWz9K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D7F3C4CEFB; Tue, 30 Dec 2025 12:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096603; bh=fVzqruV4p9jyJSUA9fkKP1TyRKlLPRo8S5YxQc1dL9g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZpYwWz9Klm6taUTiFl66qOALWhaUZLr3tHkrsNjSqO2MLumtr8WUdQdeRl+wevFL1 ZQr6AwqK2cy9c44A8bBteuiq8QAwhPhIFkPHpOLg5G+EQNjnzZlyDigzCpTJJN+wK6 qiyP/cRhxvFKr7i7Wr7xdru8RDgdnLfMwPK8P4Gk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50826: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Date: Tue, 30 Dec 2025 13:09:30 +0100 Message-ID: <2025123018-CVE-2022-50826-6faf@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=3095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=f3sFhNLdyHBGcDdlgLiXqCGIE84pbIY5vUb8u81xyUs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB97teMvNxHA5VUXh7x9hj79/tynPLJ8Tq6f18NEpZ wX/62sUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/ywZZrOt0hAxjQh58fez WNrh+3zLC7c4ZzHMj7px+UNAA6ef4LlNgd/2M7Zfdt1/EAA= 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: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Calling v4l2_subdev_get_try_crop() and v4l2_subdev_get_try_compose() with a subdev state of NULL leads to a NULL pointer dereference. This can currently happen in imgu_subdev_set_selection() when the state passed in is NULL, as this method first gets pointers to both the "try" and "active" states and only then decides which to use. The same issue has been addressed for imgu_subdev_get_selection() with commit 30d03a0de650 ("ipu3-imgu: Fix NULL pointer dereference in active selection access"). However the issue still persists in imgu_subdev_set_selection(). Therefore, apply a similar fix as done in the aforementioned commit to imgu_subdev_set_selection(). To keep things a bit cleaner, introduce helper functions for "crop" and "compose" access and use them in both imgu_subdev_set_selection() and imgu_subdev_get_selection(). The Linux kernel CVE team has assigned CVE-2022-50826 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 5.15.87 with commit fa6bbb4894b9b947063c6ff90018a954c5f9f4b3 Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 6.0.18 with commit 611d617bdb6c5d636a9861ec1c98e813fc8a5556 Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 6.1.4 with commit 5038ee677606106c91564f9c4557d808d14bad70 Issue introduced in 5.14 with commit 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 and fixed in 6.2 with commit dc608edf7d45ba0c2ad14c06eccd66474fec7847 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-50826 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/fa6bbb4894b9b947063c6ff90018a954c5f9f4b3 https://git.kernel.org/stable/c/611d617bdb6c5d636a9861ec1c98e813fc8a5556 https://git.kernel.org/stable/c/5038ee677606106c91564f9c4557d808d14bad70 https://git.kernel.org/stable/c/dc608edf7d45ba0c2ad14c06eccd66474fec7847