# CVE-2023-52898: xhci: Fix null pointer dereference when host dies

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-08-21T06:10:38.365Z
- Modified: 2026-06-17T06:43:53.307Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before 6fac4b5cecb3928a0a81069aaa815a2edc8dd5a1; from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before 133b902378e4acbd824c29dd0d48570ad596e368; from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before 081105213ff6f661c114781d469233c7d0e09c2e; from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before c462ac871f49753eca86bb960f573b993976a5ea; from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before ea2ee5e9991caf74e0604f994c1831a5867055b2; from 11ec7588a10d4bc2e1e385ac565d2166d375fba1 before a2bc47c43e70cf904b1af49f76d572326c08bca7; 4.15 (not affected: before 4.15; from 4.19.271 up to 4.19.*; from 5.4.230 up to 5.4.*; from 5.10.165 up to 5.10.*; from 5.15.90 up to 5.15.*; from 6.1.8 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: before 4.19.271; from 4.20 before 5.4.230; from 5.5 before 5.10.165; from 5.11 before 5.15.90; from 5.16 before 6.1.8; 6.2

## References

- <https://git.kernel.org/stable/c/6fac4b5cecb3928a0a81069aaa815a2edc8dd5a1> (patch)
- <https://git.kernel.org/stable/c/133b902378e4acbd824c29dd0d48570ad596e368> (patch)
- <https://git.kernel.org/stable/c/081105213ff6f661c114781d469233c7d0e09c2e> (patch)
- <https://git.kernel.org/stable/c/c462ac871f49753eca86bb960f573b993976a5ea> (patch)
- <https://git.kernel.org/stable/c/ea2ee5e9991caf74e0604f994c1831a5867055b2> (patch)
- <https://git.kernel.org/stable/c/a2bc47c43e70cf904b1af49f76d572326c08bca7> (patch)

## Sources

- CVE List: [CVE-2023-52898](https://www.cve.org/CVERecord?id=CVE-2023-52898), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52898](https://nvd.nist.gov/vuln/detail/CVE-2023-52898), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52898 · Whole record: https://cve.day/CVE-2023-52898.json · Rebuilt by cve.day 2026-11-25T22:58:34.275Z
