drm/msm: Fix a fence leak in submit error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 · < 5d319f75ccf7f0927425a7545aa1a22b3eedc189| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/msm: Fix a fence leak in submit error path
In error paths, we could unref the submit without calling drm_sched_entity_push_job(), so msm_job_free() will never get called. Since drm_sched_job_cleanup() will NULL out the s_fence, we can use that to detect this case.
Patchwork: https://patchwork.freedesktop.org/patch/653584/
From the CVE record · Linux
The Linux kernel's drm/msm submit error path can leak a fence when a submit is released without its job being pushed to the scheduler. The input does not specify how an attacker could trigger this path or whether authentication, local access, or user interaction is required.
Teams running Linux kernels with the affected drm/msm code should check their kernel versions; affected versions are not specified.