Page MenuHomeFreeBSD

imgact_elf: Check note body sizes
ClosedPublic

Authored by markj on Oct 13 2025, 12:41 PM.
Tags
None
Referenced Files
F163749324: D53063.id164085.diff
Sat, Jul 25, 7:52 PM
Unknown Object (File)
Thu, Jul 23, 9:52 AM
Unknown Object (File)
Wed, Jul 22, 4:12 PM
Unknown Object (File)
Sun, Jul 19, 6:06 PM
Unknown Object (File)
Sun, Jul 19, 6:06 PM
Unknown Object (File)
Sun, Jul 19, 2:29 AM
Unknown Object (File)
Fri, Jul 17, 3:51 AM
Unknown Object (File)
Thu, Jul 16, 3:24 PM
Subscribers

Details

Summary

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>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67746
Build 64629: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Oct 13 2025, 2:37 PM
kib added inline comments.
sys/kern/imgact_elf.c
2834
2842
markj marked 2 inline comments as done.
  • Fix an unrelated typo
  • Perform a single check
This revision now requires review to proceed.Oct 14 2025, 1:46 PM
This revision is now accepted and ready to land.Oct 14 2025, 2:07 PM
This revision was automatically updated to reflect the committed changes.