Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <efremov@linux.com>
  • Loading branch information
evdenis committed Feb 7, 2024
1 parent f221030 commit 2c61a0e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cvehound/cve/CVE-2023-51042.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/// Files: drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
/// Fix: 2e54154b9f27262efd0cb4f903cc7d5ad1fe9628
/// Detect-To: 7a0a48ddf63bc9944b9690c6fa043ea4305f7f79

virtual detect

@err@
identifier r, fence;
position p;
@@

amdgpu_cs_wait_all_fences(...)
{
...
for (...;...;...) {
...
* r = dma_fence_wait_timeout(fence, ...);
dma_fence_put(fence);
...
* if (fence->error@p)
* return fence->error;
}
...
}

@script:python depends on detect@
p << err.p;
@@
coccilib.report.print_report(p[0], 'ERROR: CVE-2023-51042')

0 comments on commit 2c61a0e

Please sign in to comment.