Linux kernel crypto: ccp PEK CSR userspace copy out-of-bounds read
CVE-2026-31699 is a Linux kernel vulnerability in the crypto/ccp subsystem, specifically in the AMD SEV PEK CSR retrieval path handled by sev_ioctl_do_pek_csr() in drivers/crypto/ccp/sev-dev.c. When retrieving the PEK CSR, the kernel could still attempt to copy the CSR blob to userspace even if the underlying PSP firmware command failed. In the failure case where the userspace-supplied buffer length was too small, the firmware path could update the length field to the size required by firmware, while the kernel buffer had only been allocated using the original smaller user-supplied length. A subsequent copy_to_user of the firmware-required size could therefore read past the end of the kernel-allocated slab buffer, producing a slab out-of-bounds read and leaking kernel memory to userspace. The fix prevents copying the CSR blob to userspace when the PSP command fails and adds a warning for inconsistent success reporting between the driver and firmware error code.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Linux kernel vulnerability in crypto ccp CSR copy handling after PSP command failure.
A Linux kernel vulnerability in the crypto CCP component involving copying a CSR to userspace after a failed PSP command.
A Linux kernel information disclosure vulnerability in the crypto/ccp SEV code path when retrieving a PEK CSR. If a PSP firmware command fails due to an invalid user-supplied buffer length, the kernel may copy more data than allocated back to userspace, causing a slab out-of-bounds read and leaking kernel memory.
Linux kernel vulnerability in crypto ccp where failed PSP commands could still trigger copying CSR data to userspace.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.