{"id":"CVE-2026-139646","aliases":["CVE-2026-139646"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: ccp - fix SFS ioctl race against device teardown","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:36:40.715Z","modified":"2026-11-30T14:19:48.207Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"648dbccc03a000cd64c2a9d86012d98053545e64","fixed":"54a7e3828df45fdb85ea5a1e79a94d4e95b78823","status":"affected"},{"type":"git","introduced":"648dbccc03a000cd64c2a9d86012d98053545e64","fixed":"6beb23aa2ec4c64f477d1c8e419c7e7da7046f26","status":"affected"},{"type":"git","introduced":"648dbccc03a000cd64c2a9d86012d98053545e64","fixed":"de4929b47683ed22d8c05f68d2d0f0cfd95b90a1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","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/54a7e3828df45fdb85ea5a1e79a94d4e95b78823","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6beb23aa2ec4c64f477d1c8e419c7e7da7046f26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de4929b47683ed22d8c05f68d2d0f0cfd95b90a1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139646","url":"https://www.cve.org/CVERecord?id=CVE-2026-139646","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:40.715Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139646","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139646","licence":"Public domain","modified":"2026-11-30T14:19:48.207Z"}],"updatedAt":"2026-11-30T14:33:14.112Z","epss":{"score":0.00198,"percentile":0.10002,"date":"2026-12-01T12:00:22.000Z"}}