Bug 2311724 (CVE-2024-45027) - CVE-2024-45027 kernel: usb: xhci: Check for xhci->interrupters being allocated in xhci_mem_clearup()
Summary: CVE-2024-45027 kernel: usb: xhci: Check for xhci->interrupters being alloc...
Keywords:
Status: NEW
Alias: CVE-2024-45027
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2311775
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-11 16:21 UTC by OSIDB Bzimport
Modified: 2024-09-13 10:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-11 16:21:25 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: xhci: Check for xhci->interrupters being allocated in xhci_mem_clearup()

If xhci_mem_init() fails, it calls into xhci_mem_cleanup() to mop
up the damage. If it fails early enough, before xhci->interrupters
is allocated but after xhci->max_interrupters has been set, which
happens in most (all?) cases, things get uglier, as xhci_mem_cleanup()
unconditionally derefences xhci->interrupters. With prejudice.

Gate the interrupt freeing loop with a check on xhci->interrupters
being non-NULL.

Found while debugging a DMA allocation issue that led the XHCI driver
on this exact path.


Note You need to log in before you can comment on or make changes to this bug.