drm/gud: NUL-terminate TV mode names read from the device
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d0f3312f7800eb0e00d1264f66104c788f43dd69, Kernel 08c8ec28547987e55a90c662f8795e05c2925498, Kernel 500cb24cd61bad8a2747ddfc49b7034899c82d94 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: drm/gud: NUL-terminate TV mode names read from the device gud_connector_add_tv_mode() reads a buffer of fixed-size mode names from the USB device and passes pointers into it to drm_mode_create_tv_properties_legacy(), which calls strlen() on each one. Nothing guarantees the device NUL-terminates a name, so strlen() can run past the end of a slot and, for the last mode, past the end of the allocation. Terminate each name at the end of its slot before use.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <d0f3312f7800eb0e00d1264f66104c788f43dd69, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <08c8ec28547987e55a90c662f8795e05c2925498, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <500cb24cd61bad8a2747ddfc49b7034899c82d94, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <6ea61f1d4cbaa0db937e31bffc041fb8afeacf52, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <89210cb5ff8fdbe055c97ac688be2268f6c815ae, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <9096edfd6f2edbc79612b482547e0972edbcfe4b, >=40e1a70b4aedf2859a1829991b48ef0ebe650bf2 <b86438a5c6b0250ccb07dd380184d1e70e0dea6c, =5.13 | d0f3312f7800eb0e00d1264f66104c788f43dd69, 08c8ec28547987e55a90c662f8795e05c2925498, 500cb24cd61bad8a2747ddfc49b7034899c82d94, 6ea61f1d4cbaa0db937e31bffc041fb8afeacf52, 89210cb5ff8fdbe055c97ac688be2268f6c815ae, 9096edfd6f2edbc79612b482547e0972edbcfe4b, b86438a5c6b0250ccb07dd380184d1e70e0dea6c |
| 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