drm/rockchip: analogix_dp: fix unchecked bound endpoint name length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.537.2.77.3In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: analogix_dp: fix unchecked bound endpoint name length
rockchip_dp_drm_encoder_enable() uses sprintf() to format a device tree path into a 32-byte stack buffer. Device tree paths are not limited to this size, so a sufficiently long path can overflow the buffer.
Use snprintf() with the destination size to truncate the generated name and keep the writes within bounds.
From the CVE record · Linux
The Rockchip Analogix DP driver formats a device tree path into a 32-byte stack buffer without checking its length. A sufficiently long path can overflow the buffer; the input does not specify how an attacker could supply the path or whether authentication or user interaction is required.
Engineers running Linux kernels with the Rockchip Analogix DP driver should check their versions; affected versions are not specified.