CVE-2026-139646
publishedcrypto: ccp - fix SFS ioctl race against device teardown
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux648dbccc03a000cd64c2a9d86012d98053545e64 to < 54a7e3828df45fdb85ea5a1e79a94d4e95b78823 · 648dbccc03a000cd64c2a9d86012d98053545e64 to < 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26 · 648dbccc03a000cd64c2a9d86012d98053545e64 to < de4929b47683ed22d8c05f68d2d0f0cfd95b90a1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - fix SFS ioctl race against device teardown sfs_ioctl() reads psp_master->sfs_data and caches it in sfs_dev before taking sfs_ioctl_mutex, while sfs_dev_destroy() frees sfs_dev->page and sfs_dev->command_buf with no locking at all and only clears psp->sfs_data afterwards. A call to sfs_ioctl() that reads sfs_data just before sfs_dev_destroy() runs will still acquire the mutex and go on to use the now-freed command buffer in send_sfs_cmd(). Have both functions take sfs_ioctl_mutex before touching psp->sfs_data, so a call that is already using sfs_dev completes before teardown can free it, and a call arriving after teardown sees sfs_data cleared and returns -ENODEV instead of racing it.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 648dbccc03a000cd64c2a9d86012d98053545e64 to < 54a7e3828df45fdb85ea5a1e79a94d4e95b78823 (affected · git)648dbccc03a000cd64c2a9d86012d98053545e64 to < 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26 (affected · git)648dbccc03a000cd64c2a9d86012d98053545e64 to < de4929b47683ed22d8c05f68d2d0f0cfd95b90a1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
crypto: ccp - fix SFS ioctl race against device teardown
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1839e067091b02cb661d77c23cc655bcd1a2d9e3d15a1b8d1deb344a2cbdf754
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record