5.5

CVE-2026-31521: module: Fix kernel panic when a symbol st_shndx is out of bounds

Modified
AliasesUBUNTU-CVE-2026-31521DEBIAN-CVE-2026-31521
Published 22-04-2026Last modified 15-10-2026

Vulnerability summary

CVE-2026-31521 is a medium (CVSS 5.5) Out-of-bounds Write vulnerability in linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.13%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 33 · Related 31

Timeline

  1. 22-04-2026
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

Description

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/

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

Decrease -0.04 pp

From 0.17% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu157 products
  • linuxAll versions (No fix recorded) | < 5.15.0-186.196 | < 6.8.0-136.136
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1112.119 | < 6.8.0-1061.64
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5d16f519b6eb1d071807e57efe0df2baa8d32ad6 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4bbdb0e48176fd281c2b9a211b110db6fd94e175 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 082f15d2887329e0f43fd3727e69365f5bfe5d2c | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ec2b22a58073f80739013588af448ff6e2ab906f | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ef75dc1401d8e797ee51559a0dd0336c225e1776 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6ba6957c640f58dc8ef046981a045da43e47ea23 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f9d69d5e7bde2295eb7488a56f094ac8f5383b92 | 2.6.12
  • linux_kernel≥ 2.6.12.1, < 5.15.203 | ≥ 5.16, < 6.1.168 | ≥ 6.2, < 6.6.131 | ≥ 6.7, < 6.12.80 | ≥ 6.13, < 6.18.21 | ≥ 6.19, < 6.19.11 | 2.6.12 | 2.6.12:rc2 | 2.6.12:rc3 | 2.6.12:rc4 | 2.6.12:rc5 | 7.0:rc1 | 7.0:rc2
Debian1 product
  • linux< 6.1.170-1 | < 6.12.85-1 | < 6.19.11-1

3 vendors · 160 products

References

42 links
Show all 42 references