CVE-2026-31698·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: crypto: ccp: Don't attempt to copy PDH cert to userspace if PSP command failed When retrieving the PDH cert, don't attempt to copy the blobs to userspace if the firmware command failed. If the failure was due to an invalid length, i.e. the userspace buffer+length was too small, copying the number of bytes _firmware_ requires will overflow the kernel-allocated buffer and leak data to userspace. BUG: KASAN: slab-out-of-bounds in instrument_copy_to_user ../include/linux/instrumented.h:129 [inline] BUG: KASAN: slab-out-of-bounds in _inline_copy_to_user ../include/linux/uaccess.h:205 [inline] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x66/0xa0 ../lib/usercopy.c:26 Read of size 2084 at addr ffff8885c4ab8aa0 by task syz.0.186/21033 CPU: 51 UID: 0 PID: 21033 Comm: syz.0.186 Tainted: G U O 7.0.0-smp-DEV #28 PREEMPTLAZY Tainted: [U]=USER, [O]=OOT_MODULE Hardware name: Google, Inc. Arcadia_IT_80/Arcadia_IT_80, BIOS 34.84.12-0 11/17/2025 Call Trace: <TASK> dump_stack_lvl+0xc5/0x110 ../lib/dump_stack.c:120 print_address_description ../mm/kasan/report.c:378 [inline] print_report+0xbc/0x260 ../mm/kasan/report.c:482 kasan_report+0xa2/0xe0 ../mm/kasan/report.c:595 check_region_inline ../mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 ../mm/kasan/generic.c:200 instrument_copy_to_user ../include/linux/instrumented.h:129 [inline] _inline_copy_to_user ../include/linux/uaccess.h:205 [inline] _copy_to_user+0x66/0xa0 ../lib/usercopy.c:26 copy_to_user ../include/linux/uaccess.h:236 [inline] sev_ioctl_do_pdh_export+0x3d3/0x7c0 ../drivers/crypto/ccp/sev-dev.c:2347 sev_ioctl+0x2a2/0x490 ../drivers/crypto/ccp/sev-dev.c:2568 vfs_ioctl ../fs/ioctl.c:51 [inline] __do_sys_ioctl ../fs/ioctl.c:597 [inline] __se_sys_ioctl+0x11d/0x1b0 ../fs/ioctl.c:583 do_syscall_x64 ../arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe0/0x800 ../arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e </TASK> WARN if the driver says the command succeeded, but the firmware error code says otherwise, as __sev_do_cmd_locked() is expected to return -EIO on any firwmware error.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31698 scores 7.1 on CVSS, so a successful attack would be serious — but at 0.17%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.0.2
Fixed in: 7.0.2
How to fix this CVE
Update your Linux kernel to version 7.0.2 or later to address a buffer overflow vulnerability in the AMD SEV-SNP PDH certificate export function. This vulnerability allows privileged local attackers to leak kernel memory when retrieving PDH certificates through the SEV ioctl interface. Apply the security patch immediately on systems using kernel versions 6.19 through 7.0.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — verify it is 6.19 or later and earlier than 7.0.2
- Confirm SEV support: grep -i 'sev' /proc/cpuinfo — if SEV flags appear, the system may be affected
- Review kernel module loaded: lsmod | grep ccp — if the ccp (Crypto Co-Processor) module is loaded, the vulnerable code path can be triggered
- Verify patch applied: grep -i 'sev_ioctl_do_pdh_export' /boot/System.map-$(uname -r) && dmesg | grep -i 'kasan\|slab-out-of-bounds' — absence of KASAN warnings indicates successful remediation
FAQ
What is CVE-2026-31698?
CVE-2026-31698 is a buffer overflow vulnerability in the Linux kernel's AMD SEV-SNP cryptographic subsystem. When a userspace application requests a PDH certificate with an undersized buffer, the kernel incorrectly attempts to copy more data than the buffer can hold, leaking kernel memory to unprivileged userspace processes.
Is CVE-2026-31698 being actively exploited?
No, CVE-2026-31698 is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though the vulnerability is easily reproducible by local attackers with sufficient privileges.
What versions of Kernel are affected by CVE-2026-31698?
Linux kernel versions 6.19 through 7.0.1 are affected. Version 7.0.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-31698?
Run 'uname -r' to get your kernel version; if it reports 6.19–7.0.1, you are vulnerable. Then run 'grep CONFIG_AMD_MEM_ENCRYPT /boot/config-$(uname -r)' to confirm SEV/SME support is enabled.
Does Defensia detect CVE-2026-31698?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31698 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/051e51aa55fd4cdc3e8283cf4476aeeb5f563274
- https://git.kernel.org/stable/c/25d9b3446001185484209cf57951f3368462b631
- https://git.kernel.org/stable/c/50808c13452dae43a2c90b1bbbf9daa16501ce70
- https://git.kernel.org/stable/c/78b97e43d0b3e674d9d49ae56937b11e2ba3fcaf
- https://git.kernel.org/stable/c/854d7846e1d29f32f1bbeb2e869e794df12067f6
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31698. Free for 1 server.
Get started free