Skip to main content

Linux Kernel CVE-2026-31590

| EUVDEUVD-2026-25483 MEDIUM
2026-04-24 Linux GHSA-5gvm-8x7g-h7xx
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain kvm group membership on AMD SEV host
  2. Delivery
    Open /dev/kvm and create KVM VM
  3. Exploit
    Craft kvm_enc_region with size=0xffffffffffffffff
  4. Install
    Submit KVM_MEMORY_ENCRYPT_REG_REGION ioctl
  5. C2
    Integer overflow in npages calculation bypasses dead bounds check
  6. Execute
    WARN_ON fires in sev_pin_memory
  7. Impact
    Kernel panic crashes host if panic_on_warn=1

Vulnerability Assessment

Exploitation Conditions

The following conditions must all be met: the attacker must have local access with permissions to open /dev/kvm (typically requires membership in the 'kvm' group or CAP_SYS_ADMIN equivalent - not achievable by arbitrary unprivileged users on a standard system); the host CPU must support AMD SEV (not Intel, not non-SEV AMD); the kernel must have CONFIG_KVM_AMD_SEV compiled in. The denial-of-service impact (kernel panic) is only achieved when the kernel boot parameter panic_on_warn=1 is active - on default kernels, the WARN produces a stack trace in dmesg but does not crash the system. The worthless bounds check (addr/size > ULONG_MAX on 64-bit) is a required architectural precondition that makes the overflow reachable; this check provides no actual protection on 64-bit platforms. Exploitation is limited to local authenticated sessions - no network vector exists.

Impact

The CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects the local-only, low-complexity nature of this flaw. EPSS is 0.02% at the 5th percentile, confirming negligible exploitation probability at scale. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified beyond the trivial reproducer provided in the CVE description itself. The real-world severity is heavily conditional: on kernels where panic_on_warn is 0 (the common default), the worst outcome is a logged WARN and potential misbehavior in memory pinning - not a crash. On hardened or debugging kernels where panic_on_warn=1, this becomes a reliable local DoS. Additionally, exploitation requires the attacker to have access to /dev/kvm and the system to be running on AMD hardware with SEV capability enabled. The tag 'Buffer Overflow' from available intelligence is misleading and should not inflate perceived severity - this is an integer overflow triggering a reachable assertion, with no memory corruption.

Exploit ScenarioDerived

A local user with kvm group membership or equivalent /dev/kvm access creates a KVM virtual machine and submits a crafted KVM_MEMORY_ENCRYPT_REG_REGION ioctl with a kvm_enc_region struct where size is set to 0xffffffffffffffff (-1ul). The kernel's sev_pin_memory() computes npages from this value, causing a signed integer overflow, which triggers the WARN_ON. On a production hypervisor host with panic_on_warn=1 - common in certain cloud provider kernel configurations - this immediately crashes the host, taking down all co-resident virtual machines. The CVE description itself provides a working code skeleton for this scenario.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
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 – Jul 24, 2026

Denial-of-service in the Linux kernel KVM SEV subsystem allows a local low-privileged user to trivially trigger a kernel WARN in sev_pin_memory() by submitting a crafted KVM_MEMORY_ENCRYPT_REG_REGION ioctl with an oversized region (e.g., size set to the maximum u64 value), causing npages to overflow a signed int. On kernels configured with panic_on_warn=1, this directly results in a kernel panic and full system crash. No public exploit has been identified at time of analysis and CISA has not added this to the KEV catalog, though the CVE description itself provides a working proof-of-concept reproducer.

RemediationAI

Upgrade to a patched Linux kernel release: 6.12.83, 6.18.24, 6.19.14, or 7.0.1, as documented by EUVD-2026-25483 and kernel.org stable commits. Ubuntu users should apply the update referenced in USN-8488-1 at https://ubuntu.com/security/notices/USN-8488-1. For systems where immediate kernel upgrade is not feasible, compensating controls include: restricting access to /dev/kvm to only trusted users and administrators (removes the PR:L attack surface entirely - side effect is blocking all unprivileged VM creation); disabling KVM module loading via modprobe blacklist if virtualization is not required (trade-off: disables all KVM-based workloads); and ensuring panic_on_warn=0 is set in kernel boot parameters (limits DoS to a logged warning rather than a crash, though memory pinning behavior may still be incorrect). The most actionable immediate mitigation for non-hypervisor hosts is confirming panic_on_warn is not enabled.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ab423e5892826202a660b5ac85d1125b0e8301a5
Linux patch: 6.18.24
Linux patch: 6.12.83
Linux patch: 7.0.1
Linux patch: 6.19.14
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1cba4dcd795daf6d257122779fb6a349edf03914
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <28cc13ca20431b127d42d84ba10898d03e2c8267
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c29ff288a2d97a6f4640a498a367cf0eb91312eb

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The affected code resides in the Linux kernel's KVM (Kernel-based Virtual Machine) subsystem, specifically in the AMD SEV (Secure Encrypted Virtualization) memory pinning path. When a guest VM owner calls the KVM_MEMORY_ENCRYPT_REG_REGION ioctl with a kvm_enc_region struct, the kernel's sev_pin_memory() function computes npages as an int derived from the user-supplied u64 size field. On 64-bit platforms, the upstream bounds check - validating addr and size against ULONG_MAX - is effectively a no-op because both fields are u64 and cannot exceed ULONG_MAX by definition, meaning arbitrarily large values pass through unchecked. This integer narrowing from u64 to int causes npages to wrap, hitting a WARN_ON macro. The CVE is tagged Buffer Overflow, though the precise root cause is integer overflow/narrowing (closer to CWE-190 or CWE-617 Reachable Assertion) rather than a classic memory buffer overrun. CPE cpe:2.3:a:linux:linux:* confirms all Linux kernel versions prior to the patch commits are in scope.

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

AV:L and PR:L confirmed by /dev/kvm access requirement; A:H reflects kernel panic potential under panic_on_warn; C:N and I:N because no memory disclosure or write primitive exists.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
CVSS changed
Apr 28, 2026 - 20:53 NVD
5.5 (MEDIUM)
Patch released
Apr 28, 2026 - 20:38 nvd
Patch available
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
MEDIUM 5.5

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

KVM: SEV: Drop WARN on large size for KVM_MEMORY_ENCRYPT_REG_REGION

Drop the WARN in sev_pin_memory() on npages overflowing an int, as the WARN is comically trivially to trigger from userspace, e.g. by doing:

struct kvm_enc_region range = { .addr = 0, .size = -1ul, };

__vm_ioctl(vm, KVM_MEMORY_ENCRYPT_REG_REGION, &range);

Note, the checks in sev_mem_enc_register_region() that presumably exist to verify the incoming address+size are completely worthless, as both "addr" and "size" are u64s and SEV is 64-bit only, i.e. they _can't_ be greater than ULONG_MAX. That wart will be cleaned up in the near future.

if (range->addr > ULONG_MAX || range->size > ULONG_MAX) return -EINVAL;

Opportunistically add a comment to explain why the code calculates the number of pages the "hard" way, e.g. instead of just shifting @ulen.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
High
Linux kernel is near-universal, but AMD SEV narrows scope
Data Quality
6 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
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.

Vendor StatusVendor

SUSE

Severity: Medium
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

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