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 D4F0E14EC73 for ; Wed, 26 Feb 2025 01:59:28 +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=1740535168; cv=none; b=XnW7LVilhN0dr4Dxf7dzS2J0eNHIVc0AQk1SbnYdJzgM+fZafvQCzJ0uk/8ZC4QrD2iJbH2dekWqVdJA6jiyyMnIFzsPgqlvRuwgqxzyWSsXZq9pIZZE7AJaEg20yuP0trT/GwfAyU1+Isp0iYGXAJeNz65zvmLqDyrIzWhiHvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535168; c=relaxed/simple; bh=u6VPEphOBCMk5rjRlEsVB0USWdhBagYVrPkyN7TyFX8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HEAmvClVpnvdaosaU9VoeUbyPPo7p4fWE7OV9rjsH5kCtMF5HyHQuvCnpaut0HEHUPzR8mIOSvgWeBKvpE/rWBpkRgr3t2mlhaCDuBoCrsIoC/hWJ1pGe7w2/2wTn9o6hNfmAuuREl30OWTEy1Wve8LYNaKZuWRRfnclZkpX6r0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yPiq4Iln; 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="yPiq4Iln" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3DE6C4CEDD; Wed, 26 Feb 2025 01:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535168; bh=u6VPEphOBCMk5rjRlEsVB0USWdhBagYVrPkyN7TyFX8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yPiq4IlnpzJMRKuTFpta/bo1brlOObYGfJHa+WHDIIXUePlMKIXvIetlyqYYBbJSq pJvv38JjS/91xc5kr2ujVKuu7+U2ch7No2f8ZnBNlhwSZ0sQ4rcKx30r9h67U02BEA ulmwBr8q7J+n/ZG5KiserQyzRpR+H/waOczS7x/Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49165: media: imx-jpeg: Prevent decoding NV12M jpegs into single-planar buffers Date: Wed, 26 Feb 2025 02:56:10 +0100 Message-ID: <2025022611-CVE-2022-49165-6b4c@gregkh> X-Mailer: git-send-email 2.48.1 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=2179; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u6VPEphOBCMk5rjRlEsVB0USWdhBagYVrPkyN7TyFX8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Spwtgyfu+FQ/5f5PuTVXOZx+fPXumM/3u+aGcfgDy X/cqn8YO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAionEMc+X/ibzmeMMi8dZ7 oYhJxTbHuaURyQzzTFveTFvM2mWtoynJ8vHRL7GiV98yAA== 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: media: imx-jpeg: Prevent decoding NV12M jpegs into single-planar buffers If the application queues an NV12M jpeg as output buffer, but then queues a single planar capture buffer, the kernel will crash with "Unable to handle kernel NULL pointer dereference" in mxc_jpeg_addrs, prevent this by finishing the job with error. The Linux kernel CVE team has assigned CVE-2022-49165 to this issue. Affected and fixed versions =========================== Fixed in 5.15.33 with commit eff76b180751e5e55c872d17755680c3b83ba9ab Fixed in 5.16.19 with commit 8d075ede7d24f19dc817c5bd517a53f0524f9031 Fixed in 5.17.2 with commit 4eb591c47c82a6a6ad293ed108c3cb77115fbc25 Fixed in 5.18 with commit 417591a766b3c040c346044541ff949c0b2bb7b2 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-49165 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/platform/imx-jpeg/mxc-jpeg.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/eff76b180751e5e55c872d17755680c3b83ba9ab https://git.kernel.org/stable/c/8d075ede7d24f19dc817c5bd517a53f0524f9031 https://git.kernel.org/stable/c/4eb591c47c82a6a6ad293ed108c3cb77115fbc25 https://git.kernel.org/stable/c/417591a766b3c040c346044541ff949c0b2bb7b2