CVE-2023-52898

xhci: Fix null pointer dereference when host dies

State
Published
Severity
Not scored
Published
Aug 21, 2024
Updated
May 11, 2026
Reserved
Aug 21, 2024

Read the record on cve.org

Description

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before 6fac4b5cecb3928a0a81069aaa815a2edc8dd5a1Affected
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before 133b902378e4acbd824c29dd0d48570ad596e368Affected
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before 081105213ff6f661c114781d469233c7d0e09c2eAffected
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before c462ac871f49753eca86bb960f573b993976a5eaAffected
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before ea2ee5e9991caf74e0604f994c1831a5867055b2Affected
  • 11ec7588a10d4bc2e1e385ac565d2166d375fba1 to before a2bc47c43e70cf904b1af49f76d572326c08bca7Affected
LinuxLinux
  • 4.15Affected
  • before 4.15Not affected
  • 4.19.271 through 4.19.*Not affected
  • 5.4.230 through 5.4.*Not affected
  • 5.10.165 through 5.10.*Not affected
  • 5.15.90 through 5.15.*Not affected
  • 6.1.8 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.