همهٔ گزارش‌ها
کم

kernel: PM / devfreq: Fix buffer overflow in trans_stat_show

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2023-52614

احتمال بهره‌برداری در ۳۰ روز آینده: 0.26%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

In the Linux kernel, the following vulnerability has been resolved: PM / devfreq: Fix buffer overflow in trans_stat_show Fix buffer overflow in trans_stat_show(). Convert simple snprintf to the more secure scnprintf with size of PAGE_SIZE. Add condition checking if we are exceeding PAGE_SIZE and exit early from loop. Also add at the end a warning that we exceeded PAGE_SIZE and that stats is disabled. Return -EFBIG in the case where we don't have enough space to write the full transition table. Also document in the ABI that this function can return -EFBIG error.

This linux kernel vulnerability occurs in the power management devfreq subsystem, specifically within the trans_stat_show function. The code previously used a basic snprintf call to display state transition statistics, which could trigger a buffer overflow if the resulting transition table was larger than a single memory page limit. Patched kernel versions resolve the issue by replacing the unsafe operation with a securely bounded scnprintf call. Additionally, the fix introduces safety checks to halt the operation early and return an -EFBIG error if the output data exceeds the PAGE_SIZE limit, preventing the memory corruption bug.