Re: [PATCH] module: Fix kernel panic when a symbol st_shndx is out of bounds

Sami Tolvanen
2026-02-24T18:34:08Z

On Tue, 30 Dec 2025 10:32:08 -0800, Ihor Solodrai wrote:
> 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:
>
> [...]

Applied to modules-next, thanks!

[1/1] module: Fix kernel panic when a symbol st_shndx is out of bounds
commit: f9d69d5e7bde2295eb7488a56f094ac8f5383b92

Best regards,

Sami