Linux Kernel USB Type-C Bus NULL Pointer Dereference Vulnerability in Alt Mode Attention Handling

Vulnerability

A vulnerability in the Linux kernel's USB Type-C bus implementation can lead to a NULL pointer dereference. This issue arises in the handling of DisplayPort Alt mode negotiations. When a USB hub negotiates a data role swap after entering Alt mode, the connected device unregisters all Alt modes. However, the hub continues to send Attention messages, creating a mismatch. The current implementation of the typec_altmode_attention function does not verify the existence of a device's Alt mode partner, leading to a NULL pointer error when the partner's Alt mode data is accessed. This vulnerability affects the Linux kernel stable tree.

Impact

Exploitation of this vulnerability causes a NULL pointer dereference, which can lead to a system crash.

Reproduction

The vulnerability can be reproduced by connecting a device to a USB hub that negotiates DisplayPort Alt mode. After the device enters Alt mode, the hub should initiate a data role swap, causing the device to unregister all Alt modes. Despite the unregistration, the hub will continue to send Attention messages. This sequence creates the conditions for the NULL pointer dereference when the typec_altmode_attention function is called without a valid partner reference.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.

Added: Dec 30, 2025, 2:13 PM
Updated: Dec 30, 2025, 2:13 PM

Vulnerability Rating

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