This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libdw/24102] A Heap-buffer-overflow problem was discovered in the function read_srclines in dwarf_getsrclines.c in libdw

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-01-20
                 CC|                            |mark at klomp dot org
          Component|backends                    |libdw
     Ever confirmed|0                           |1

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
Nice find. Replicated using valgrind on the reproducers.

We would assume the dir and file tables were properly terminated by a NUL byte.
But if that wasn't actually there we could read one byte past the end of the
data buffer. A similar issue was in readelf.c (although it is harder to trigger
since readlelf has more sanity checks before it can get to this point).

Proposed fix:

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]