Skip to contentSkip to conversation

CVE-2026-90427: iommu/tegra241-cmdqv: Don't fall back to a freed smmu after devm_krealloc()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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/tegra241-cmdqv: Don't fall back to a freed smmu after devm_krealloc()

__tegra241_cmdqv_probe() uses devm_krealloc() to grow @smmu into the larger tegra241_cmdqv, which frees the original @smmu once it relocates. A failure after that returned NULL, and the caller then dereferenced the freed @smmu on its fallback path.

Return an int and take @smmu by reference instead, then update *smmu to the reallocated pointer after devm_krealloc() succeeds, so the caller and its fallback path both use the live @smmu rather than the freed original.

The Linux kernel CVE team has assigned CVE-2026-90427 to this issue.

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

	Issue introduced in 6.12 with commit 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 and fixed in 7.2.6 with commit 86197679b293f0601c3331d545f99a70a7780aa9
	Issue introduced in 6.12 with commit 918eb5c856f6ce4cf93b4b38e4b5e156905c5943 and fixed in 7.3-rc1 with commit d4d05f55e9da646ec03adfa77260eb46f4163749

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-2026-90427

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/tegra241-cmdqv.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/86197679b293f0601c3331d545f99a70a7780aa9
	https://git.kernel.org/stable/c/d4d05f55e9da646ec03adfa77260eb46f4163749