usb: xhci: Add error handling in xhci_map_urb_for_dma
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4a49d24fdec0a802aa686a567a3989a9fdf4e5dd, Kernel 620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4, Kernel 7b6cc33593d7ccfc3011b290849cfa899db46757 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Add error handling in xhci_map_urb_for_dma Currently xhci_map_urb_for_dma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzalloc_node() fails, then the following sg_pcopy_to_buffer() can lead to crash since it tries to memcpy to NULL pointer. So return -ENOMEM if kzalloc returns null pointer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.11, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <4a49d24fdec0a802aa686a567a3989a9fdf4e5dd, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <7b6cc33593d7ccfc3011b290849cfa899db46757, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <962300a360d24c5be5a188cda48da58a37e4304d, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <b2c898469dfc388f619c6c972a28466cbb1442ea, >=2017a1e58472a27e532b9644b4a61dfe18f6baac <be95cc6d71dfd0cba66e3621c65413321b398052 | 4a49d24fdec0a802aa686a567a3989a9fdf4e5dd, 620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4, 7b6cc33593d7ccfc3011b290849cfa899db46757, 962300a360d24c5be5a188cda48da58a37e4304d, b2c898469dfc388f619c6c972a28466cbb1442ea, be95cc6d71dfd0cba66e3621c65413321b398052 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket