media: venus: fix use after free in vdec_close
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af2c3834c8ca7cc65d15592ac671933df8848115 · < 66fa52edd32cdbb675f0803b3c4da10ea19b6635| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: venus: fix use after free in vdec_close
There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst.
Fix it by cancelling the work in vdec_close.
From the CVE record · Linux
The Linux kernel’s Venus decoder has a possible use-after-free in vdec_close. A local userspace process closing the decoder device during normal decoding can trigger a read-after-free while firmware-scheduled buffer release work is pending. Authentication requirements beyond access to the decoder device are not specified.
Engineers running Linux kernels with the Venus decoder should check whether their kernel includes the fix; affected versions are not specified.