{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139526",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.938Z",
        "datePublished": "2026-11-30T13:35:34.085Z",
        "dateUpdated": "2026-11-30T13:35:34.085Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:35:34.085Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()\n\nswitchtec_dma_free_desc() frees swdma_chan->hw_sq, hw_cq, and every\ndesc_ring[] entry without clearing the pointers afterward. If\nswitchtec_dma_alloc_chan_resources() fails partway through and calls\nit during unwind, then a later retry of alloc_chan_resources() fails\nin switchtec_dma_alloc_desc() before reallocating one of those\npointers, its own failure path calls switchtec_dma_free_desc() again\nand frees the same, already-freed pointers a second time.\n\nNULL out each pointer as it's freed so a subsequent call is a no-op\nfor anything already released."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/dma/switchtec_dma.c"
                    ],
                    "versions": [
                        {
                            "version": "30eba9df76adf1294e88214dbf9cea402fa7af37",
                            "lessThan": "8cba9a0fb162748b6d5c73628d1713a2f895c972",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "30eba9df76adf1294e88214dbf9cea402fa7af37",
                            "lessThan": "bdfd76514bd11301f4e67d150485ab696c26d83d",
                            "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/dma/switchtec_dma.c"
                    ],
                    "versions": [
                        {
                            "version": "7.1",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.1",
                            "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": "7.1",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.1",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/8cba9a0fb162748b6d5c73628d1713a2f895c972"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bdfd76514bd11301f4e67d150485ab696c26d83d"
                }
            ],
            "title": "dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}