Files
yara/libyara
jmestwa-coder fdbfb28b90 avoid pointer wrap for large index in str_table_entry (#2217)
str_table_entry resolves an ELF string-table entry from a 32-bit name field read out of the file (section->name, sym->name, dynsym->name):

it forms str_table_base + index, then only checks the pointer against the upper limit
index is capped at 0x7fffffff by the index < 0 check, but on a 32-bit build str_table_base + index can wrap below the base when the mapping sits high in the address space
the wrapped pointer is under str_table_limit so the check passes and strnlen then reads out of bounds
Compare index against the table size before forming the pointer.
2026-07-06 09:39:06 +02:00
..
2026-06-01 12:47:25 +02:00
2023-02-22 14:18:20 +01:00
2024-03-23 21:22:08 +01:00
2025-02-11 13:27:14 +01:00
2022-10-14 10:25:32 +02:00
2023-08-14 22:43:34 +02:00
2022-09-23 12:05:46 +02:00
2024-05-23 13:44:29 +02:00
2024-05-23 13:43:52 +02:00
2023-12-10 20:27:05 +01:00
2023-12-10 20:27:05 +01:00
2021-12-10 11:09:52 +01:00
2014-07-01 10:49:00 +02:00