CVE-2026-43424

MEDIUM

usb: gadget: f_tcm: Fix NULL pointer dereferences in nexus handling

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_tcm: Fix NULL pointer dereferences in nexus handling The `tpg->tpg_nexus` pointer in the USB Target driver is dynamically managed and tied to userspace configuration via ConfigFS. It can be NULL if the USB host sends requests before the nexus is fully established or immediately after it is dropped. Currently, functions like `bot_submit_command()` and the data transfer paths retrieve `tv_nexus = tpg->tpg_nexus` and immediately dereference `tv_nexus->tvn_se_sess` without any validation. If a malicious or misconfigured USB host sends a BOT (Bulk-Only Transport) command during this race window, it triggers a NULL pointer dereference, leading to a kernel panic (local DoS). This exposes an inconsistent API usage within the module, as peer functions like `usbg_submit_command()` and `bot_send_bad_response()` correctly implement a NULL check for `tv_nexus` before proceeding. Fix this by bringing consistency to the nexus handling. Add the missing `if (!tv_nexus)` checks to the vulnerable BOT command and request processing paths, aborting the command gracefully with an error instead of crashing the system.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (18)
Linux/Linux < 3.5
Linux/Linux 3.5
Linux/Linux 5.10.253 - 5.10.*
Linux/Linux 6.1.167 - 6.1.*
Linux/Linux 6.12.78 - 6.12.*
Linux/Linux 6.18.19 - 6.18.*
Linux/Linux 6.19.9 - 6.19.*
Linux/Linux 6.6.130 - 6.6.*
Linux/Linux 7.0
Linux/Linux c52661d60f636d17e26ad834457db333bd1df494 - 2a2ef846a54a06c33b5c2d4b0d918583e1e7c0b7
... and 8 more
Published May 08, 2026
Tracked Since May 08, 2026