CVE-2022-50828 in Linux
摘要
由 VulDB • 2026-06-16
在 Linux 内核中,已修复以下漏洞:
clk: zynqmp: 修复 strncpy 中的栈越界问题
“BUG: KASAN: stack-out-of-bounds in strncpy+0x30/0x68”
Linux-ATF 接口使用 16 字节的 SMC 有效载荷。当时钟名称超过 15 个字节时,Linux 将无法接收到字符串终止用的 NULL 字符。通过在最后一个字节显式添加 NULL 字符来修复时钟名称较长时引发的问题。
此修复解决了 KASAN 报告的以下错误:
================================================================== BUG: KASAN: stack-out-of-bounds in strncpy+0x30/0x68 Read of size 1 at addr ffff0008c89a7410 by task swapper/0/1
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.0-00396-g81ef9e7-dirty #3 Hardware name: Xilinx Versal vck190 Eval board revA (DT) Call trace: dump_backtrace+0x0/0x140 show_stack+0x1c/0x28 dump_stack+0xd0/0x130 kasan_report+0x140/0x1e8 strncpy+0x30/0x68 zynqmp_clock_probe+0x330/0x7b8
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.