4.7

CVE-2023-52898

xhci: Fix null pointer dereference when host dies

In the Linux kernel, the following vulnerability has been resolved:

xhci: Fix null pointer dereference when host dies

Make sure xhci_free_dev() and xhci_kill_endpoint_urbs() do not race
and cause null pointer dereference when host suddenly dies.

Usb core may call xhci_free_dev() which frees the xhci->devs[slot_id]
virt device at the same time that xhci_kill_endpoint_urbs() tries to
loop through all the device's endpoints, checking if there are any
cancelled urbs left to give back.

hold the xhci spinlock while freeing the virt device
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version < 4.19.271
LinuxLinux Kernel Version >= 4.20 < 5.4.230
LinuxLinux Kernel Version >= 5.5 < 5.10.165
LinuxLinux Kernel Version >= 5.11 < 5.15.90
LinuxLinux Kernel Version >= 5.16 < 6.1.8
LinuxLinux Kernel Version6.2 Updaterc1
LinuxLinux Kernel Version6.2 Updaterc2
LinuxLinux Kernel Version6.2 Updaterc3
LinuxLinux Kernel Version6.2 Updaterc4
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.24% 0.148
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 4.7 1 3.6
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-476 NULL Pointer Dereference

The product dereferences a pointer that it expects to be valid but is NULL.

https://git.kernel.org/stable/c/081105213ff6f661c114781d469233c7d0e09c2e
Patch
https://git.kernel.org/stable/c/133b902378e4acbd824c29dd0d48570ad596e368
Patch
https://git.kernel.org/stable/c/6fac4b5cecb3928a0a81069aaa815a2edc8dd5a1
Patch
https://git.kernel.org/stable/c/a2bc47c43e70cf904b1af49f76d572326c08bca7
Patch
https://git.kernel.org/stable/c/c462ac871f49753eca86bb960f573b993976a5ea
Patch
https://git.kernel.org/stable/c/ea2ee5e9991caf74e0604f994c1831a5867055b2
Patch