Skip to contentSkip to conversation

CVE-2026-74380: gpu: host1x: Fix iommu_map_sgtable() return value check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

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

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

gpu: host1x: Fix iommu_map_sgtable() return value check

Commit "iommu: return full error code from iommu_map_sg[_atomic]()" changed iommu_map_sgtable() to return an ssize_t and negative values in error cases, rather than a size_t and a zero.

pin_job() also was incorrectly assigning to 'int', which could cause overflows into negative values.

Update pin_job() to correctly check for errors from iommu_map_sgtable.

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

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

	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 6.1.178 with commit 5f3985c2a500df3126cb12a2e0ccf26a40bc495d
	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 6.6.145 with commit 3ac173e46ef6fda9c9df8d47cdff4df962df9728
	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 6.12.97 with commit 2a68928c445138961e2c451983b473aeb3f5b999
	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 6.18.40 with commit 79240eee5a40014d9edfabe19f06b35ffa84e5f8
	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 7.1.5 with commit e024c7993d839503d6c1f0044b8fc537c30300e9
	Issue introduced in 5.15 with commit ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b and fixed in 7.2-rc1 with commit 18f74762013a4b6aa6f905c4459e0f506f9c5c7b

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

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/gpu/host1x/job.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/5f3985c2a500df3126cb12a2e0ccf26a40bc495d
	https://git.kernel.org/stable/c/3ac173e46ef6fda9c9df8d47cdff4df962df9728
	https://git.kernel.org/stable/c/2a68928c445138961e2c451983b473aeb3f5b999
	https://git.kernel.org/stable/c/79240eee5a40014d9edfabe19f06b35ffa84e5f8
	https://git.kernel.org/stable/c/e024c7993d839503d6c1f0044b8fc537c30300e9
	https://git.kernel.org/stable/c/18f74762013a4b6aa6f905c4459e0f506f9c5c7b