Bug 1474019

Summary: Heap-overflow in the sassc of libsass library
Product: [Fedora] Fedora Reporter: hongphi.pham95 <hongphi.pham95>
Component: sasscAssignee: Aurelien Bompard <aurelien>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: aurelien
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-30 17:43:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1474937    
Attachments:
Description Flags
Triggered by "./sassc POC none

Description hongphi.pham95 2017-07-23 06:55:13 UTC
Created attachment 1303012 [details]
Triggered by "./sassc POC

Description of problem:


Version-Release number of selected component (if applicable):

<= latest version

How reproducible:

./sassc POC

Steps to Reproduce:
➜  bin git:(master) ./sassc POC
=================================================================
==8339==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xb4803ea1 at pc 0x0858ca45 bp 0xbfb394b8 sp 0xbfb394ac
READ of size 1 at 0xb4803ea1 thread T0
    #0 0x858ca44  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x858ca44)
    #1 0x8575b9c  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x8575b9c)
    #2 0x8497a36  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x8497a36)
    #3 0x8452fa6  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x8452fa6)
    #4 0x8449a3b  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x8449a3b)
    #5 0x84416d2  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x84416d2)
    #6 0x843d33f  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x843d33f)
    #7 0x8299b41  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x8299b41)
    #8 0x82b3a7b  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x82b3a7b)
    #9 0x824e49f  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x824e49f)
    #10 0x824d36e  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x824d36e)
    #11 0x824d720  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x824d720)
    #12 0x823a6af  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x823a6af)
    #13 0x80cd000  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x80cd000)
    #14 0xb7315636  (/lib/i386-linux-gnu/libc.so.6+0x18636)
    #15 0x816688b  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x816688b)

0xb4803ea1 is located 0 bytes to the right of 1569-byte region [0xb4803880,0xb4803ea1)
allocated by thread T0 here:
    #0 0x820abc4  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x820abc4)
    #1 0x83faea2  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x83faea2)
    #2 0x82b2b2b  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x82b2b2b)
    #3 0x824e49f  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x824e49f)
    #4 0x824d36e  (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x824d36e)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/osboxes/Desktop/origin/libsass/sass/bin/sassc+0x858ca44)
Shadow bytes around the buggy address:
  0x36900780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x36900790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x369007a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x369007b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x369007c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x369007d0: 00 00 00 00[01]fa fa fa fa fa fa fa fa fa fa fa
  0x369007e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x369007f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x36900800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x36900810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x36900820: 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
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==8339==ABORTING


Actual results:
crash

Expected results:
crash

Additional info:

Comment 1 Jan Kurik 2017-08-15 07:31:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 Ben Cotton 2018-11-27 18:35:50 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2018-11-30 17:43:06 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.