drm/gud: validate TV mode names before creating enum property
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eab46d9629807db1b5647d17227e16110a18227f, Kernel 06fcaf21c18ac88f57fee3803554f48c6026b95f, Kernel 082e378886547b5b1c4075ed307f7c68547868dc and 10 more.
In the Linux kernel, the following vulnerability has been resolved: drm/gud: validate TV mode names before creating enum property The GUD protocol returns TV mode names as fixed-size GUD_CONNECTOR_TV_MODE_NAME_LEN entries and requires each name to be NUL-terminated. gud_connector_add_tv_mode() currently passes each fixed-size entry directly to drm_mode_create_tv_properties_legacy(), which eventually reaches drm_property_add_enum() and strlen(). If a device returns an entry without a terminating NUL byte, strlen() reads past the end of the slot and can run beyond the allocated buffer, triggering an out-of-bounds read. Validate that each returned TV mode name contains a NUL terminator within its fixed-size slot before passing it to the DRM property code. If a malformed entry is found, reject the device response with -EIO. This fixes the out-of-bounds read without changing the handling of valid devices, and avoids silently truncating malformed protocol data.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <eab46d9629807db1b5647d17227e16110a18227f, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <06fcaf21c18ac88f57fee3803554f48c6026b95f, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <082e378886547b5b1c4075ed307f7c68547868dc, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <676f1fb3632bbc9ce83be7938e93fe6bfc9510fd, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <70cffc31a380b3eae45027101647aa94c242aa0e, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <72a95df6bbc7d20c7af1e39d86b3e910cccd01ad, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <da1ea35fea67ad841f4ada28dd61b41be65e5437, =5.13 | eab46d9629807db1b5647d17227e16110a18227f, 06fcaf21c18ac88f57fee3803554f48c6026b95f, 082e378886547b5b1c4075ed307f7c68547868dc, 676f1fb3632bbc9ce83be7938e93fe6bfc9510fd, 70cffc31a380b3eae45027101647aa94c242aa0e, 72a95df6bbc7d20c7af1e39d86b3e910cccd01ad, da1ea35fea67ad841f4ada28dd61b41be65e5437 |
| linux-kernel: Kernel | >=5.16.0 <6.1.188, >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=5.13.0 <5.15.221 | 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.15.221 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket