diff options
| author | Osvaldo Janeri Filho <ojanerif@amd.com> | 2026-11-09 23:18:58 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-11-09 23:43:17 +0000 |
| commit | 4b1963dbb36f9928097a6f26cf3aaff88573b77d (patch) | |
| tree | ddad08b31671ffaf43722fd4cf411e03a2a4852e /contrib/kyua/utils/process/systembuf.hpp | |
| parent | ad8f475be2c5920f9a90145c071cba390a4ec6d2 (diff) | |
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
