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

kernel: usb: gadget: uvc: fix dangling pointers in uvc_function_bind() and uvc_function_unbind()

متن اصلی

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

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

بهره‌برداری

CVE-2026-89733

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

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

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

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: fix dangling pointers in uvc_function_bind() and uvc_function_unbind() In uvc_function_bind() error path, we use usb_ep_free_request which uses uvc->control_req but does not set it to NULL afterwards. Thus, uvc->control_req is a dangling pointer causing a UAF. Also we do not set the uvc->control_buf pointer to NULL after freeing it, which is another dangling pointer. Fix it by setting uvc->control_req to NULL after we run usb_ep_free_request() and uvc->control_buf to NULL after kfree. Do the same for uvc_function_unbind().

A flaw was found in the Linux kernel's USB Video Class (UVC) gadget driver. This vulnerability occurs in the uvc_function_bind() and uvc_function_unbind() functions, where pointers to freed memory are not properly cleared. This can lead to a use-after-free (UAF) condition, potentially allowing an attacker to corrupt memory, which may result in a denial of service or arbitrary code execution.