media: v4l2-mem2mem: add lock to protect parameter num_rdy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 908a0d7c588ef87e5cf0a26805e6002a78ac9d13 · < c71aa5f1cf961264690f2560503ea396b6e3c680| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-mem2mem: add lock to protect parameter num_rdy
Getting below error when using KCSAN to check the driver. Adding lock to protect parameter num_rdy when getting the value with function: v4l2_m2m_num_src_bufs_ready/v4l2_m2m_num_dst_bufs_ready.
kworker/u16:3: [name:report&]BUG: KCSAN: data-race in v4l2_m2m_buf_queue kworker/u16:3: [name:report&]
kworker/u16:3: [name:report&]read-write to 0xffffff8105f35b94 of 1 bytes by task 20865 on cpu 7: kworker/u16:3: v4l2_m2m_buf_queue+0xd8/0x10c
From the CVE record · Linux
A data race affects access to the num_rdy parameter in the Linux kernel’s v4l2-mem2mem component. The input does not establish what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their version contains this issue; affected versions are not specified.