Skip to contentSkip to conversation

CVE-2022-50236: iommu/mediatek: Fix crash on isr after kexec()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 15, 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:

iommu/mediatek: Fix crash on isr after kexec()

If the system is rebooted via isr(), the IRQ handler might be triggered before the domain is initialized. Resulting on an invalid memory access error.

Fix:

[    0.500930] Unable to handle kernel read from unreadable memory at virtual address 0000000000000070
[    0.501166] Call trace:
[    0.501174]  report_iommu_fault+0x28/0xfc
[    0.501180]  mtk_iommu_isr+0x10c/0x1c0

[ joro: Fixed spelling in commit message ]

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

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

	Fixed in 6.0.17 with commit f13acee780cedb3e06a6dadf64d9104cccd2b9fc
	Fixed in 6.1.3 with commit 85cc8a187f2de7a91e2cea522e9406fa12999269
	Fixed in 6.2 with commit 00ef8885a945c37551547d8ac8361cacd20c4e42

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

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/iommu/mtk_iommu.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/f13acee780cedb3e06a6dadf64d9104cccd2b9fc
	https://git.kernel.org/stable/c/85cc8a187f2de7a91e2cea522e9406fa12999269
	https://git.kernel.org/stable/c/00ef8885a945c37551547d8ac8361cacd20c4e42