lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061833-CVE-2022-50182-c355@gregkh>
Date: Wed, 18 Jun 2025 13:04:07 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50182: media: imx-jpeg: Align upwards buffer size

From: Greg Kroah-Hartman <gregkh@...nel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

media: imx-jpeg: Align upwards buffer size

The hardware can support any image size WxH,
with arbitrary W (image width) and H (image height) dimensions.

Align upwards buffer size for both encoder and decoder.
and leave the picture resolution unchanged.

For decoder, the risk of memory out of bounds can be avoided.
For both encoder and decoder, the driver will lift the limitation of
resolution alignment.

For example, the decoder can support jpeg whose resolution is 227x149
the encoder can support nv12 1080P, won't change it to 1920x1072.

The Linux kernel CVE team has assigned CVE-2022-50182 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 5.15.61 with commit 9ae2d729de6350c53a06c57782751d84eb2c08d9
	Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 5.18.18 with commit 73d1836ed7911953182b787745cb8c5857a2661c
	Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 5.19.2 with commit 447795ffb17cd60bb544e0abfc9399e180a14a2f
	Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.0 with commit 9e7aa76cdb02923ee23a0ddd48f38bdc3512f92b

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-50182
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/nxp/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/9ae2d729de6350c53a06c57782751d84eb2c08d9
	https://git.kernel.org/stable/c/73d1836ed7911953182b787745cb8c5857a2661c
	https://git.kernel.org/stable/c/447795ffb17cd60bb544e0abfc9399e180a14a2f
	https://git.kernel.org/stable/c/9e7aa76cdb02923ee23a0ddd48f38bdc3512f92b

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ