Skip to content

Stack buffer overflow in toybox readelf scan_elf #607

Description

@eglonnnn

Description

A stack buffer overflow vulnerability in toybox 0.8.12. When readelf_main() processes a crafted ELF file, scan_elf() writes beyond the stack buffer via printf(), causing a stack-buffer-overflow.

Impact

  • Denial-of-service via process crash
  • Any user processing untrusted ELF files with toybox readelf is affected

Reproduction

All materials are available in my research repository:
https://github.com/eglonnnn/opensource-fuzz-vulnerability-research/tree/main/Stack%20buffer%20overflow%20in%20toybox%20readelf%20scan_elf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions