CVE-2026-97621: drm/rockchip: analogix_dp: fix unchecked bound endpoint name length

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/rockchip: analogixdp: fix unchecked bound endpoint name length

rockchipdpdrmencoderenable() 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In rockchip_dp_drm_encoder_enable(), replace sprintf() when formatting the device tree endpoint name with snprintf() using the destination buffer size, so generated paths are truncated and writes remain within the 32-byte stack buffer.

Event History

Sep 25, 2026
CVE Published
via MITRE·10:22 AM
Data Sourced
via MITRE·10:22 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

What configuration is required for this issue to be reachable?

The affected code is in the Rockchip Analogix DisplayPort driver and is reached when rockchip_dp_drm_encoder_enable() formats a device tree endpoint path. A device tree endpoint name/path long enough to exceed the 32-byte stack buffer is required to trigger the overflow.

2

Who can realistically exploit this?

An attacker would need a way to supply or alter the relevant device tree data so that the generated endpoint path is sufficiently long. The provided information does not establish exploitation through ordinary user-space DisplayPort use alone.

3

What can be done before applying the fix?

Ensure device tree endpoint names and resulting paths used by the Rockchip DisplayPort configuration remain within the 32-byte formatting buffer limit. Prevent untrusted parties from modifying or supplying device tree blobs.

4

How can I identify an affected build?

Inspect the Rockchip Analogix DisplayPort driver's rockchip_dp_drm_encoder_enable() implementation. Affected code uses sprintf() to write the device tree path into a 32-byte stack buffer; fixed code uses snprintf() with the destination buffer size.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203