gpu: host1x: Fix race in syncpt alloc/free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f5ba33fb9690566c382624637125827b5512e766 · < 79197c6007f2afbfd7bcf5b9b80ccabf8483d774| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gpu: host1x: Fix race in syncpt alloc/free
Fix race condition between host1x_syncpt_alloc() and host1x_syncpt_put() by using kref_put_mutex() instead of kref_put() + manual mutex locking.
This ensures no thread can acquire the syncpt_mutex after the refcount drops to zero but before syncpt_release acquires it. This prevents races where syncpoints could be allocated while still being cleaned up from a previous release.
Remove explicit mutex locking in syncpt_release as kref_put_mutex() handles this atomically.
From the CVE record · Linux
A race between syncpoint allocation and release in the Linux kernel's host1x GPU component can allow a syncpoint to be allocated while a previous release is still cleaning it up. The input does not specify an attacker action, exploitation conditions, or further impact.
Teams running the Linux kernel should check whether their version contains the affected host1x code; affected versions are not specified.