media: iris: Fix use-after-free in iris_release_internal_buffers()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: iris: Fix use-after-free in iris_release_internal_buffers()
The recent change in commit 1dabf00ee206 ("media: iris: gen1: Destroy internal buffers after FW releases") introduced a regression where session_release_buf() may free the buffer. The caller, iris_release_internal_buffers(), continued to access `buffer` after the call, leading to a potential use-after-free.
Fix this by setting BUF_ATTR_PENDING_RELEASE before calling session_release_buf(), and reverting the flag if the call fails. This ensures no dereference occurs after potential freeing.
From the CVE record · Linux
A regression in the Linux kernel's media iris driver can cause a use-after-free when iris_release_internal_buffers() accesses a buffer after session_release_buf() frees it. The input does not specify how an attacker could trigger the issue, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that include the affected media iris code should check their versions; affected version numbers are not provided.