همهٔ گزارش‌ها
متوسط

kernel: phonet: pep: do not write beyond optlen in getsockopt

متن اصلی

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

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

بهره‌برداری

CVE-2026-90327

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

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

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

In the Linux kernel, the following vulnerability has been resolved: phonet: pep: do not write beyond optlen in getsockopt pep_getsockopt() clamps the reported length to the caller's buffer with min_t(), but then stores the value with put_user(val, (int __user *) optval), which always writes sizeof(int) bytes. A getsockopt() call with an optlen smaller than sizeof(int) thus reports the clamped length yet writes a full int, one to three bytes past the user buffer. Write the value with copy_to_user() bounded by len, so at most optlen bytes are copied, matching the length reported back to userspace.

A flaw was found in the Linux kernel's phonet: pep component. A local attacker could exploit an out-of-bounds write vulnerability in the pep_getsockopt() function. This occurs when a getsockopt() call provides an optlen smaller than sizeof(int), causing the function to write a full integer beyond the user-provided buffer. This could lead to memory corruption and potentially information disclosure or denial of service.