# CVE-2022-50133: usb: xhci\_plat\_remove: avoid NULL dereference

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:02:58.170Z
- **Modified:** 2026-06-17T05:22:49.587Z

## Who should check

- Anyone running Linux \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< 371a8af4f26e06b4d51d893b4436f520b48d07fd; \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< d7de14d74d6551f0d097430f9893ce82ad17e5b8
- Anyone running Linux 5.19

## Description

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

usb: xhci\_plat\_remove: avoid NULL dereference

Since commit 4736ebd7fcaff1eb8481c140ba494962847d6e0a ("usb: host:
xhci-plat: omit shared hcd if either root hub has no ports")
xhci-\>shared\_hcd can be NULL, which causes the following Oops
on reboot:

\[  710.124450\] systemd-shutdown\[1\]: Rebooting.
\[  710.298861\] xhci-hcd xhci-hcd.2.auto: remove, state 4
\[  710.304217\] usb usb3: USB disconnect, device number 1
\[  710.317441\] xhci-hcd xhci-hcd.2.auto: USB bus 3 deregistered
\[  710.323280\] xhci-hcd xhci-hcd.2.auto: remove, state 1
\[  710.328401\] usb usb2: USB disconnect, device number 1
\[  710.333515\] usb 2-3: USB disconnect, device number 2
\[  710.467649\] xhci-hcd xhci-hcd.2.auto: USB bus 2 deregistered
\[  710.475450\] Unable to handle kernel NULL pointer dereference at virtual address 00000000000003b8
\[  710.484425\] Mem abort info:
\[  710.487265\]   ESR = 0x0000000096000004
\[  710.491060\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[  710.496427\]   SET = 0, FnV = 0
\[  710.499525\]   EA = 0, S1PTW = 0
\[  710.502716\]   FSC = 0x04: level 0 translation fault
\[  710.507648\] Data abort info:
\[  710.510577\]   ISV = 0, ISS = 0x00000004
\[  710.514462\]   CM = 0, WnR = 0
\[  710.517480\] user pgtable: 4k pages, 48-bit VAs, pgdp=00000008b0050000
\[  710.523976\] \[00000000000003b8\] pgd=0000000000000000, p4d=0000000000000000
\[  710.530961\] Internal error: Oops: 96000004 \[\#1\] PREEMPT SMP
\[  710.536551\] Modules linked in: rfkill input\_leds snd\_soc\_simple\_card snd\_soc\_simple\_card\_utils snd\_soc\_nau8822 designware\_i2s snd\_soc\_core dw\_hdmi\_ahb\_audio snd\_pcm\_dmaengine arm\_ccn panfrost ac97\_bus gpu\_sched snd\_pcm at24 fuse configfs sdhci\_of\_dwcmshc sdhci\_pltfm sdhci nvme led\_class mmc\_core nvme\_core bt1\_pvt polynomial tp\_serio snd\_seq\_midi snd\_seq\_midi\_event snd\_seq snd\_timer snd\_rawmidi snd\_seq\_device snd soundcore efivarfs ipv6
\[  710.575286\] CPU: 7 PID: 1 Comm: systemd-shutdow Not tainted 5.19.0-rc7-00043-gfd8619f4fd54 \#1
\[  710.583822\] Hardware name: T-Platforms TF307-MB/BM1BM1-A, BIOS 5.6 07/06/2022
\[  710.590972\] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  710.597949\] pc : usb\_remove\_hcd+0x34/0x1e4
\[  710.602067\] lr : xhci\_plat\_remove+0x74/0x140
\[  710.606351\] sp : ffff800009f3b7c0
\[  710.609674\] x29: ffff800009f3b7c0 x28: ffff000800960040 x27: 0000000000000000
\[  710.616833\] x26: ffff800008dc22a0 x25: 0000000000000000 x24: 0000000000000000
\[  710.623992\] x23: 0000000000000000 x22: ffff000805465810 x21: ffff000805465800
\[  710.631149\] x20: ffff000800f80000 x19: 0000000000000000 x18: ffffffffffffffff
\[  710.638307\] x17: ffff000805096000 x16: ffff00080633b800 x15: ffff000806537a1c
\[  710.645465\] x14: 0000000000000001 x13: 0000000000000000 x12: ffff00080378d6f0
\[  710.652621\] x11: ffff00080041a900 x10: ffff800009b204e8 x9 : ffff8000088abaa4
\[  710.659779\] x8 : ffff000800960040 x7 : ffff800009409000 x6 : 0000000000000001
\[  710.666936\] x5 : ffff800009241000 x4 : ffff800009241440 x3 : 0000000000000000
\[  710.674094\] x2 : ffff000800960040 x1 : ffff000800960040 x0 : 0000000000000000
\[  710.681251\] Call trace:
\[  710.683704\]  usb\_remove\_hcd+0x34/0x1e4
\[  710.687467\]  xhci\_plat\_remove+0x74/0x140
\[  710.691400\]  platform\_remove+0x34/0x70
\[  710.695165\]  device\_remove+0x54/0x90
\[  710.698753\]  device\_release\_driver\_internal+0x200/0x270
\[  710.703992\]  device\_release\_driver+0x24/0x30
\[  710.708273\]  bus\_remove\_device+0xe0/0x16c
\[  710.712293\]  device\_del+0x178/0x390
\[  710.715797\]  platform\_device\_del.part.0+0x24/0x90
\[  710.720514\]  platform\_device\_unregister+0x30/0x50
\[  710.725232\]  dwc3\_host\_exit+0x20/0x30
\[  710.728907\]  dwc3\_remove+0x174/0x1b0
\[  710.732494\]  platform\_remove+0x34/0x70
\[  710.736254\]  device\_remove+0x54/0x90
\[  710.739840\]  device\_release\_driver\_internal+0x200/0x270
\[  710.745078\]  device\_release\_driver+0x24/0x30
\[  710.749359\]  bus\_remove\_device+0xe0/0x16c
\[  710.753380\]  device\_del+0x178/0x390
\[  710.756881\]  platform\_device\_del.part
---truncated---

## Affected and fixed versions

- Linux: \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< 371a8af4f26e06b4d51d893b4436f520b48d07fd; \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< d7de14d74d6551f0d097430f9893ce82ad17e5b8 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50133. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50133.md
Affected: Linux >= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, < 371a8af4f26e06b4d51d893b4436f520b48d07fd; >= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, < d7de14d74d6551f0d097430f9893ce82ad17e5b8; Linux 5.19
Fixed in: Linux 371a8af4f26e06b4d51d893b4436f520b48d07fd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50133 being exploited?

There is no confirmed exploitation: CVE-2022-50133 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50133?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50133?

Linux \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< 371a8af4f26e06b4d51d893b4436f520b48d07fd; \>= 4736ebd7fcaff1eb8481c140ba494962847d6e0a, \< d7de14d74d6551f0d097430f9893ce82ad17e5b8; Linux 5.19.

### Is there a fix for CVE-2022-50133?

Yes. Fixed in Linux 371a8af4f26e06b4d51d893b4436f520b48d07fd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50133?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/371a8af4f26e06b4d51d893b4436f520b48d07fd>
- patch: <https://git.kernel.org/stable/c/d7de14d74d6551f0d097430f9893ce82ad17e5b8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50133>

HTML: <https://flawdb.com/CVE-2022-50133> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50133>
