gpu: host1x: Fix use-after-free in host1x_bo_clear_cached_mappings
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3cbf5e3c46e66d9b3b6b91099bb720c6cb1be3bc · < 266cddf7bd0f6c79b6c0633aef742a22bf70265b| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
gpu: host1x: Fix use-after-free in host1x_bo_clear_cached_mappings
__host1x_bo_unpin() drops the last reference to the mapping and frees it, so we can't dereference mapping afterwards. The cache itself outlives the mapping, so use the cache local variable instead.
From the CVE record · Linux
The Linux kernel’s host1x GPU code has a use-after-free in host1x_bo_clear_cached_mappings: it can dereference a mapping after __host1x_bo_unpin() frees it. The input does not specify how an attacker could reach this code, whether authentication or user interaction is required, or what an attacker could achieve.
Engineers running Linux kernels with the host1x GPU code should check their vendor’s advisory for affected versions.