{"id":"CVE-2026-139646","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:48.207","lastModified":"2026-11-30T14:19:48.207","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/crypto/ccp/sfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"648dbccc03a000cd64c2a9d86012d98053545e64","lessThan":"54a7e3828df45fdb85ea5a1e79a94d4e95b78823","versionType":"git","status":"affected"},{"version":"648dbccc03a000cd64c2a9d86012d98053545e64","lessThan":"6beb23aa2ec4c64f477d1c8e419c7e7da7046f26","versionType":"git","status":"affected"},{"version":"648dbccc03a000cd64c2a9d86012d98053545e64","lessThan":"de4929b47683ed22d8c05f68d2d0f0cfd95b90a1","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/crypto/ccp/sfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/54a7e3828df45fdb85ea5a1e79a94d4e95b78823","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6beb23aa2ec4c64f477d1c8e419c7e7da7046f26","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/de4929b47683ed22d8c05f68d2d0f0cfd95b90a1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}