HomeFreeBSD

imgact_elf: Check note body sizes

Description

imgact_elf: Check note body sizes

In parse_notes we validate that the note name fits within the note
buffer, but we do not do the same for the note data, so there is some
potential for an OOB read in the note handler. Add a bounds check.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Reviewed by: kib, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D53063

Details

Provenance
markjAuthored on Wed, Oct 15, 8:14 PM
Reviewer
kib
Differential Revision
D53063: imgact_elf: Check note body sizes
Parents
rG8596810d02a1: tests/carp: kill routed(8) before destroying interfaces
Branches
Unknown
Tags
Unknown