Skip to contentSkip to conversation

CVE-2022-49319: iommu/arm-smmu-v3: check return value after calling platform_get_resource()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

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

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

iommu/arm-smmu-v3: check return value after calling platform_get_resource()

It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value.

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

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

	Fixed in 5.10.122 with commit 54c1e0e3bbcab2abe25b2874a43050ae5df87831
	Fixed in 5.15.47 with commit fb0f1c5eb8d60b3e018ba7c87da249b52674ebe6
	Fixed in 5.17.15 with commit db728a891f9177b044aaca89b678f6b5e24d5cc3
	Fixed in 5.18.4 with commit 54cf47da0c7532d151d76e5d63f5936191698c44
	Fixed in 5.19 with commit b131fa8c1d2afd05d0b7598621114674289c2fbb

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

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/arm/arm-smmu-v3/arm-smmu-v3.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/54c1e0e3bbcab2abe25b2874a43050ae5df87831
	https://git.kernel.org/stable/c/fb0f1c5eb8d60b3e018ba7c87da249b52674ebe6
	https://git.kernel.org/stable/c/db728a891f9177b044aaca89b678f6b5e24d5cc3
	https://git.kernel.org/stable/c/54cf47da0c7532d151d76e5d63f5936191698c44
	https://git.kernel.org/stable/c/b131fa8c1d2afd05d0b7598621114674289c2fbb