RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1643812 - There is a heap-buffer-overflow on address 0x61200000be50 in libsndfile.
Summary: There is a heap-buffer-overflow on address 0x61200000be50 in libsndfile.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libsndfile
Version: 7.7-Alt
Hardware: All
OS: All
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1630910 1660473
TreeView+ depends on / blocked
 
Reported: 2018-10-29 04:02 UTC by shuitao gan
Modified: 2020-06-10 10:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-10 10:21:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Trigger by "./sndfile-convert POC0" (6.48 KB, application/x-rar)
2018-10-29 04:02 UTC, shuitao gan
no flags Details

Description shuitao gan 2018-10-29 04:02:33 UTC
Created attachment 1498401 [details]
Trigger by "./sndfile-convert  POC0"

version: libsndfile
Summary: 

There is a heap-buffer-overflow on address 0x61200000be50 in libsndfile.

Description:

The asan debug is as follows:

$./sndfile-convert POC0 a.wav

==122624==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61200000be50 at pc 0x5e96a0 bp 0x7ffd57e9efb0 sp 0x7ffd57e9efa8
READ of size 4 at 0x61200000be50 thread T0
==122624==WARNING: Trying to symbolize code, but external symbolizer is not initialized!
    #0 0x5e969f (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x5e969f)
    #1 0x4cb046 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x4cb046)
    #2 0x4863e9 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x4863e9)
    #3 0x483b5e (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x483b5e)
    #4 0x7f2ec5cf6a3f (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
    #5 0x47ede8 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x47ede8)

0x61200000be50 is located 0 bytes to the right of 272-byte region [0x61200000bd40,0x61200000be50)
allocated by thread T0 here:
    #0 0x468dc9 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x468dc9)
    #1 0x66ce6d (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x66ce6d)
    #2 0x4ad66f (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x4ad66f)
    #3 0x485384 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x485384)
    #4 0x483690 (/home/company/real_sanitize/poc_check/libsndfile/sndfile-convert_addr+0x483690)
    #5 0x7f2ec5cf6a3f (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 ??
Shadow bytes around the buggy address:
  0x0c247fff9770: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c247fff9780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c247fff9790: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c247fff97a0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c247fff97b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c247fff97c0: 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa
  0x0c247fff97d0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c247fff97e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c247fff97f0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
  0x0c247fff9800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c247fff9810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:     fa
  Heap right redzone:    fb
  Freed heap region:     fd
  Stack left redzone:    f1
  Stack mid redzone:     f2
  Stack right redzone:   f3
  Stack partial redzone: f4
  Stack after return:    f5
  Stack use after scope: f8
  Global redzone:        f9
  Global init order:     f6
  Poisoned by user:      f7
  ASan internal:         fe
==122624==ABORTING




$./sndfile-convert POC0 a.wav
Segmentation fault

Comment 2 shuitao gan 2018-10-29 04:03:37 UTC
version 1.0.28

Comment 3 Rahul Joshi 2018-12-16 10:40:51 UTC
Which version of libsndfile made this crash.
Actually, I didn't get crash in version "libsndfile-1.0.28".
Could u please explain this?
Ref: https://nvd.nist.gov/vuln/detail/CVE-2018-19758

Thanks in advance.

Comment 4 Rahul Joshi 2018-12-16 10:46:33 UTC
I downloaded the version from this Github resource as follow.
https://github.com/erikd/libsndfile/releases (1.0.28)

Comment 5 Rahul Joshi 2018-12-16 11:07:00 UTC
I got the crash now and Sry for the noise in the channel.
Thanks

Comment 7 Michal Hlavinka 2020-06-10 10:21:18 UTC
The Red Hat Enterprise Linux 7 life cycle has entered Maintenance Support Phase, which means that only qualified Critical and Important Security errata advisories (RHSAs) and some Urgent Priority Bug Fix errata advisories (RHBAs) will be released as they become available.  Unfortunately, this issue was not selected to be included in Red Hat Enterprise Linux 7. We will now close this issue. We recommend moving the request to Red Hat Enterprise Linux 8 if applicable.

See the Red Hat Enterprise Linux Life Cycle for more details:
https://access.redhat.com/support/policy/updates/errata/


Note You need to log in before you can comment on or make changes to this bug.