CVE-2026-43424
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom c52661d60f636d17e26ad834457db333bd1df494 before b9b26d7f3aa288cfa54a7bc68612bab1f153f156, from c52661d60f636d17e26ad834457db333bd1df494 before 2a2ef846a54a06c33b5c2d4b0d918583e1e7c0b7, from c52661d60f636d17e26ad834457db333bd1df494 before d146f27758049fa55ae4c53785a852d3cf7a18d6, from c52661d60f636d17e26ad834457db333bd1df494 before f962ca3b020e13d6714f27e8c36fe742441c58d1, from c52661d60f636d17e26ad834457db333bd1df494 before 679d9535aeb15c10bce89c44102004b96624d706, from c52661d60f636d17e26ad834457db333bd1df494 before 3d309b37633c4a847fc149939a2c9576f1aa1065, from c52661d60f636d17e26ad834457db333bd1df494 before b9fde507355342a2d64225d582dc8b98ff5ecb19, 3.5
Not affected: before 3.5, from 5.10.253 up to 5.10.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.*, from 6.18.19 up to 6.18.*
CVE List
linux linux_kernelfrom 3.5 before 5.10.253, from 5.11 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 7.0NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: gadget: f_tcm: Corrección de desreferencias de puntero NULL en el manejo de nexos El puntero “tpg -> tpg_nexus” en el controlador USB Target se gestiona dinámicamente y está vinculado a la configuración del espacio de usuario a través de ConfigFS. Puede ser NULL si el host USB envía solicitudes antes de que el nexo esté completamente establecido o inmediatamente después de que se elimine. Actualmente, funciones como “bot_submit_command()” y las rutas de transferencia de datos recuperan “tv_nexus = tpg -> tpg_nexus” y desreferencian inmediatamente “tv_nexus -> tvn_se_sess” sin ninguna validación. Si un host USB malicioso o mal configurado envía un comando BOT (Bulk-Only Transport) durante esta ventana de carrera, desencadena una desreferencia de puntero NULL, lo que lleva a un pánico del kernel (DoS local). Esto expone un uso inconsistente de la API dentro del módulo, ya que funciones pares como “usbg_submit_command()” y “bot_send_bad_response()” implementan correctamente una verificación de NULL para “tv_nexus” antes de continuar. Solucione esto aportando consistencia al manejo del nexo. Agregue las verificaciones “if (!tv_nexus)” faltantes a las rutas vulnerables de procesamiento de comandos BOT y solicitudes, abortando el comando de forma elegante con un error en lugar de bloquear el sistema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43424 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-43424 changed 2026-11-11Public domain