CVE Database›Document archive›CVE-2026-31521

CVE-2026-31521

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

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · April 22, 2026

Updated · June 28, 2026

Description

A flaw was found in the Linux kernel. The module loader, specifically in the simplify_symbols() function, does not properly validate the bounds of the ELF (Executable and Linkable Format) section index. An attacker could craft a malicious module with an out-of-bounds st_shndx value, leading to a kernel panic and a Denial of Service (DoS) on the system.

Statement

Upstream bounds-checks st_shndx before indexing sechdrs[], covering corrupted or tool-generated ELF seen in the wild. Red Hat reminds customers that loading unsigned or untrusted kernel modules is outside supported policy; nonetheless the hardening prevents fatal faults. Consume patched kernels; there is no safe unload mitigation for the loader itself.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-1285 · Improper Validation of Specified Index, Position, or Offset in Input