All reports
Low

kernel: usb: gadget: fix null pointer dereference in usb_put_function_instance()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-90019

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-24

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: fix null pointer dereference in usb_put_function_instance() usb_put_function_instance() attempts to dereference fd inside fi struct to get mod in uvc_alloc_inst() error path. However, fd is not allocated until later in try_get_usb_function_instance() after allocating fi in uvc_alloc_inst() and thus guranteed to be null in error path. Fix this by adding a null check for fi->fd that returns if fd is null.

A flaw was found in the Linux kernel. A null pointer dereference can occur in the usb_put_function_instance() function within the USB gadget subsystem. This issue arises because a file descriptor (fd) is not allocated before being dereferenced in an error path, which can lead to a system crash. A local attacker could exploit this vulnerability to cause a Denial of Service (DoS).