Linux Kernel NULL Pointer Dereference Vulnerability in QCOM QMP USB Handling

Vulnerability

A vulnerability in the Linux kernel's handling of USB mappings for Qualcomm QMP can lead to a NULL pointer dereference. The issue arises because the 'qmp_usb_iomap()' function returns the raw output of 'devm_ioremap()' for non-exclusive mappings. Since 'devm_ioremap()' can return a NULL pointer, and the subsequent error check only identifies pointers marked as errors, a NULL return could be incorrectly processed, allowing for an invalid memory access. This vulnerability has been addressed by modifying 'qmp_usb_iomap()' to return an error pointer when 'devm_ioremap()' returns NULL, ensuring proper error management.

Impact

Exploitation of this vulnerability can lead to a NULL pointer dereference, causing a crash or undefined behavior in the kernel.

Added: Jul 10, 2025, 9:56 AM
Updated: Jul 10, 2025, 9:56 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.3
threat
3.2
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.