CVE-2026-142991: usb: typec: nb7vpq904m: Set client data in probe to avoid crash on remove
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: nb7vpq904m: Set client data in probe to avoid crash on remove
nb7vpq904mprobe() allocates struct nb7vpq904m, but client data is not set during probe.
In nb7vpq904mremove(), i2cgetclientdata(client) returns NULL, leading to a NULL pointer dereference when accessing nb7->retimer or nb7->sw.
Set client data upon successful allocation in probe.
Affected Software
Event History
Frequently Asked Questions
When does the crash occur?
The NULL pointer dereference occurs when the nb7vpq904m driver is removed. Its remove handler retrieves unset I2C client data and then accesses fields through the resulting NULL pointer.
What component must be present for a system to be affected?
The affected code is the Linux kernel usb:typec:nb7vpq904m driver. The issue applies where that driver probes an NB7VPQ904M device and is subsequently removed.
What does the fix change?
The fix stores the allocated nb7vpq904m structure as I2C client data during probe. This allows the remove handler to retrieve a valid driver-data pointer instead of NULL.