We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f331b commit 09cb666Copy full SHA for 09cb666
kernel/module.c
@@ -3029,6 +3029,10 @@ static int elf_validity_check(struct load_info *info)
3029
* strings in the section safe.
3030
*/
3031
info->secstrings = (void *)info->hdr + strhdr->sh_offset;
3032
+ if (strhdr->sh_size == 0) {
3033
+ pr_err("empty section name table\n");
3034
+ goto no_exec;
3035
+ }
3036
if (info->secstrings[strhdr->sh_size - 1] != '\0') {
3037
pr_err("ELF Spec violation: section name table isn't null terminated\n");
3038
goto no_exec;
0 commit comments