xhci: Fix null pointer dereference when host dies
Published Aug 21, 2024
4.7
MEDIUMCVSS 3.1
EPSS 0.24%
Description
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
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 4.15StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<4.15
- Version 4.19.271StatusunaffectedConstraints<=4.19.*
- Version 5.10.165StatusunaffectedConstraints<=5.10.*
- Version 5.15.90StatusunaffectedConstraints<=5.15.*
- Version 5.4.230StatusunaffectedConstraints<=5.4.*
- Version 6.1.8StatusunaffectedConstraints<=6.1.*
- Version 6.2StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- < 4.19.271
- ≥ 4.20 · < 5.4.230
- ≥ 5.5 · < 5.10.165
- ≥ 5.11 · < 5.15.90
- ≥ 5.16 · < 6.1.8
- 6.2
- 6.2
- 6.2
- 6.2
No data.
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Will not fix
Red Hat Enterprise Linux 8
kernel-rt
Will not fix
Red Hat Enterprise Linux 9
kernel
Will not fix
Red Hat Enterprise Linux 9
kernel-rt
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | kernel | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (12)
- https://access.redhat.com/security/cve/CVE-2023-52898 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2306426 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-59609 Advisory
- 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
- https://lore.kernel.org/linux-cve-announce/2024082112-CVE-2023-52898-f25e@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2023-52898
- https://www.cve.org/CVERecord?id=CVE-2023-52898
Change history (0)
No recorded changes yet.