Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1511330
Summary: | libmad's mad_bit_read & mad_bit_skip of bit.c may make array out of bounds reads with crafted input | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Liu Woon Yung <C150139> | ||||||||||
Component: | libmad | Assignee: | Nicolas Chauvet (kwizart) <kwizart> | ||||||||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 26 | CC: | C150139, kwizart, sezeroz | ||||||||||
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-05-29 12:40:54 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: | |||||||||||||
Attachments: |
|
Description
Liu Woon Yung
2017-11-09 07:33:52 UTC
Created attachment 1353251 [details]
Test case for libmad's mad_bit_read() segment fault (fixed)
Contains libmadtest (test driver for libmad) & libmad_fault.mp3.
libmad_fault.mp3 is a test case that triggers fault in mad_bit_read(), via II_samples().
There are three possible areas in mad_bit_read() to fault in: line 142, 163 & 168. An out-of-bounds read can be made by this function, when called from either I_sample() or II_samples().
Debian recently applied two patches to fix CVE-2017-8372, CVE-2017-8373 and CVE-2017-8374, which also fixes the segfault here. The patches are in their libmad-0.15.1b-9 package, here: http://http.debian.net/debian/pool/main/libm/libmad/libmad_0.15.1b-9.diff.gz The patches in question are 'md_size.diff' and 'length-check.patch', to be applied in that order, both authored by Kurt Roeckx. Attaching them here for convenience. c.f.: https://bugzilla.redhat.com/show_bug.cgi?id=1447357 Created attachment 1393966 [details] md_size.diff patch for CVE-2017-8372 and CVE-2017-8373 Created attachment 1393967 [details] length-check.patch patch for CVE-2017-8374 This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. 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 '26'. 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 26 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. This affects not only f26 but all fedoras with libmad included(In reply to Fedora End Of Life from comment #5) > This message is a reminder that Fedora 26 is nearing its end of life. This affects not only f26, but all fedoras with libmad included. Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 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. |