Skip to contentSkip to conversation

CVE-2022-50741: media: imx-jpeg: Disable useless interrupt to avoid kernel panic

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

media: imx-jpeg: Disable useless interrupt to avoid kernel panic

There is a hardware bug that the interrupt STMBUF_HALF may be triggered after or when disable interrupt.
It may led to unexpected kernel panic.
And interrupt STMBUF_HALF and STMBUF_RTND have no other effect. So disable them and the unused interrupts.

meanwhile clear the interrupt status when disable interrupt.

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

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

	Fixed in 5.15.86 with commit ad31bc146f0e4521805695f4f99d8a3c3b2761f6
	Fixed in 6.0.16 with commit f1257fc8fc988bdc4b26277f58bbf7b694b531f0
	Fixed in 6.1.2 with commit 35591c2469953d59abdb16cb7beac834052cdb4f
	Fixed in 6.2 with commit c3720e65c9013a7b2a5dbb63e6bf6d74a35dd894

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-50741

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-hw.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/ad31bc146f0e4521805695f4f99d8a3c3b2761f6
	https://git.kernel.org/stable/c/f1257fc8fc988bdc4b26277f58bbf7b694b531f0
	https://git.kernel.org/stable/c/35591c2469953d59abdb16cb7beac834052cdb4f
	https://git.kernel.org/stable/c/c3720e65c9013a7b2a5dbb63e6bf6d74a35dd894