drm/syncobj: Fix memory leak in drm_syncobj_find_fence()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/syncobj: Fix memory leak in drm_syncobj_find_fence()
Commit 18226ba52159 ("drm/syncobj: reject invalid flags in drm_syncobj_find_fence") forgot to take into account the fact that drm_syncobj_find() takes a reference to syncobj and returns early without dropping the reference, leading to memory leaks.
Reported by: Sam Spencer <sam.spencer@arm.com>
From the CVE record · Linux
The Linux kernel’s drm_syncobj_find_fence() can leak memory when it returns early without releasing a reference to a sync object. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Teams running the Linux kernel should check their versions; affected versions are not specified.