public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=9ff75cc524d7cf4f3afc3bed32a44aa1=oss-fuzz@monorail-prod.appspotmail.com>
@ 2022-03-17  6:38 ` ClusterFuzz-External via monorail
  2022-03-20  9:59 ` da… via monorail
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: ClusterFuzz-External via monorail @ 2022-03-17  6:38 UTC (permalink / raw)
  To: elfutils-devel

Status: New
Owner: ----
CC: elfut...@sourceware.org, da...@adalogics.com, evv...@gmail.com, izzeem@google.com 
Labels: ClusterFuzz Reproducible Stability-UndefinedBehaviorSanitizer Engine-libfuzzer OS-Linux Proj-elfutils Reported-2022-03-17
Type: Bug

New issue 45634 by ClusterFuzz-External: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45634

Detailed Report: https://oss-fuzz.com/testcase?key=5069818166902784

Project: elfutils
Fuzzing Engine: libFuzzer
Fuzz Target: fuzz-libdwfl
Job Type: libfuzzer_ubsan_elfutils
Platform Id: linux

Crash Type: Misaligned-address
Crash Address: 
Crash State:
  file_read_elf
  __libelf_read_mmaped_file
  read_file
  
Sanitizer: undefined (UBSAN)

Regressed: https://oss-fuzz.com/revisions?job=libfuzzer_ubsan_elfutils&range=202203161800:202203170000

Reproducer Testcase: https://oss-fuzz.com/download?testcase_id=5069818166902784

Issue filed automatically.

See https://google.github.io/oss-fuzz/advanced-topics/reproducing for instructions to reproduce this bug locally.
When you fix this bug, please
  * mention the fix revision(s).
  * state whether the bug was a short-lived regression or an old bug in any stable releases.
  * add any other useful information.
This information can help downstream consumers.

If you need to contact the OSS-Fuzz team with a question, concern, or any other feedback, please file an issue at https://github.com/google/oss-fuzz/issues. Comments on individual Monorail issues are not monitored.

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=9ff75cc524d7cf4f3afc3bed32a44aa1=oss-fuzz@monorail-prod.appspotmail.com>
  2022-03-17  6:38 ` Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf ClusterFuzz-External via monorail
@ 2022-03-20  9:59 ` da… via monorail
  2022-03-20  9:59 ` da… via monorail
  2022-03-22 14:23 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: da… via monorail @ 2022-03-20  9:59 UTC (permalink / raw)
  To: elfutils-devel


Comment #1 on issue 45634 by da...@adalogics.com: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45634#c1

UBSAN report
	Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-59b5bfa44a73565527249e5a6d13b3c2a9761f29
elf_begin.c:225:21: runtime error: member access within misaligned address 0x7f9d7642404c for type 'Elf64_Shdr', which requires 8 byte alignment
0x7f9d7642404c: note: pointer points here
  02 01 01 20 20 20 20 20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20
              ^
    #0 0x56a2ad in get_shnum /src/elfutils/libelf/elf_begin.c:225:21
    #1 0x56a2ad in file_read_elf /src/elfutils/libelf/elf_begin.c:299:19
    #2 0x567596 in __libelf_read_mmaped_file /src/elfutils/libelf/elf_begin.c:566:14
    #3 0x56c9dd in read_file /src/elfutils/libelf/elf_begin.c:701:28
    #4 0x56c678 in dup_elf /src/elfutils/libelf/elf_begin.c:1067:12
    #5 0x56c678 in lock_dup_elf /src/elfutils/libelf/elf_begin.c:1119:10
    #6 0x56c17e in elf_begin /src/elfutils/libelf/elf_begin.c:0
    #7 0x4b5782 in process_archive /src/elfutils/libdwfl/offline.c:251:17
    #8 0x4b5782 in process_file /src/elfutils/libdwfl/offline.c:125:14
    #9 0x4b5e9f in __libdwfl_report_offline /src/elfutils/libdwfl/offline.c:287:22
    #10 0x4b5e9f in dwfl_report_offline /src/elfutils/libdwfl/offline.c:316:10
    #11 0x4b2f88 in LLVMFuzzerTestOneInput /src/fuzz-libdwfl.c:47:22
    #12 0x43da32 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #13 0x4295e2 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
    #14 0x42ee4c in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
    #15 0x4577e2 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #16 0x7f9d760b90b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16
    #17 0x407d2d in _start
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior elf_begin.c:225:21 in

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=9ff75cc524d7cf4f3afc3bed32a44aa1=oss-fuzz@monorail-prod.appspotmail.com>
  2022-03-17  6:38 ` Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf ClusterFuzz-External via monorail
  2022-03-20  9:59 ` da… via monorail
@ 2022-03-20  9:59 ` da… via monorail
  2022-03-22 14:23 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: da… via monorail @ 2022-03-20  9:59 UTC (permalink / raw)
  To: elfutils-devel


Comment #2 on issue 45634 by da...@adalogics.com: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45634#c2

(No comment was entered for this change.)

Attachments:
	clusterfuzz-testcase-minimized-fuzz-libdwfl-5069818166902784  140 bytes

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=9ff75cc524d7cf4f3afc3bed32a44aa1=oss-fuzz@monorail-prod.appspotmail.com>
                   ` (2 preceding siblings ...)
  2022-03-20  9:59 ` da… via monorail
@ 2022-03-22 14:23 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: ClusterFuzz-External via monorail @ 2022-03-22 14:23 UTC (permalink / raw)
  To: elfutils-devel

Updates:
	Labels: ClusterFuzz-Verified
	Status: Verified

Comment #3 on issue 45634 by ClusterFuzz-External: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45634#c3

ClusterFuzz testcase 5069818166902784 is verified as fixed in https://oss-fuzz.com/revisions?job=libfuzzer_ubsan_elfutils&range=202203210605:202203211200

If this is incorrect, please file a bug on https://github.com/google/oss-fuzz/issues/new

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-22 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=9ff75cc524d7cf4f3afc3bed32a44aa1=oss-fuzz@monorail-prod.appspotmail.com>
2022-03-17  6:38 ` Issue 45634 in oss-fuzz: elfutils:fuzz-libdwfl: Misaligned-address in file_read_elf ClusterFuzz-External via monorail
2022-03-20  9:59 ` da… via monorail
2022-03-20  9:59 ` da… via monorail
2022-03-22 14:23 ` ClusterFuzz-External via monorail

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).