CVE-2022-50182
kernel: media: imx-jpeg: Align upwards buffer size
Severity
UnknownRed Hat Product Security
CVSS
Review impact separately from score.
Published · June 18, 2025
Updated · October 30, 2026
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.
Statement
This vulnerability poses minimal risk to Red Hat customers because the affected NXP i.MX JPEG hardware accelerator driver is not built or enabled in supported Red Hat Enterprise Linux kernels. Furthermore, exploitation requires local access and physical presence of specialized NXP multimedia processing hardware that is absent from typical server environments. Consequently, Red Hat products are not affected by this memory handling issue.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CWE not specified