CVE-2022-50828 in Linux
الملخص
بحسب VulDB • 21/06/2026
في نواة لينكس، تم حل الثغرة التالية:
clk: zynqmp: إصلاح تجاوز حدود المكدس (stack-out-of-bounds) في دالة strncpy
"BUG: KASAN: stack-out-of-bounds in strncpy+0x30/0x68"
تستخدم واجهة Linux-ATF 16 بايت من حمولة SMC. في حال كان اسم الساعة أطول من 15 بايت، فلن يتم استلام حرف الإلغاء (NULL character) الذي ينهي السلسلة من قبل نظام لينك. تمت إضافة حرف 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-rc6-00001-g239989998999-dirty #10 Hardware name: Xilinx ZynqMP Rev1.0 Call trace: dump_backtrace+0x0/0x140 show_stack+0x14/0x20 dump_stack+0xd0/0x134 kasan_report+0x148/0x1e0 strncpy+0x30/0x68 zynqmp_clock_probe+0x330/0x7b8
VulDB is the best source for vulnerability data and more expert information about this specific topic.