Skip to content
Heist/ feed
Back to feed
UnratedFix available

usb: xhci: Add error handling in xhci_map_urb_for_dma

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3
CVEs
CVE-2024-26964
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 03:28 UTC · Revision 1

Source evidence

usb: xhci: Add error handling in xhci_map_urb_for_dma

core-osv · Original source

Published 1 May 2024, 05:19 UTC

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.

osv:CVE-2024-26964

Kernel

Fixed versions: 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3

Complete source record
{
  "id": "b05d93877199f39c2db08c1e572a4548874dfacbc9f3125176da0ac75d88e5aa",
  "url": "https://osv.dev/vulnerability/CVE-2024-26964",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "usb: xhci: Add error handling in xhci_map_urb_for_dma",
    "summary": "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.",
    "evidence": "osv:CVE-2024-26964",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.154",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.84",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.24",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.12",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-26964",
      "aliases": [
        "CVE-2024-26964"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.154"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.84"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.24"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.12"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26964.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.493916951Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4a49d24fdec0a802aa686a567a3989a9fdf4e5dd",
        "https://git.kernel.org/stable/c/620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4",
        "https://git.kernel.org/stable/c/7b6cc33593d7ccfc3011b290849cfa899db46757",
        "https://git.kernel.org/stable/c/962300a360d24c5be5a188cda48da58a37e4304d",
        "https://git.kernel.org/stable/c/b2c898469dfc388f619c6c972a28466cbb1442ea",
        "https://git.kernel.org/stable/c/be95cc6d71dfd0cba66e3621c65413321b398052",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26964.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-26964",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26964.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-26964",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 514493,
  "published_at": "2024-05-01T05:19:28.437+00:00"
}