Linux
media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex
In the Linux kernel, the following vulnerability has been resolved: media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex MEDIA_REQUEST_IOC_REINIT can run concurrently with VIDIOC_REQBUFS(0) queue teardown paths. This can race request object cleanup against vb2 queue cancellation and lead to use-after-free reports. We already serialize request queueing against STREAMON/OFF with req_queue_mutex. Extend that serialization to REQBUFS, and also take the same mutex in media_request_ioctl_reinit() so REINIT is in the same exclusion domain. This keeps request cleanup and queue cancellation from running in parallel for request-capable devices.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < 331242998a7ade5c2f65e14988901614629f3db5
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < 2c685e99efb3b3bd2b78699fba6b1cf321975db0
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < 585fd9a2063dacce8b2820f675ef23d5d17434c5
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < 1a0d9083c24fbd5d22f7100f09d11e4d696a5f01
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < d8549a453d5bdc0a71de66ad47a1106703406a56
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < 72b9e81e0203f03c40f3adb457f55bd4c8eb112d
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < cf2023e84f0888f96f4b65dc0804e7f3651969c1
- >= 6093d3002eabd7c2913d97f1d1f4ce34b072acf9, < bef4f4a88b73e4cc550d25f665b8a9952af22773
Fixed in 331242998a7ade5c2f65e14988901614629f3db5, 2c685e99efb3b3bd2b78699fba6b1cf321975db0, 585fd9a2063dacce8b2820f675ef23d5d17434c5, 1a0d9083c24fbd5d22f7100f09d11e4d696a5f01, d8549a453d5bdc0a71de66ad47a1106703406a56, 72b9e81e0203f03c40f3adb457f55bd4c8eb112d, cf2023e84f0888f96f4b65dc0804e7f3651969c1, bef4f4a88b73e4cc550d25f665b8a9952af22773
- 4.20
Fixed in 0, 5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0
Mitigation
Upgrade Linux to 331242998a7ade5c2f65e14988901614629f3db5 or 2c685e99efb3b3bd2b78699fba6b1cf321975db0 or 585fd9a2063dacce8b2820f675ef23d5d17434c5 or 1a0d9083c24fbd5d22f7100f09d11e4d696a5f01 or d8549a453d5bdc0a71de66ad47a1106703406a56 or 72b9e81e0203f03c40f3adb457f55bd4c8eb112d or cf2023e84f0888f96f4b65dc0804e7f3651969c1 or bef4f4a88b73e4cc550d25f665b8a9952af22773 or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.168 or 6.6.131 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.