media: rzv2h-ivc: Fix concurrent buffer list access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: rzv2h-ivc: Fix concurrent buffer list access
The list of buffers (`rzv2h_ivc::buffers.queue`) is protected by a spinlock (`rzv2h_ivc::buffers.lock`). However, in `rzv2h_ivc_transfer_buffer()`, which runs in a separate workqueue, the `list_del()` call is executed without holding the spinlock, which makes it possible for the list to be concurrently modified
Fix that by removing a buffer from the list in the lock protected section.
[assign ivc->buffers.curr in critical section as reported by Barnabas]
From the CVE record · Linux
In the Linux kernel's rzv2h-ivc media driver, a workqueue can remove a buffer from a shared list without holding its spinlock, allowing concurrent modification of the list. The input does not establish how an attacker could trigger the race or specify network access, authentication requirements, or user interaction.
Engineers running Linux kernels with the rzv2h-ivc media driver should check their kernel version; affected versions are not specified.