Skip to main content

Linux Kernel CCP CVE-2026-31698

| EUVDEUVD-2026-26507 HIGH
Out-of-bounds Write (CWE-787)
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.1
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local authenticated access
  2. Delivery
    Open /dev/sev device
  3. Exploit
    Send crafted ioctl with undersized buffer
  4. Execution
    Firmware returns error with required size
  5. Persist
    Driver copies beyond buffer bounds
  6. Impact
    Kernel memory leaked to attacker userspace

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Local authenticated access to a Linux system with AMD SEV/PSP hardware and loaded CCP kernel module is required. Attacker must have permissions to access /dev/sev device node (typically root or SEV-admin group membership). Target system must be running vulnerable kernel versions 4.16 through unpatched 7.0.x. Exploitation requires the ccp driver module to be loaded and PSP firmware operational. Attack works against default configurations of Linux distributions on AMD EPYC or Ryzen PRO processors with SEV support. User interaction is not required (UI:N). Exploitation is limited to systems where SEV confidential computing features are enabled or available, excluding Intel-based systems and AMD platforms without PSP hardware.

Impact

Real-world exploitation risk is low based on converging signals. CVSS 7.1 (HIGH) reflects local attack vector requiring authenticated local user (AV:L/AC:L/PR:L), with confidentiality and availability impact but no integrity compromise. However, EPSS score of 0.02% (5th percentile) indicates extremely low observed exploitation activity in the wild. No CISA KEV listing confirms this is not being actively exploited at scale. The vulnerability requires specific conditions: local authenticated access, AMD SEV-capable hardware, loaded CCP driver module, and deliberate triggering of the PDH export ioctl with malformed buffer parameters. Attack complexity is low once conditions are met, but the prerequisite of AMD PSP/SEV hardware significantly limits attack surface compared to generic kernel vulnerabilities. The information disclosure is bounded to kernel heap contents adjacent to the allocated buffer (KASAN detected 2084-byte read), making it less severe than arbitrary kernel memory read primitives. Primary concern is for multi-tenant environments (cloud, shared systems) with AMD SEV where local users could potentially extract cryptographic material or kernel address space layout information. Availability impact (A:H in CVSS) stems from potential kernel crashes when triggering the out-of-bounds condition. The Google-originated report and comprehensive patch coverage across stable branches indicate vendor responsiveness. Priority should be moderate for AMD SEV deployments, low for systems without SEV hardware or where local user access is already fully trusted.

Exploit ScenarioDerived

A local authenticated attacker on an AMD SEV-capable system opens /dev/sev and issues a specially crafted ioctl call to sev_ioctl_do_pdh_export() with an intentionally undersized buffer (e.g., 100 bytes when firmware requires 2084 bytes). The firmware command fails with an invalid-length error, but the vulnerable driver code proceeds to copy_to_user() using the firmware's required size (2084 bytes) against the kernel's smaller allocated buffer, triggering an out-of-bounds read that leaks up to 1984 bytes of adjacent kernel heap memory containing potentially sensitive data such as cryptographic keys, kernel pointers, or other users' data.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 03, 2026

Information disclosure in Linux kernel's AMD Cryptographic Coprocessor (CCP) driver allows local authenticated attackers to leak kernel memory to userspace via out-of-bounds read. When retrieving PDH certificates through SEV ioctl, the driver incorrectly copies data to userspace even after firmware command failures, potentially reading 2084+ bytes beyond allocated buffer boundaries. EPSS score of 0.02% (5th percentile) indicates minimal observed exploitation probability. Vendor patches available across multiple stable kernel branches (6.6.136, 6.12.84, 6.18.25, 7.0.2, 7.1-rc1) per upstream commits.

RemediationAI

Upgrade to patched Linux kernel versions: 7.1-rc1 or later for mainline, 7.0.2+ for 7.0.x stable branch, 6.18.25+ for 6.18.x branch, 6.12.84+ for 6.12.x branch, or 6.6.136+ for long-term support 6.6.x branch. Patches available from upstream commits at https://git.kernel.org/stable/c/051e51aa55fd4cdc3e8283cf4476aeeb5f563274 (and associated stable branch backports). If immediate patching is not feasible, restrict access to /dev/sev device node to only fully trusted administrative users via udev rules or filesystem permissions (chmod 600 /dev/sev, chown root:root /dev/sev) to prevent local unprivileged exploitation. Note this mitigation reduces attack surface but does not eliminate risk from local privileged users. Alternatively, blacklist the ccp kernel module (echo 'blacklist ccp' >> /etc/modprobe.d/blacklist-ccp.conf) if AMD SEV functionality is not required, though this disables all SEV/PSP capabilities including confidential computing features. No SEV firmware update is required as the vulnerability is purely in the kernel driver logic. Verify patch application by checking kernel version (uname -r) matches patched releases or examining git commit history of installed kernel source.

Affected VersionsENISA

Linux 76a2b524a4b1d6dc0f2421f9854a01d55d5e5436 <e76239fed3cffd6d304d8ca3ce23984fd24f57d3
Linux 4.16
Linux patch: 0
Linux patch: 7.0.2
Linux 76a2b524a4b1d6dc0f2421f9854a01d55d5e5436 <50808c13452dae43a2c90b1bbbf9daa16501ce70
Linux patch: 6.18.25
Linux 76a2b524a4b1d6dc0f2421f9854a01d55d5e5436 <78b97e43d0b3e674d9d49ae56937b11e2ba3fcaf
Linux 76a2b524a4b1d6dc0f2421f9854a01d55d5e5436 <b5c14bd4da1f376f385722fe1da993f1edab6472
Linux patch: 6.6.136
Linux 76a2b524a4b1d6dc0f2421f9854a01d55d5e5436 <051e51aa55fd4cdc3e8283cf4476aeeb5f563274
Linux patch: 6.12.84
Linux patch: 7.1-rc1

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the AMD Secure Encrypted Virtualization (SEV) Platform Security Processor (PSP) driver code within the Linux kernel's CCP (Cryptographic Coprocessor) subsystem. Specifically, the sev_ioctl_do_pdh_export() function in drivers/crypto/ccp/sev-dev.c fails to validate firmware command success before copying PDH (Platform Diffie-Hellman) certificate blobs to userspace. When userspace provides an undersized buffer, the firmware command returns an error indicating required buffer size, but the kernel driver proceeds with the copy operation using the firmware-specified length rather than the actual allocated buffer size. This triggers a KASAN-detected slab-out-of-bounds read condition, where copy_to_user() attempts to read beyond the kernel-allocated buffer, potentially exposing adjacent kernel memory contents. The vulnerability affects the SEV API used for confidential computing workloads on AMD platforms. The root cause is inadequate error checking in the ioctl handler path, where __sev_do_cmd_locked() should return -EIO on firmware errors, but the caller doesn't verify this before proceeding with memory operations.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
7.1 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 15:02 EUVD
CVE Published
May 01, 2026 - 14:16 nvd
HIGH 7.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31698 is a Linux kernel memory disclosure vulnerability in AMD's CCP driver that allows authenticated local users to read sensitive kernel memory through a buffer over-read flaw in SEV certificate handling. This affects organizations running AMD EPYC or Ryzen systems with SEV support, potentially exposing cryptographic keys and system secrets to unprivileged local users who already have system access.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Until patching is complete, restrict local system access through PAM controls and SELinux/AppArmor profiles to limit unprivileged user privileges; disable SEV if operationally feasible for non-critical workloads; monitor kernel logs for potential memory disclosure attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy