Linux Kernel NULL Pointer Dereference Vulnerability in USB Gadget Function NCM

Vulnerability

A vulnerability in the Linux kernel's USB gadget function for Network Control Model (NCM) has been addressed. The issue arose after a bind/unbind cycle, leaving the notification request stale. If a subsequent bind failed, the error handling attempted to free the stale request, causing a NULL pointer dereference when accessing the endpoint's operations for freeing requests. This vulnerability affects the Linux kernel stable tree.

Impact

Exploitation of this vulnerability leads to a NULL pointer dereference, causing a kernel crash.

Reproduction

The vulnerability can be reproduced by cycling through the bind and unbind process of the NCM function in the USB gadget framework. After an unbind, if the next bind attempt fails, the error handling will try to free a request that was not properly cleared, leading to a NULL pointer dereference.

Remediation

The vulnerability has been fixed in the Linux kernel stable tree by refactoring the bind process to use an automatic cleanup mechanism that properly handles request deallocation.

Added: Oct 30, 2025, 10:38 AM
Updated: Oct 30, 2025, 3:41 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.9
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.