accel/ethosu: fix job completion fence cleanup
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: accel/ethosu: fix job completion fence cleanup ethosu_ioctl_submit_job() allocates done_fence before validating buffer handles. Errors after allocation call ethosu_job_err_cleanup(), which frees the job but leaks the uninitialized fence. A scheduler dependency error also lets ethosu_job_run() return before dma_fence_init(). Normal cleanup then passes a zeroed refcount to dma_fence_put(). Release done_fence in the common cleanup path and use dma_fence_was_initialized() to distinguish initialized fences from raw allocations. [robh: also fix goto]
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b · fixed in b3e0f79af1f27339d8d2527c02cc3e8397c2f69f; From 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b · fixed in 2d2a3adc91950f9a18829dadc7317fb5180a15c5
- Linux Linux
6.19
- KernelLinux
From 6.19.0 · fixed in 7.2.5