gpu: host1x: Fix iommu_map_sgtable() return value check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b · < 18f74762013a4b6aa6f905c4459e0f506f9c5c7b| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s gpu host1x pin_job() incorrectly checks errors from iommu_map_sgtable() and can overflow a return value into a negative integer. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.