aboutsummaryrefslogtreecommitdiff
path: root/contrib/kyua/utils/process/systembuf.hpp
diff options
context:
space:
mode:
authorOsvaldo Janeri Filho <ojanerif@amd.com>2026-11-09 23:18:58 +0000
committerMark Johnston <markj@FreeBSD.org>2026-11-09 23:43:17 +0000
commit4b1963dbb36f9928097a6f26cf3aaff88573b77d (patch)
treeddad08b31671ffaf43722fd4cf411e03a2a4852e /contrib/kyua/utils/process/systembuf.hpp
parentad8f475be2c5920f9a90145c071cba390a4ec6d2 (diff)
link_elf_obj: validate section name offsetsHEADmain
A section name offset (sh_name) indexes the section name string table without being checked against shstrcnt, and the result is passed to strcmp(), so a corrupt object causes an out-of-bounds read. Check that the table is NUL-terminated and that every sh_name lies within it, in both the preload and file paths, and reject the object with ENOEXEC. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61338
Diffstat (limited to 'contrib/kyua/utils/process/systembuf.hpp')
0 files changed, 0 insertions, 0 deletions