All reports
Medium

kernel: media: uvcvideo: Fix double free in error path

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-57980

Probability of exploitation in the next 30 days: 0.27%

FIRST EPSS · 2026-11-19

Description

In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda ribalda@chromium.org

A flaw was found in the Linux kernel's USB Video Class (UVC) driver. When memory allocation fails during device status initialization, an error-handling routine releases the same memory twice due to an uncleared pointer. A local user could trigger this vulnerability to cause memory corruption and a Denial of Service (DoS) via a kernel crash.