drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b · < 3a45af37733446e114bf19b0209fe7d8089bdb8b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN
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.
Store the return value in the appropriate type and in case of error, return it rather than WARNing.
Patchwork: https://patchwork.freedesktop.org/patch/719685/
From the CVE record · Linux
The Linux kernel’s drm/msm driver incorrectly checks the return value of iommu_map_sgtable(), causing a warning when the mapping fails instead of returning the error. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the drm/msm driver should check whether their kernel includes the fix; affected versions are not specified.