Bug 911839 (CVE-2014-9482) - VUL-1: CVE-2014-9482: libdwarf: use-after-free when parsing a crafted ELF file
Summary: VUL-1: CVE-2014-9482: libdwarf: use-after-free when parsing a crafted ELF file
Status: RESOLVED FIXED
Alias: CVE-2014-9482
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other openSUSE 13.2
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Michael Matz
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/112049/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-06 13:15 UTC by Victor Pereira
Modified: 2024-05-20 13:56 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Pereira 2015-01-06 13:15:04 UTC
CVE-2014-9482

Use-after-free vulnerability was reported in libdwarf [1].
If dwarfdump is passed a corrupted ELF file, 'Dwarf_Debug' object will be freed in 'dwarf_elf_object_access_finish', but then this object is being referenced later in 'print_error':

--------------------------------
res = dwarf_object_init(binary_interface, errhand, errarg,
        ret_dbg, error);
    if (res != DW_DLV_OK){
        dwarf_elf_object_access_finish(binary_interface);
    }
--------------------------------
...
--------------------------
    if (obj->object) {
        dwarf_elf_object_access_internals_t *internals =
            (dwarf_elf_object_access_internals_t *)obj->object;
--------------------------



References:
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1177758
https://bugzilla.redhat.com/show_bug.cgi?id=1178725
Comment 1 Swamp Workflow Management 2015-01-06 23:01:02 UTC
bugbot adjusting priority
Comment 2 Michael Matz 2015-01-19 13:42:36 UTC
Is this part of any product at all?  libdwarf doesn't exist as source package
in SLE12.  It exists as source package in SLE11, but the packages on any medium
I could find (looked at desktop/server and SDK) only include libdwarf itself,
not libdwarf-tools.  So there's no way I think this problem can surface
anywhere.  If you think different, please tell me how I can reproduce on 
some relevant product.
Comment 3 Victor Pereira 2015-01-19 15:25:00 UTC
ok, looks like just Factory and OpenSUSE are affected