Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97621 Overview
CVE-2026-97621 is a stack buffer overflow in the Linux kernel's drm/rockchip analogix DisplayPort (DP) driver. The function rockchip_dp_drm_encoder_enable() uses sprintf() to format a device tree path into a 32-byte stack buffer. Device tree paths are not bounded to that size, so a sufficiently long path overflows the buffer and corrupts adjacent stack memory. The upstream fix replaces sprintf() with snprintf() to truncate the generated name and keep writes within bounds.
Critical Impact
A long device tree endpoint path triggers a stack buffer overflow in the Rockchip analogix_dp encoder enable path, risking kernel memory corruption on affected systems.
Affected Products
- Linux kernel builds including the drm/rockchip analogix_dp driver
- Rockchip SoC platforms using the analogix DisplayPort encoder
- Stable kernel branches prior to commits 2fcd112, 49f5268, and bc69439
Discovery Timeline
- 2026-09-25 - CVE-2026-97621 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97621
Vulnerability Analysis
The defect lives in rockchip_dp_drm_encoder_enable() within the Rockchip analogix DisplayPort driver. The function constructs an endpoint identifier by formatting a device tree node path into a fixed 32-byte buffer allocated on the kernel stack. The code uses sprintf(), which performs no length check against the destination buffer. Device tree paths have no architectural upper bound at 32 bytes, so a longer path writes past the end of the buffer. The adjacent stack frame, including saved registers and return addresses, becomes corrupted. On kernels built with stack protection, the overflow typically triggers a panic; without those mitigations, the condition can be shaped into memory corruption.
The fix substitutes snprintf() with the destination size, truncating oversized paths and keeping the write within the 32-byte buffer. The patch is tracked in kernel commits 2fcd112, 49f5268, and bc69439.
Root Cause
The root cause is unchecked use of sprintf() against a bounded 32-byte stack buffer. The driver assumed device tree endpoint paths would fit, but no code path enforces that constraint. This is a classic stack-based buffer overflow pattern driven by missing bounds validation on externally defined input (the device tree).
Attack Vector
Exploitation requires the attacker to influence the device tree used by the kernel at boot or during driver probe. On typical production hardware, the device tree is supplied by firmware and not directly modifiable by unprivileged users. The practical risk is highest in scenarios where device tree overlays can be loaded at runtime or where a privileged actor controls boot-time configuration. On such systems, a crafted long endpoint path causes memory corruption when the analogix_dp encoder is enabled.
No verified public exploit code is available for CVE-2026-97621. See the upstream kernel commits linked above for the authoritative patch diff.
Detection Methods for CVE-2026-97621
Indicators of Compromise
- Kernel panics or oops messages originating in rockchip_dp_drm_encoder_enable or the surrounding analogix_dp code path
- Stack protector (__stack_chk_fail) traps logged during display subsystem initialization on Rockchip platforms
- Unexpected reboots or display pipeline failures correlated with device tree overlay loading
Detection Strategies
- Audit running kernel versions on Rockchip-based systems against the fixed commits 2fcd112, 49f5268, and bc69439
- Review device tree sources and overlays for endpoint node paths exceeding 32 characters
- Enable CONFIG_STACKPROTECTOR_STRONG and CONFIG_FORTIFY_SOURCE to surface overflows at runtime
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log for stack corruption signatures tied to the DRM subsystem
- Forward kernel crash telemetry from embedded fleets to a centralized log pipeline for pattern analysis
- Track kernel package versions across Rockchip device inventories to confirm patch adoption
How to Mitigate CVE-2026-97621
Immediate Actions Required
- Upgrade affected Linux kernels to a stable release that includes commits 2fcd112, 49f5268, or bc69439
- Restrict the ability to load device tree overlays to privileged administrators only
- Validate device tree sources shipped by firmware vendors for oversized endpoint paths
Patch Information
The upstream fix replaces the unsafe sprintf() call with snprintf() bounded by the destination size. The patch is available in the stable kernel tree via Kernel Git Commit 2fcd112, Kernel Git Commit 49f5268, and Kernel Git Commit bc69439. Downstream distributions should rebase to a kernel containing these commits.
Workarounds
- Disable the analogix_dp driver on systems that do not require DisplayPort output on Rockchip SoCs
- Lock the device tree at boot and block runtime overlay loading via kernel configuration
- Ensure stack protection and fortify-source build options are enabled to limit corruption impact
# Verify your running kernel against the fix commits
uname -r
zcat /proc/config.gz | grep -E 'CONFIG_STACKPROTECTOR_STRONG|CONFIG_FORTIFY_SOURCE'
# Confirm the analogix_dp module is loaded only where required
lsmod | grep analogix_dp
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

