CVE-2024-26747
JSON

4.4medium

usb: roles: fix NULL pointer issue when put module's reference

Severity
4.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: roles: fix NULL pointer issue when put module's reference In current design, usb role class driver will get usb_role_switch parent's module reference after the user get usb_role_switch device and put the reference after the user put the usb_role_switch device. However, the parent device of usb_role_switch may be removed before the user put the usb_role_switch. If so, then, NULL pointer issue will be met when the user put the parent module's reference. This will save the module pointer in structure of usb_role_switch. Then, we don't need to find module by iterating long relations.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before e279bf8e51893e1fe160b3d8126ef2dd00f661e1, from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before ef982fc41055fcebb361a92288d3225783d12913, from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 0158216805ca7e498d07de38840d2732166ae5fa, from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 4b45829440b1b208948b39cc71f77a37a2536734, from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 01f82de440f2ab07c259b7573371e1c42e5565db, from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 1c9be13846c0b2abc2480602f8ef421360e1ad9e, 7b169e33a3bc9040e06988b2bc15e83d2af80358, from 4.18.12 before 4.19 and 1 more
Not affected: before 4.19, from 5.10.211 up to 5.10.*, from 5.15.150 up to 5.15.*, from 6.1.80 up to 6.1.*, from 6.6.19 up to 6.6.*, from 6.7.7 up to 6.7.*
CVE List
linux linux_kernelfrom 4.19 before 5.10.211, from 5.11 before 5.15.150, from 5.16 before 6.1.80, from 6.2 before 6.6.19, from 6.7 before 6.7.7, 6.8NVD
debian debian_linux10.0NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: usb: roles: fix NULL pointer issue when put module's reference In current design, usb role class driver will get usb_role_switch parent's module reference after the user get usb_role_switch device and put the reference after the user put the usb_role_switch device. However, the parent device of usb_role_switch may be removed before the user put the usb_role_switch. If so, then, NULL pointer issue will be met when the user put the parent module's reference. This will save the module pointer in structure of usb_role_switch. Then, we don't need to find module by iterating long relations.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: roles: soluciona el problema del puntero NULL al colocar la referencia del módulo. En el diseño actual, el controlador de clase de rol usb obtendrá la referencia del módulo principal usb_role_switch después de que el usuario obtenga el dispositivo usb_role_switch y coloque la referencia después del El usuario puso el dispositivo usb_role_switch. Sin embargo, el dispositivo principal de usb_role_switch se puede eliminar antes de que el usuario coloque usb_role_switch. Si es así, entonces, el problema del puntero NULL se solucionará cuando el usuario coloque la referencia del módulo principal. Esto guardará el puntero del módulo en la estructura de usb_role_switch. Entonces, no necesitamos encontrar el módulo iterando relaciones largas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26747 changed 2026-05-23CVE Terms of Use
NVDCVE-2024-26747 changed 2026-06-17Public domain