{"id":"CVE-2024-26964","aliases":["CVE-2024-26964"],"related":[],"kind":"vulnerability","state":"published","title":"usb: xhci: Add error handling in xhci_map_urb_for_dma","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: xhci: agregar manejo de errores en xhci_map_urb_for_dma Actualmente, xhci_map_urb_for_dma() crea un búfer temporal y copia la lista SG en el nuevo búfer lineal. Pero si kzalloc_node() falla, entonces el siguiente sg_pcopy_to_buffer() puede provocar un fallo ya que intenta memcpy al puntero NULL. Entonces devuelve -ENOMEM si kzalloc devuelve un puntero nulo.","source":"nvd"}],"published":"2024-05-01T05:19:28.437Z","modified":"2026-06-17T07:18:48.540Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"4a49d24fdec0a802aa686a567a3989a9fdf4e5dd","status":"affected"},{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"b2c898469dfc388f619c6c972a28466cbb1442ea","status":"affected"},{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4","status":"affected"},{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"962300a360d24c5be5a188cda48da58a37e4304d","status":"affected"},{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"7b6cc33593d7ccfc3011b290849cfa899db46757","status":"affected"},{"type":"git","introduced":"2017a1e58472a27e532b9644b4a61dfe18f6baac","fixed":"be95cc6d71dfd0cba66e3621c65413321b398052","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.154","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.84","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.24","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.12","lastAffected":"6.7.*","status":"unaffected"},{"type":"semver","introduced":"6.8.3","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.11","fixed":"5.15.154"},{"status":"affected","introduced":"5.16","fixed":"6.1.84"},{"status":"affected","introduced":"6.2","fixed":"6.6.24"},{"status":"affected","introduced":"6.7","fixed":"6.7.12"},{"status":"affected","introduced":"6.8","fixed":"6.8.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4a49d24fdec0a802aa686a567a3989a9fdf4e5dd","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2c898469dfc388f619c6c972a28466cbb1442ea","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/962300a360d24c5be5a188cda48da58a37e4304d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b6cc33593d7ccfc3011b290849cfa899db46757","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be95cc6d71dfd0cba66e3621c65413321b398052","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-21T14:41:33.785Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26964","url":"https://www.cve.org/CVERecord?id=CVE-2024-26964","licence":"CVE Terms of Use","modified":"2026-05-11T20:07:47.632Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26964","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26964","licence":"Public domain","modified":"2026-06-17T07:18:48.540Z"}],"updatedAt":"2026-11-25T22:58:39.741Z","epss":{"score":0.0023,"percentile":0.14862,"date":"2026-12-01T12:00:22.000Z"}}