{"id":"CVE-2024-26964","summary":"usb: xhci: Add error handling in xhci_map_urb_for_dma","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: xhci: Add error handling in xhci_map_urb_for_dma\n\nCurrently xhci_map_urb_for_dma() creates a temporary buffer and copies\nthe SG list to the new linear buffer. But if the kzalloc_node() fails,\nthen the following sg_pcopy_to_buffer() can lead to crash since it\ntries to memcpy to NULL pointer.\n\nSo return -ENOMEM if kzalloc returns null pointer.","modified":"2026-04-02T10:06:34.567166Z","published":"2024-05-01T05:19:28.437Z","related":["ALSA-2024:3618","ALSA-2024:3627","SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26964.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4a49d24fdec0a802aa686a567a3989a9fdf4e5dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b6cc33593d7ccfc3011b290849cfa899db46757"},{"type":"WEB","url":"https://git.kernel.org/stable/c/962300a360d24c5be5a188cda48da58a37e4304d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2c898469dfc388f619c6c972a28466cbb1442ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be95cc6d71dfd0cba66e3621c65413321b398052"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26964.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26964"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac"},{"fixed":"4a49d24fdec0a802aa686a567a3989a9fdf4e5dd"},{"fixed":"b2c898469dfc388f619c6c972a28466cbb1442ea"},{"fixed":"620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4"},{"fixed":"962300a360d24c5be5a188cda48da58a37e4304d"},{"fixed":"7b6cc33593d7ccfc3011b290849cfa899db46757"},{"fixed":"be95cc6d71dfd0cba66e3621c65413321b398052"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26964.json"}}],"schema_version":"1.7.5"}