{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139394",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.931Z",
        "datePublished": "2026-11-30T13:34:21.095Z",
        "dateUpdated": "2026-11-30T13:34:21.095Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:34:21.095Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-meson-spicc.c"
                    ],
                    "versions": [
                        {
                            "version": "18197e98353d931fc7bb2bb9ec671d3aa407831d",
                            "lessThan": "6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "18197e98353d931fc7bb2bb9ec671d3aa407831d",
                            "lessThan": "4978cf22bbce163a6209b60dc3c0955fb0c8db3b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "18197e98353d931fc7bb2bb9ec671d3aa407831d",
                            "lessThan": "9d71f9fe5b5de916bded51343138b09b1eb103ed",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/spi/spi-meson-spicc.c"
                    ],
                    "versions": [
                        {
                            "version": "6.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.16",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.16",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.16",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/6a8a2e45db5f556fa4d7a1613902ef6e7b69ec79"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4978cf22bbce163a6209b60dc3c0955fb0c8db3b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9d71f9fe5b5de916bded51343138b09b1eb103ed"
                }
            ],
            "title": "spi: meson-spicc: fix invalid DMA unmap on mapping failure",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}