public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Issue 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=a85441926cb00ec9ce25fb4e2b57efdb=oss-fuzz@monorail-prod.appspotmail.com>
@ 2022-03-17 20:15 ` ClusterFuzz-External via monorail
  2022-03-20 10:04 ` da… via monorail
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: ClusterFuzz-External via monorail @ 2022-03-17 20:15 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 45682 by ClusterFuzz-External: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45682

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

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

Crash Type: Misaligned-address
Crash Address: 
Crash State:
  elf_cvt_Verneed
  __libelf_set_data_list_rdlock
  __elf_getdata_rdlock
  
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=4968585519300608

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 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=a85441926cb00ec9ce25fb4e2b57efdb=oss-fuzz@monorail-prod.appspotmail.com>
  2022-03-17 20:15 ` Issue 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed ClusterFuzz-External via monorail
@ 2022-03-20 10:04 ` da… via monorail
  2022-03-20 10:05 ` da… via monorail
  2022-03-22 14:22 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: da… via monorail @ 2022-03-20 10:04 UTC (permalink / raw)
  To: elfutils-devel


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

UBSAN report
Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-cf18cd9802d6953b96a96cb2364e46ade2dccddc
version_xlate.h:204:22: runtime error: member access within misaligned address 0x000002dfee46 for type 'GElf_Vernaux' (aka 'Elf64_Vernaux'), which requires 4 byte alignment
0x000002dfee46: note: pointer points here
 4c 46 01 02 01 20  00 00 00 04 20 20 20 20  00 00 00 02 20 20 20 20  20 20 20 20 20 20 20 20  00 00
             ^
    #0 0x4c63b6 in elf_cvt_Verneed /src/elfutils/libelf/version_xlate.h:204:22
    #1 0x4be96f in convert_data /src/elfutils/libelf/elf_getdata.c:192:7
    #2 0x4be96f in __libelf_set_data_list_rdlock /src/elfutils/libelf/elf_getdata.c:453:7
    #3 0x4bf17e in __elf_getdata_rdlock /src/elfutils/libelf/elf_getdata.c:560:5
    #4 0x4bf39e in elf_getdata /src/elfutils/libelf/elf_getdata.c:578:12
    #5 0x4c2d88 in elf_compress_gnu /src/elfutils/libelf/elf_compress_gnu.c:150:24
    #6 0x4b2e03 in fuzz_logic_one /src/fuzz-libelf.c:48:15
    #7 0x4b303f in LLVMFuzzerTestOneInput /src/fuzz-libelf.c:81:3
    #8 0x43d812 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #9 0x4293c2 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
    #10 0x42ec2c in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
    #11 0x4575c2 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #12 0x7f20c9b5d0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16
    #13 0x407b0d in _start
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior version_xlate.h:204:22 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 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=a85441926cb00ec9ce25fb4e2b57efdb=oss-fuzz@monorail-prod.appspotmail.com>
  2022-03-17 20:15 ` Issue 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed ClusterFuzz-External via monorail
  2022-03-20 10:04 ` da… via monorail
@ 2022-03-20 10:05 ` da… via monorail
  2022-03-22 14:22 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: da… via monorail @ 2022-03-20 10:05 UTC (permalink / raw)
  To: elfutils-devel


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

(No comment was entered for this change.)

Attachments:
	clusterfuzz-testcase-minimized-fuzz-libelf-4968585519300608  321 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 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed
       [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=a85441926cb00ec9ce25fb4e2b57efdb=oss-fuzz@monorail-prod.appspotmail.com>
                   ` (2 preceding siblings ...)
  2022-03-20 10:05 ` da… via monorail
@ 2022-03-22 14:22 ` ClusterFuzz-External via monorail
  3 siblings, 0 replies; 4+ messages in thread
From: ClusterFuzz-External via monorail @ 2022-03-22 14:22 UTC (permalink / raw)
  To: elfutils-devel

Updates:
	Labels: ClusterFuzz-Verified
	Status: Verified

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

ClusterFuzz testcase 4968585519300608 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:22 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=a85441926cb00ec9ce25fb4e2b57efdb=oss-fuzz@monorail-prod.appspotmail.com>
2022-03-17 20:15 ` Issue 45682 in oss-fuzz: elfutils:fuzz-libelf: Misaligned-address in elf_cvt_Verneed ClusterFuzz-External via monorail
2022-03-20 10:04 ` da… via monorail
2022-03-20 10:05 ` da… via monorail
2022-03-22 14:22 ` 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).