# CVE-2026-139646: crypto: ccp - fix SFS ioctl race against device teardown

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:40.715Z
- **Modified:** 2026-11-30T14:19:48.207Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can trigger the SFS ioctl during device teardown can race it to use freed command buffers in the Linux kernel's AMD CCP driver.

## Who should check

- Anyone running Linux \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 54a7e3828df45fdb85ea5a1e79a94d4e95b78823; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< de4929b47683ed22d8c05f68d2d0f0cfd95b90a1
- Anyone running Linux 6.18

## 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.

## Affected and fixed versions

- Linux: \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 54a7e3828df45fdb85ea5a1e79a94d4e95b78823; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< de4929b47683ed22d8c05f68d2d0f0cfd95b90a1 (cvelist)
- Linux: 6.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139646. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139646.md
Affected: Linux >= 648dbccc03a000cd64c2a9d86012d98053545e64, < 54a7e3828df45fdb85ea5a1e79a94d4e95b78823; >= 648dbccc03a000cd64c2a9d86012d98053545e64, < 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26; >= 648dbccc03a000cd64c2a9d86012d98053545e64, < de4929b47683ed22d8c05f68d2d0f0cfd95b90a1; Linux 6.18
Fixed in: Linux 54a7e3828df45fdb85ea5a1e79a94d4e95b78823, Linux 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139646 being exploited?

There is no confirmed exploitation: CVE-2026-139646 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139646?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139646?

Linux \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 54a7e3828df45fdb85ea5a1e79a94d4e95b78823; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26; \>= 648dbccc03a000cd64c2a9d86012d98053545e64, \< de4929b47683ed22d8c05f68d2d0f0cfd95b90a1; Linux 6.18.

### Is there a fix for CVE-2026-139646?

Yes. Fixed in Linux 54a7e3828df45fdb85ea5a1e79a94d4e95b78823, Linux 6beb23aa2ec4c64f477d1c8e419c7e7da7046f26. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139646?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/54a7e3828df45fdb85ea5a1e79a94d4e95b78823>
- other: <https://git.kernel.org/stable/c/6beb23aa2ec4c64f477d1c8e419c7e7da7046f26>
- other: <https://git.kernel.org/stable/c/de4929b47683ed22d8c05f68d2d0f0cfd95b90a1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139646>

HTML: <https://flawdb.com/CVE-2026-139646> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139646>
