Linux Kernel Zynqmp Clock Driver Stack-Out-Of-Bounds Vulnerability

Vulnerability

A stack-out-of-bounds vulnerability has been identified in the Linux kernel's Zynqmp clock driver. This issue arises because the Linux-ATF interface uses 16 bytes of SMC payload, and if a clock name exceeds 15 bytes, the string is not properly null-terminated when received by Linux. As a result, this can lead to memory corruption or unintended behavior. The vulnerability was reported by KASAN, indicating a bad memory access in the 'strncpy' function, which is commonly used for copying strings in a safe manner.

Impact

The vulnerability can cause a stack-based buffer overflow, where data is written beyond the allocated stack memory. This can lead to memory corruption, potentially allowing for arbitrary code execution or causing a denial-of-service by crashing the system.

Reproduction

The vulnerability can be reproduced by using a clock name longer than 15 bytes in the Linux-ATF interface. The Zynqmp clock driver will then receive the truncated name without a proper null terminator, causing a stack-out-of-bounds access. This can be observed by enabling KASAN, which will report the out-of-bounds access.

Remediation

The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.

Added: Dec 30, 2025, 8:48 PM
Updated: Dec 30, 2025, 8:48 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
3.8
remediation
0.0
relevance
1.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.