Skip to main content

Linux Kernel CVE-2026-31697

| EUVDEUVD-2026-26506 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. Recon
    Gain local user access
  2. Delivery
    Open /dev/sev device
  3. Exploit
    Issue SEV_GET_ID2 ioctl with undersized buffer
  4. Install
    Trigger firmware length error
  5. C2
    Kernel copies beyond buffer boundary
  6. Execute
    Leak 64 bytes kernel memory to userspace
  7. Impact
    Extract kernel pointers or sensitive data

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

Requires AMD PSP/SEV hardware support with CCP driver loaded and /dev/sev device node present. Attacker needs local authenticated access (PR:L) with sufficient permissions to open and issue ioctl commands to /dev/sev device, typically restricted to root or kvm/libvirt groups in default configurations. Exploitation triggers when userspace provides buffer size smaller than firmware's required SEV ID blob size (typically <96 bytes), causing PSP firmware to return error code indicating insufficient space. Vulnerable code path only executes on this specific error condition, not during normal successful ID retrieval. No user interaction required (UI:N) once attacker has device access. Does NOT affect systems without AMD SEV hardware, systems where CCP driver is not loaded, or configurations with strict /dev/sev access controls preventing low-privilege user access.

Impact

Real-world risk is LOW despite CVSS 7.1 (High severity). Multiple mitigating factors significantly reduce exploitability: (1) Local access required (AV:L) with authenticated low-privilege user (PR:L) - remote exploitation impossible. (2) Requires access to /dev/sev device node, typically restricted to root or virtualization management groups in production environments. (3) Attacker must trigger specific error condition (buffer size mismatch) to reach vulnerable code path, not the normal success case. (4) Information disclosure limited to 64-byte kernel slab data leak - useful for KASLR bypass or adjacent vulnerability exploitation, but not directly system-compromising. (5) EPSS exploitation probability extremely low (0.02%, 5th percentile) confirming no observed mass exploitation. (6) Patches available across all supported stable branches within days of disclosure. However, CVSS Availability impact rated High (A:H) appears misaligned - this is pure information disclosure (C:H/I:N/A:N would be more accurate). The A:H rating may reflect potential for denial-of-service if buffer overflow triggers kernel panic, though the KASAN trace shows controlled read not crash. Priority for patching: MEDIUM - apply during normal maintenance windows for systems running SEV-enabled AMD platforms with untrusted local users. Not urgent for systems without SEV hardware support or with strict /dev/sev access controls.

Exploit ScenarioDerived

A local attacker with standard user privileges on an AMD SEV-enabled system crafts a malicious ioctl call to /dev/sev using the SEV_GET_ID2 command. The attacker intentionally provides a buffer smaller than required (e.g., 32 bytes when firmware needs 96 bytes). The PSP firmware rejects the request with an invalid-length error. Due to missing error handling, the kernel driver copies 64+ bytes from its undersized kernel buffer to userspace, leaking adjacent kernel slab memory. The leaked data may contain kernel pointers (defeating KASLR), cryptographic key material from adjacent allocations, or other sensitive kernel state. The attacker repeats the operation with varying buffer sizes to map kernel memory layout, enabling subsequent privilege escalation via unrelated vulnerabilities that require KASLR bypass.

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

Buffer overflow in Linux kernel CCP SEV driver allows local authenticated users to leak kernel memory to userspace. When the PSP firmware command to retrieve SEV CPU ID fails due to insufficient buffer size, the driver attempts to copy data beyond the allocated kernel buffer boundary, exposing up to 64 bytes of kernel memory. Exploitation requires local access with low privileges (CVSS PR:L) to invoke the SEV ioctl interface. EPSS score is very low (0.02%, 5th percentile) indicating minimal real-world exploitation observed. No public exploit identified at time of analysis, though the KASAN stack trace in the CVE description provides a clear exploitation path. Patches available across multiple stable kernel branches (6.6.136, 6.12.84, 6.18.25, 7.0.2, 7.1-rc1).

RemediationAI

Upgrade to patched kernel versions: 6.6.136+ for 6.6.x series, 6.12.84+ for 6.12.x series, 6.18.25+ for 6.18.x series, 7.0.2+ for 7.0.x series, or 7.1-rc1+ for mainline. Patch commits available at https://git.kernel.org/stable/c/4f685dbfa87c546e51d9dc6cab379d20f275e114 (mainline) and corresponding stable branch commits listed in references. For systems unable to immediately patch, restrict access to /dev/sev device node to only trusted administrative accounts via udev rules or filesystem permissions (chmod 600 /dev/sev, chown root:root /dev/sev). This prevents low-privilege users from reaching the vulnerable ioctl interface. Note this workaround breaks legitimate non-root SEV management tools - acceptable trade-off only for environments not actively using SEV virtualization features. Verify SEV driver usage before applying restrictions: check if /dev/sev exists and review processes accessing it via lsof /dev/sev. No performance impact from applying patches.

Affected VersionsENISA

Linux d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <4f685dbfa87c546e51d9dc6cab379d20f275e114
Linux patch: 0
Linux patch: 6.18.25
Linux d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <06f06d88c05ce176c61fff8c72c372847b0dd2b5
Linux patch: 6.6.136
Linux d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <09427bcb1715fb20a80b6acd5156dbf15ab5c363
Linux d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <1fbac0429a42adec830491757a2b53956dd797ea
Linux 5.2
Linux patch: 7.0.2
Linux d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <2937f17bbeefb8e7608ff1f78cffbeb3d0281e5e
Linux patch: 7.1-rc1
Linux patch: 6.12.84

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 CCP (Cryptographic Co-Processor) SEV (Secure Encrypted Virtualization) driver's ioctl handler function sev_ioctl_do_get_id2(). This driver facilitates communication with AMD PSP (Platform Security Processor) firmware for retrieving SEV platform credentials. The flaw occurs in error handling: when firmware returns an error indicating the provided userspace buffer is too small, the kernel code incorrectly proceeds to copy_to_user() using the firmware's required length rather than the originally allocated buffer size. Since the kernel buffer was allocated based on userspace's (insufficient) length parameter, copying firmware's larger length requirement reads beyond the buffer boundary. KASAN (Kernel Address Sanitizer) detected a slab-out-of-bounds read of 64 bytes in the copy_to_user path, confirming the overflow. The root cause is a missing validation check: the driver should abort the copy operation when __sev_do_cmd_locked() returns an error, but instead continues with stale/invalid size parameters. This is a classic time-of-check-to-time-of-use (TOCTOU) issue in error path handling rather than success path validation.

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 4.7 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 ID to userspace if PSP command failed

When retrieving the ID for the CPU, don't attempt to copy the ID blob 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 64 at addr ffff8881867f5960 by task syz.0.906/24388

CPU: 130 UID: 0 PID: 24388 Comm: syz.0.906 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 12.62.0-0 11/19/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_get_id2+0x361/0x490 ../drivers/crypto/ccp/sev-dev.c:2222 sev_ioctl+0x25f/0x490 ../drivers/crypto/ccp/sev-dev.c:2575 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-31697 is a buffer overflow in the Linux kernel's CCP SEV driver that allows local authenticated users to leak sensitive kernel memory. Organizations running affected kernel versions on systems with SEV-capable AMD processors face exposure of cryptographic keys and other privileged data that could enable privilege escalation or further compromise. This requires immediate patching of Linux kernel infrastructure across data centers and edge systems.

Business Impact: High
Compensating Controls

Apply vendor patch. If patching is delayed: Disable SEV ioctl access via LSM policies or AppArmor/SELinux rules to restrict unprivileged user access to the vulnerable interface; restrict local login access to trusted users only; monitor kernel logs (KASAN warnings) for exploitation attempts. These mitigations reduce but do not eliminate risk.

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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

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