Linux Kernel UVC Gadget NULL Pointer Dereference Vulnerability in Frame-Based Format Handling

Vulnerability

A NULL pointer dereference vulnerability has been identified in the Linux kernel's USB Video Class (UVC) gadget functionality. This issue arises in the frame-based format handling, specifically when the color matching descriptor is not properly initialized. The vulnerability was introduced in a previous commit that allowed the creation of new color matching descriptors for uncompressed and MJPEG formats. When userspace configuration via configfs does not explicitly define the color matching descriptor, the absence of this information leads to a crash. The problem occurs because the code attempts to dereference a NULL pointer, causing a kernel panic.

Impact

Exploitation of this vulnerability leads to a kernel crash due to a NULL pointer dereference, causing a denial of service condition.

Reproduction

The vulnerability can be reproduced by creating a UVC gadget configuration that includes frame-based formats but omits the color matching descriptor. This can be done through configfs by adding a frame-based format without specifying the color matching details. The missing descriptor will trigger the NULL pointer dereference when the configuration is processed, leading to a crash.

Remediation

The vulnerability has been addressed by initializing the color matching descriptor for frame-based formats, ensuring it is properly defined before being used. Users should apply the latest patches available in the Linux kernel stable tree to mitigate this issue.

Added: Aug 19, 2025, 6:53 PM
Updated: Aug 19, 2025, 6:53 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.