media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c0efd232929c2cd87238de2cccdaf4e845be5b0c · < cac702a439050df65272c49184aef7975fe3eff2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
The buffer length check before calling uvc_parse_format() only ensured that the buffer has at least 3 bytes (buflen > 2), buf the function accesses buffer[3], requiring at least 4 bytes.
This can lead to an out-of-bounds read if the buffer has exactly 3 bytes.
Fix it by checking that the buffer has at least 4 bytes in uvc_parse_format().
From the CVE record · Linux
The Linux kernel's uvcvideo component can read one byte beyond a buffer when uvc_parse_format() receives exactly three bytes. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the uvcvideo fix; affected versions are not specified.