{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "18197e98353d931fc7bb2bb9ec671d3aa407831d"
            },
            {
              "fixed": "6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79"
            },
            {
              "fixed": "4978cf22bbce163a6209b60dc3c0955fb0c8db3b"
            },
            {
              "fixed": "9d71f9fe5b5de916bded51343138b09b1eb103ed"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139394.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: meson-spicc: fix invalid DMA unmap on mapping failure\n\nmeson_spicc_dma_unmap() decided whether a buffer had to be unmapped by\ntesting its DMA address for non-zero. On a mapping failure\ndma_map_single() returns DMA_MAPPING_ERROR (typically non-zero), so the\nerror path in meson_spicc_transfer_one() passed that error value to\ndma_unmap_single(), unmapping an address which was never mapped. The\nsame happened for t-\u003erx_dma on TX mapping failure, which is not written\nat all.\n\nInitialize both addresses to DMA_MAPPING_ERROR before mapping and use\ndma_mapping_error() to decide, so only buffers which were actually\nmapped are unmapped.",
  "id": "CVE-2026-139394",
  "modified": "2026-11-30T14:46:01.310611572Z",
  "published": "2026-11-30T13:34:21.095Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4978cf22bbce163a6209b60dc3c0955fb0c8db3b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9d71f9fe5b5de916bded51343138b09b1eb103ed"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139394.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139394"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "spi: meson-spicc: fix invalid DMA unmap on mapping failure"
}