Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
High

Linux kernel crypto/ccp SEV PDH export out-of-bounds read information leak

IdentifiersCVE-2026-31698CWE-125

CVE-2026-31698 is a vulnerability in the Linux kernel crypto/ccp SEV driver, specifically in the PDH certificate export path handled by sev_ioctl_do_pdh_export() in drivers/crypto/ccp/sev-dev.c. When retrieving the PDH certificate, the kernel could attempt to copy PDH certificate blobs to userspace even if the underlying PSP firmware command failed. In the failure case where the user-supplied buffer length was too small, firmware could report a larger required size than the kernel originally allocated. The kernel then used that firmware-reported length during copy_to_user(), causing a slab out-of-bounds read from the kernel-allocated buffer. KASAN reports show the issue manifesting as a slab-out-of-bounds read in instrument_copy_to_user/_copy_to_user on the sev_ioctl_do_pdh_export() path. The upstream fix prevents copying PDH certificate data to userspace when the PSP command fails and adds a warning for inconsistent success/error reporting from the firmware command path.

Share:
For your environment

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.

ANALYST BRIEF

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.

Successful exploitation can cause disclosure of kernel memory to userspace via an out-of-bounds read during PDH certificate export. The primary impact is information leakage of adjacent kernel heap contents. The provided scoring context also indicates potential availability impact from triggering the faulting condition, but the directly described and verified consequence in the supplied content is kernel data exposure to a local caller.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by restricting local access to the SEV ioctl interface and limiting use of the affected PDH export functionality to trusted privileged users only. Minimize availability of /dev/sev or equivalent access paths to untrusted local users, and avoid allowing untrusted code to invoke the vulnerable PDH certificate retrieval ioctl on affected systems until patched. These are temporary risk-reduction measures only; the proper mitigation is to install a fixed kernel.

Remediation

Patch, then assume compromise.

Upgrade to a Linux kernel release containing the upstream fix for CVE-2026-31698. The fix changes the crypto/ccp SEV PDH export logic so that PDH certificate blobs are not copied to userspace if the PSP firmware command fails, and it warns on inconsistent driver-success versus firmware-error conditions. Vendor kernel updates referenced in the supplied content include SUSE advisories such as SUSE-SU-2026:2630-1, SUSE-SU-2026:2631-1, SUSE-SU-2026:2632-1, SUSE-SU-2026:2638-1, and SUSE-SU-2026:2658-1; apply the appropriate vendor-maintained kernel package for the affected distribution.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

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.

VendorProductType
LinuxLinux Kerneloperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.