{"id":"CVE-2026-139394","aliases":["CVE-2026-139394"],"related":[],"kind":"vulnerability","state":"published","title":"spi: meson-spicc: fix invalid DMA unmap on mapping failure","summary":"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->rx_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->rx_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.","source":"cvelist"}],"published":"2026-11-30T13:34:21.095Z","modified":"2026-11-30T14:19:07.523Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"18197e98353d931fc7bb2bb9ec671d3aa407831d","fixed":"6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79","status":"affected"},{"type":"git","introduced":"18197e98353d931fc7bb2bb9ec671d3aa407831d","fixed":"4978cf22bbce163a6209b60dc3c0955fb0c8db3b","status":"affected"},{"type":"git","introduced":"18197e98353d931fc7bb2bb9ec671d3aa407831d","fixed":"9d71f9fe5b5de916bded51343138b09b1eb103ed","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4978cf22bbce163a6209b60dc3c0955fb0c8db3b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d71f9fe5b5de916bded51343138b09b1eb103ed","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139394","url":"https://www.cve.org/CVERecord?id=CVE-2026-139394","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:21.095Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139394","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139394","licence":"Public domain","modified":"2026-11-30T14:19:07.523Z"}],"updatedAt":"2026-11-30T14:33:19.716Z","epss":{"score":0.00206,"percentile":0.11342,"date":"2026-12-01T12:00:22.000Z"}}