# CVE-2022-49962: xhci: Fix null pointer dereference in remove if xHC has only one roothub

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-06-18T11:00:23.321Z
- Modified: 2026-06-17T05:19:37.950Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

xhci: Fix null pointer dereference in remove if xHC has only one roothub

The remove path in xhci platform driver tries to remove and put both main
and shared hcds even if only a main hcd exists (one roothub)

This causes a null pointer dereference in reboot for those controllers.

Check that the shared_hcd exists before trying to remove it.

(As written by CVE List.)

## Affected

- Linux Linux: from e0fe986972f5b6b12086c73569206dd29c520be9 before 7081b2f34ff291ada012bd6abacaf7d51c4cf73f; from e0fe986972f5b6b12086c73569206dd29c520be9 before 4a593a62a9e3a25ab4bc37f612e4edec144f7f43; 5.19 (not affected: before 5.19; from 5.19.8 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.19 before 5.19.8; 6.0

## References

- <https://git.kernel.org/stable/c/7081b2f34ff291ada012bd6abacaf7d51c4cf73f> (patch)
- <https://git.kernel.org/stable/c/4a593a62a9e3a25ab4bc37f612e4edec144f7f43> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49962 · Whole record: https://cve.day/CVE-2022-49962.json · Rebuilt by cve.day 2026-11-25T22:58:20.983Z
