https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Bug ID: 1472882 Summary: CVE-2017-10686 nasm: Use-after-free in the detoken() function Product: Security Response Component: vulnerability Keywords: Security Severity: medium Priority: medium Assignee: security-response-team@redhat.com Reporter: anemec@redhat.com CC: java-sig-commits@lists.fedoraproject.org, mizdebsk@redhat.com, msimacek@redhat.com
In Netwide Assembler (NASM), there are multiple heap use after free vulnerabilities in the tool nasm. The related heap is allocated in the token() function and freed in the detoken() function (called by pp_getline()) - it is used again at multiple positions later that could cause multiple damages. For example, it causes a corrupted double-linked list in detoken(), a double free or corruption in delete_Token(), and an out-of-bounds write in detoken().
Upstream issue:
https://bugzilla.nasm.us/show_bug.cgi?id=3392414
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Andrej Nemec anemec@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1472885
--- Comment #1 from Andrej Nemec anemec@redhat.com --- Created nasm tracking bugs for this issue:
Affects: fedora-all [bug 1472885]
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1472885 [Bug 1472885] CVE-2017-10686 CVE-2017-11111 nasm: various flaws [fedora-all]
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Andrej Nemec anemec@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1472886
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Stefan Cornelius scorneli@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|impact=moderate,public=2017 |impact=moderate,public=2017 |0624,reported=20170710,sour |0624,reported=20170710,sour |ce=cve,cvss3=5.3/CVSS:3.0/A |ce=cve,cvss3=5.3/CVSS:3.0/A |V:L/AC:L/PR:N/UI:R/S:U/C:L/ |V:L/AC:L/PR:N/UI:R/S:U/C:L/ |I:L/A:L,cwe=CWE-416,fedora- |I:L/A:L,cwe=CWE-416,fedora- |all/nasm=affected,rhel-5/na |all/nasm=affected,rhel-5/na |sm=new,rhel-6/nasm=new,rhel |sm=notaffected,rhel-6/nasm= |-7/nasm=new |notaffected,rhel-7/nasm=won | |tfix
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
--- Comment #3 from Stefan Cornelius scorneli@redhat.com --- Patch: http://repo.or.cz/nasm.git/commit/736be08cf3ec4d1da31f350359feb8c1c782de9a http://repo.or.cz/nasm.git/commit/f9ec5bbd2af6ff5276f1fd5ab52df4ed7b096344
Note that 736be08cf3ec4d1da31f350359feb8c1c782de9a trades a use-after-free for a memory leak. Not very elegant, but for the normal nasm use cases that I can imagine this is probably OK.
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Stefan Cornelius scorneli@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |WONTFIX Last Closed| |2017-08-07 09:40:37
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
--- Comment #4 from Stefan Cornelius scorneli@redhat.com --- Statement:
Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- nasm-2.13.01-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- nasm-2.13.01-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1472882 Bug 1472882 depends on bug 1472885, which changed state.
Bug 1472885 Summary: CVE-2017-10686 CVE-2017-11111 nasm: various flaws [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1472885
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1472882
Stefan Cornelius scorneli@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1652048 CC| |lpardo@redhat.com
--- Comment #7 from Stefan Cornelius scorneli@redhat.com --- *** Bug 1652046 has been marked as a duplicate of this bug. ***
java-sig-commits@lists.fedoraproject.org