Linux
gpu: host1x: Fix iommu_map_sgtable() return value check
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < 5f3985c2a500df3126cb12a2e0ccf26a40bc495d
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < 3ac173e46ef6fda9c9df8d47cdff4df962df9728
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < 2a68928c445138961e2c451983b473aeb3f5b999
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < 79240eee5a40014d9edfabe19f06b35ffa84e5f8
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < e024c7993d839503d6c1f0044b8fc537c30300e9
- >= ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b, < 18f74762013a4b6aa6f905c4459e0f506f9c5c7b
Fixed in 5f3985c2a500df3126cb12a2e0ccf26a40bc495d, 3ac173e46ef6fda9c9df8d47cdff4df962df9728, 2a68928c445138961e2c451983b473aeb3f5b999, 79240eee5a40014d9edfabe19f06b35ffa84e5f8, e024c7993d839503d6c1f0044b8fc537c30300e9, 18f74762013a4b6aa6f905c4459e0f506f9c5c7b
- 5.15
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 5f3985c2a500df3126cb12a2e0ccf26a40bc495d or 3ac173e46ef6fda9c9df8d47cdff4df962df9728 or 2a68928c445138961e2c451983b473aeb3f5b999 or 79240eee5a40014d9edfabe19f06b35ffa84e5f8 or e024c7993d839503d6c1f0044b8fc537c30300e9 or 18f74762013a4b6aa6f905c4459e0f506f9c5c7b or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.