{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139646",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.945Z",
        "datePublished": "2026-11-30T13:36:40.715Z",
        "dateUpdated": "2026-11-30T13:36:40.715Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:36:40.715Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp - fix SFS ioctl race against device teardown\n\nsfs_ioctl() reads psp_master->sfs_data and caches it in sfs_dev before\ntaking sfs_ioctl_mutex, while sfs_dev_destroy() frees sfs_dev->page\nand sfs_dev->command_buf with no locking at all and only clears\npsp->sfs_data afterwards. A call to sfs_ioctl() that reads sfs_data\njust before sfs_dev_destroy() runs will still acquire the mutex and\ngo on to use the now-freed command buffer in send_sfs_cmd().\n\nHave both functions take sfs_ioctl_mutex before touching\npsp->sfs_data, so a call that is already using sfs_dev completes\nbefore teardown can free it, and a call arriving after teardown sees\nsfs_data cleared and returns -ENODEV instead of racing it."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/crypto/ccp/sfs.c"
                    ],
                    "versions": [
                        {
                            "version": "648dbccc03a000cd64c2a9d86012d98053545e64",
                            "lessThan": "54a7e3828df45fdb85ea5a1e79a94d4e95b78823",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "648dbccc03a000cd64c2a9d86012d98053545e64",
                            "lessThan": "6beb23aa2ec4c64f477d1c8e419c7e7da7046f26",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "648dbccc03a000cd64c2a9d86012d98053545e64",
                            "lessThan": "de4929b47683ed22d8c05f68d2d0f0cfd95b90a1",
                            "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/crypto/ccp/sfs.c"
                    ],
                    "versions": [
                        {
                            "version": "6.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18",
                            "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.18",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/54a7e3828df45fdb85ea5a1e79a94d4e95b78823"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6beb23aa2ec4c64f477d1c8e419c7e7da7046f26"
                },
                {
                    "url": "https://git.kernel.org/stable/c/de4929b47683ed22d8c05f68d2d0f0cfd95b90a1"
                }
            ],
            "title": "crypto: ccp - fix SFS ioctl race against device teardown",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}