Skip to main content

Linux Kernel CVE-2026-31521

| EUVDEUVD-2026-24907 MEDIUM
Out-of-bounds Write (CWE-787)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-h7p4-fpxw-m265
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Attacker with module load privilege
  2. Delivery
    Craft ELF module with out-of-bounds st_shndx
  3. Exploit
    Load module via insmod/modprobe
  4. Install
    Kernel simplify_symbols() accesses invalid sechdrs array index
  5. C2
    Page fault in kernel memory
  6. Execute
    Kernel panic triggered
  7. Impact
    System denial of service

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

Exploitation requires local access with permissions to load kernel modules (PR:L) - typically root, a user in the 'sudo' group, or a service account configured to run modprobe/insmod. The attack requires constructing a malformed ELF module file with an out-of-bounds st_shndx value (e.g., SHN_XINDEX/0xffff) in one or more symbol table entries. Remote attackers cannot exploit this directly; network-based module delivery would still require local execution. Legitimate exploitation can also occur unintentionally when modules are compiled with buggy tools (such as affected versions of llvm-objcopy) that generate invalid ELF metadata. Exploitation is not blocked by module signature enforcement (CONFIG_MODULE_SIG) if the attacker can sign the malformed module or if signing is not enabled. Exploitation is completely prevented if dynamic kernel module loading is disabled or restricted to signed modules only.

Impact

This is a local denial-of-service vulnerability with relatively low real-world exploitation probability despite moderate CVSS. CVSS 5.5 (AV:L/AC:L/PR:L/UI:N) correctly reflects that local privileged (PR:L) access is required to load malicious modules, limiting attack surface to local admins or users with sudo privileges. EPSS 0.02% (percentile 7%) is notably low, indicating minimal likelihood of widespread automated exploitation in the wild, which aligns with the PR:L requirement. The vulnerability cannot be exploited remotely and requires deliberate action to load a specially-crafted or corrupted module file. However, this remains a valid DoS vector in multi-tenant environments or systems where unprivileged users can load kernel modules. The availability impact (A:H) is confirmed - successful exploitation causes immediate kernel panic. This is not a critical vulnerability but should be prioritized for patching in systems where module loading permissions are granted to untrusted users.

Exploit ScenarioDerived

A local user with module loading privileges (or an attacker who has compromised a service account with such privileges) crafts a malicious ELF kernel module file with a symbol st_shndx field set to 0xffff or another out-of-bounds value. When the user or service attempts to load this module via insmod or modprobe, the kernel's module loader parses the ELF file and calls simplify_symbols() without validating section index bounds. The unchecked array access to sechdrs[0xffff] triggers a page fault in kernel memory space, causing an immediate kernel panic and system crash. The attacker achieves denial of service without requiring code execution privileges.

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 – Apr 28, 2026

Linux kernel module loader fails to validate ELF section index bounds in simplify_symbols(), causing kernel panic when processing modules with out-of-bounds st_shndx values such as SHN_XINDEX (0xffff). Local privileged attackers can crash the system by loading malformed or legitimately-crafted modules that exploit this missing bounds check, resulting in denial of service. The vulnerability affects all stable kernel versions from 2.6.12 through current releases; patches are available across multiple stable branches (5.15.203+, 6.1.168+, 6.6.131+, 6.12.80+, 6.18.21+, 6.19.11+, 7.0+).

RemediationAI

Apply vendor-released patches corresponding to your kernel stable series: Linux 5.15.203 or later, 6.1.168 or later, 6.6.131 or later, 6.12.80 or later, 6.18.21 or later, 6.19.11 or later, or 7.0 or later. The upstream fix (referenced via git commits 082f15d2887329e0f43fd3727e69365f5bfe5d2c and others in the kernel stable tree) adds explicit bounds checking of st_shndx values in simplify_symbols() before array indexing. For distributions, update to kernel versions that include the fix; consult your distribution's security advisories for specific package versions. If immediate patching is not feasible, restrict module loading privileges via module.sig_enforce enforcement, disable dynamic module loading entirely (set modules.enabled=0 in bootloader if modules are not required), or use SELinux/AppArmor policies to prevent unprivileged users from loading kernel modules. Each mitigation carries trade-offs: disabling dynamic modules reduces flexibility but improves security posture; signature enforcement requires kernel built with CONFIG_MODULE_SIG and proper key management.

Affected VersionsENISA

Linux patch: 6.19.11
Linux patch: 6.18.21
Linux patch: 5.15.203
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ef75dc1401d8e797ee51559a0dd0336c225e1776
Linux patch: 6.6.131
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f9d69d5e7bde2295eb7488a56f094ac8f5383b92
Linux patch: 6.1.168
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6ba6957c640f58dc8ef046981a045da43e47ea23
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ec2b22a58073f80739013588af448ff6e2ab906f
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <082f15d2887329e0f43fd3727e69365f5bfe5d2c
Linux patch: 6.12.80
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <5d16f519b6eb1d071807e57efe0df2baa8d32ad6
Linux patch: 7.0
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4bbdb0e48176fd281c2b9a211b110db6fd94e175

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 vulnerability exists in the kernel's ELF module loading code, specifically in the simplify_symbols() function which processes symbol table entries (Elf_Sym structures) during module initialization. The function iterates through symbols and accesses the sechdrs (section headers) array using the st_shndx field as a direct array index without validating that the index falls within the bounds of the sechdrs array. When st_shndx contains special ELF reserve values like SHN_XINDEX (0xffff) or SHN_HIRESERVE, or when ELF files are corrupted/malformed, the unchecked array access triggers an out-of-bounds memory reference. This is a classic CWE-787 (Out-of-bounds Write) scenario manifesting as a read from invalid kernel memory. The vulnerability is compounded by llvm-objcopy generating incorrect ELF metadata in some cases, as documented in the kernel mailing list discussion.

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
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 - 18:37 NVD
5.5 (MEDIUM)
Patch released
Apr 28, 2026 - 18:26 nvd
Patch available
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
MEDIUM 5.5

DescriptionNVD

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

module: Fix kernel panic when a symbol st_shndx is out of bounds

The module loader doesn't check for bounds of the ELF section index in simplify_symbols():

for (i = 1; i < symsec->sh_size / sizeof(Elf_Sym); i++) { const char *name = info->strtab + sym[i].st_name;

switch (sym[i].st_shndx) { case SHN_COMMON:

[...]

default: /* Divert to percpu allocation if a percpu var. */ if (sym[i].st_shndx == info->index.pcpu) secbase = (unsigned long)mod_percpu(mod); else / HERE --> / secbase = info->sechdrs[sym[i].st_shndx].sh_addr; sym[i].st_value += secbase; break; } }

A symbol with an out-of-bounds st_shndx value, for example 0xffff (known as SHN_XINDEX or SHN_HIRESERVE), may cause a kernel panic:

BUG: unable to handle page fault for address: ... RIP: 0010:simplify_symbols+0x2b2/0x480 ... Kernel panic - not syncing: Fatal exception

This can happen when module ELF is legitimately using SHN_XINDEX or when it is corrupted.

Add a bounds check in simplify_symbols() to validate that st_shndx is within the valid range before using it.

This issue was discovered due to a bug in llvm-objcopy, see relevant discussion for details [1].

[1] https://lore.kernel.org/linux-modules/20251224005752.201911-1-ihor.solodrai@linux.dev/

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
2
1 source
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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: 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

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

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