Debian Codegraph @

bugxml/dwarfbug.html

raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
5 <title>Libdwarf Vulnerabilities</title>
6 <META NAME="description" CONTENT="Libdwarf Vulnerabilities">
7 <META NAME="keywords" CONTENT="DWARF, DWARF2, DWARF3, DWARF4,DWARF5">
8 </head>
9 </body>
10 <h1 id=top>Libdwarf Vulnerabilities</h1>
11 <p>
12 This page provides
13 documentation of known vulnerabilities
14 in libdwarf.
15 We are concerned here with
16 cases where corrupt (by accident or intention)
17 DWARF can cause the library to get
18 a fault (crash) which
19 could expose the calling program
20 to interception by malefactors.
21 Dates (where known) are in ISO extended date format.
22 </p>
23 <p>
24 Some of the bugs reported here have a CVE assigned,
25 for example CVE-2017-9052.
26 These are reported on cve.org (or possibly the earlier
27 cve.mitre.org).
28 Search with "libdwarf" on cve.org for a list.
29 </p>
30 <p>
31 Git reference path names refer to object files
32 in the libdwarf regression test base.
33 The test files can be retrieved via anonymous access:
34 <br>
35 "git clone https://github.org/davea42/libdwarf-regressiontests"
36 </p>
37 <p>
38 A few bugs refer to https://bugzilla.redhat.com
39 bug system entries
40 and/or https://bugs.chromium.org
41 in addition to showing the names of test files in
42 the regression test base.
43 </p>
44 <H2 id=vulnerabilities>Vulnerabilities</H2>
45 <p>
46 Vulnerabilities <a href="./dwarfbug.html">listed newest-first</a>.
47 <br>
48 Vulnerabilities <a href="./dwarfbuglohi.html">listed oldest-first</a>.
49 </p>
50 <H2>LibDwarf Vulnerabilities Newest First</H2>
51 </p>as of December 2024</p>
52 <p> Record count: 189 </p>
53 <h3 id="DW202407-012">1) DW202407-012</h3>
54 <p>id: DW202407-012
55 </p>
56 <p>cve:</p>
57 <p>fuzzer: ossfuzz id: 70763
58 </p>
59 <p>datereported: 2024-07-28
60 </p>
61 <p>reportedby: David Korczynski
62 </p>
63 <p>vulnerability: InfiniteRecursion reading CUs leads to crash
64 </p>
65 <p>product: libdwarf
66 </p>
67 <p>description: The code added in git fix id
68 6b40a0ed378826273080a7b11e7274c2b61d018b
69 two days ago involved adding code setting up
70 compilation unit data and in find_cu_die_base_fields()
71 we called dwarf_global_formref() whereas we must
72 call _dwarf_internal_global_formref_b() to avoid
73 an infinite recursion.
74 A crash was only possible when reading corrupt DWARF.
75 </p>
76 <p>datefixed: 2024-07-28
77 </p>
78 <p>references: regressiontests/ossfuzz70763/fuzz_macro_dwarf5-5161075908083712
79 </p>
80 <p>gitfixid: 1b79d618bf5aab2bda9be495c531b13e94ae056a
81 </p>
82 <p>tarrelease:</p>
83 <p> <a href="#top">[top]</a> </p>
84 <h3 id="DW202407-011">2) DW202407-011</h3>
85 <p>id: DW202407-011
86 </p>
87 <p>cve:</p>
88 <p>fuzzer: ossfuzz id: 70753
89 </p>
90 <p>datereported: 2024-07-28
91 </p>
92 <p>reportedby: David Korczynski
93 </p>
94 <p>vulnerability: InfiniteRecursion reading CUs leads to crash
95 </p>
96 <p>product: libdwarf
97 </p>
98 <p>description: The code added in git fix id
99 6b40a0ed378826273080a7b11e7274c2b61d018b
100 two days ago involved adding code setting up
101 compilation unit data and in find_cu_die_base_fields()
102 we called dwarf_global_formref() whereas we must
103 call _dwarf_internal_global_formref_b() to avoid
104 an infinite recursion.
105 A crash was only possible when reading corrupt DWARF.
106 </p>
107 <p>datefixed: 2024-07-28
108 </p>
109 <p>references: regressiontests/ossfuzz70753/fuzz_die_cu_offset-6598270743281664
110 </p>
111 <p>gitfixid: 1b79d618bf5aab2bda9be495c531b13e94ae056a
112 </p>
113 <p>tarrelease:</p>
114 <p> <a href="#top">[top]</a> </p>
115 <h3 id="DW202407-010">3) DW202407-010</h3>
116 <p>id: DW202407-010
117 </p>
118 <p>cve:</p>
119 <p>fuzzer: ossfuzz id: 70721
120 </p>
121 <p>datereported: 2024-07-27
122 </p>
123 <p>reportedby: David Korczynski
124 </p>
125 <p>vulnerability: Heap Use After Free
126 </p>
127 <p>product: libdwarf
128 </p>
129 <p>description: Libdwarf was referencing freed space
130 attempting to free up a compilation-unit DIE
131 in the process of creating a context for a
132 compilation-unit DIE, given a particular
133 corruption of the DWARF data being read.
134 This bug has been present for several years.
135 </p>
136 <p>datefixed: 2024-07-27
137 </p>
138 <p>references: regressiontests/ossfuzz70721/fuzz_macro_dwarf5-4907954017468416
139 </p>
140 <p>gitfixid: 6fa96f95e043bac9b98ca6f7a9a542dae8f46cd
141 </p>
142 <p>tarrelease:</p>
143 <p> <a href="#top">[top]</a> </p>
144 <h3 id="DW202407-009">4) DW202407-009</h3>
145 <p>id: DW202407-009
146 </p>
147 <p>cve:</p>
148 <p>fuzzer: ossfuzz id: 70287
149 </p>
150 <p>datereported: 2024-07-10
151 </p>
152 <p>reportedby: David Korczynski
153 </p>
154 <p>vulnerability: Huge malloc request could crash caller
155 </p>
156 <p>product: libdwarf
157 </p>
158 <p>description: Libdwarf was not checking a field in
159 a .debug_rnglists header for sanity before doing
160 a malloc based on the field value.
161 This bug has been present for a week or so.
162 </p>
163 <p>datefixed: 2024-07-10
164 </p>
165 <p>references: regressiontests/ossfuzz70287/
166 </p>
167 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
168 </p>
169 <p>tarrelease:</p>
170 <p> <a href="#top">[top]</a> </p>
171 <h3 id="DW202407-008">5) DW202407-008</h3>
172 <p>id: DW202407-008
173 </p>
174 <p>cve:</p>
175 <p>fuzzer: ossfuzz id: 70282
176 </p>
177 <p>datereported: 2024-07-10
178 </p>
179 <p>reportedby: David Korczynski
180 </p>
181 <p>vulnerability: Huge malloc request could crash caller
182 </p>
183 <p>product: libdwarf
184 </p>
185 <p>description: Libdwarf was not checking a field in
186 a .debug_rnglists header for sanity before doing
187 a malloc based on the field value.
188 This bug has been present for a week or so.
189 </p>
190 <p>datefixed: 2024-07-10
191 </p>
192 <p>references: regressiontests/ossfuzz70282/
193 </p>
194 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
195 </p>
196 <p>tarrelease:</p>
197 <p> <a href="#top">[top]</a> </p>
198 <h3 id="DW202407-007">6) DW202407-007</h3>
199 <p>id: DW202407-007
200 </p>
201 <p>cve:</p>
202 <p>fuzzer: ossfuzz id: 70278
203 </p>
204 <p>datereported: 2024-07-10
205 </p>
206 <p>reportedby: David Korczynski
207 </p>
208 <p>vulnerability: Huge malloc request could crash caller
209 </p>
210 <p>product: libdwarf
211 </p>
212 <p>description: Libdwarf was not checking a field in
213 a .debug_rnglists header for sanity before doing
214 a malloc based on the field value.
215 This bug has been present for a week or so.
216 </p>
217 <p>datefixed: 2024-07-10
218 </p>
219 <p>references: regressiontests/ossfuzz70278/
220 </p>
221 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
222 </p>
223 <p>tarrelease:</p>
224 <p> <a href="#top">[top]</a> </p>
225 <h3 id="DW202407-006">7) DW202407-006</h3>
226 <p>id: DW202407-006
227 </p>
228 <p>cve:</p>
229 <p>fuzzer: ossfuzz id: 70277
230 </p>
231 <p>datereported: 2024-07-10
232 </p>
233 <p>reportedby: David Korczynski
234 </p>
235 <p>vulnerability: Huge malloc request could crash caller
236 </p>
237 <p>product: libdwarf
238 </p>
239 <p>description: Libdwarf was not checking a field in
240 a .debug_rnglists header for sanity before doing
241 a malloc based on the field value.
242 This bug has been present for a week or so.
243 </p>
244 <p>datefixed: 2024-07-10
245 </p>
246 <p>references: regressiontests/ossfuzz70277/
247 </p>
248 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
249 </p>
250 <p>tarrelease:</p>
251 <p> <a href="#top">[top]</a> </p>
252 <h3 id="DW202407-005">8) DW202407-005</h3>
253 <p>id: DW202407-005
254 </p>
255 <p>cve:</p>
256 <p>fuzzer: ossfuzz id: 70266
257 </p>
258 <p>datereported: 2024-07-10
259 </p>
260 <p>reportedby: David Korczynski
261 </p>
262 <p>vulnerability: Huge malloc request could crash caller
263 </p>
264 <p>product: libdwarf
265 </p>
266 <p>description: Libdwarf was not checking a field in
267 a .debug_rnglists header for sanity before doing
268 a malloc based on the field value.
269 This bug has been present for a week or so.
270 </p>
271 <p>datefixed: 2024-07-10
272 </p>
273 <p>references: regressiontests/ossfuzz70266/fuzz_findfuncbypc-6093996460408832
274 </p>
275 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
276 </p>
277 <p>tarrelease:</p>
278 <p> <a href="#top">[top]</a> </p>
279 <h3 id="DW202407-004">9) DW202407-004</h3>
280 <p>id: DW202407-004
281 </p>
282 <p>cve:</p>
283 <p>fuzzer: ossfuzz id: 70263
284 </p>
285 <p>datereported: 2024-07-10
286 </p>
287 <p>reportedby: David Korczynski
288 </p>
289 <p>vulnerability: Huge malloc request could crash caller
290 </p>
291 <p>product: libdwarf
292 </p>
293 <p>description: Libdwarf was not checking a field in
294 a .debug_rnglists header for sanity before doing
295 a malloc based on the field value.
296 This bug has been present for a week or so.
297 </p>
298 <p>datefixed: 2024-07-10
299 </p>
300 <p>references: regressiontests/ossfuzz70263/fuzz_die_cu-4960441042796544
301 </p>
302 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
303 </p>
304 <p>tarrelease:</p>
305 <p> <a href="#top">[top]</a> </p>
306 <h3 id="DW202407-003">10) DW202407-003</h3>
307 <p>id: DW202407-003
308 </p>
309 <p>cve:</p>
310 <p>fuzzer: ossfuzz id: 70256
311 </p>
312 <p>datereported: 2024-07-10
313 </p>
314 <p>reportedby: David Korczynski
315 </p>
316 <p>vulnerability: Huge malloc request could crash caller
317 </p>
318 <p>product: libdwarf
319 </p>
320 <p>description: Libdwarf was not checking a field in
321 a .debug_rnglists header for sanity before doing
322 a malloc based on the field value.
323 This bug has been present for a week or so.
324 </p>
325 <p>datefixed: 2024-07-10
326 </p>
327 <p>references: regressiontests/ossfuzz70256/fuzz_rng-483822291655065
328 </p>
329 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
330 </p>
331 <p>tarrelease:</p>
332 <p> <a href="#top">[top]</a> </p>
333 <h3 id="DW202407-002">11) DW202407-002</h3>
334 <p>id: DW202407-002
335 </p>
336 <p>cve:</p>
337 <p>fuzzer: ossfuzz id: 70246
338 </p>
339 <p>datereported: 2024-07-09
340 </p>
341 <p>reportedby: David Korczynski
342 </p>
343 <p>vulnerability: Huge malloc request could crash caller
344 </p>
345 <p>product: libdwarf
346 </p>
347 <p>description: Libdwarf was not checking a field in
348 a .debug_rnglists header for sanity before doing
349 a malloc based on the field value.
350 This bug has been present for a week or so.
351 </p>
352 <p>datefixed: 2024-07-10
353 </p>
354 <p>references: regressiontests/ossfuzz70246/fuzz_macro_dwarf5-5128935898152960
355 </p>
356 <p>gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
357 </p>
358 <p>tarrelease:</p>
359 <p> <a href="#top">[top]</a> </p>
360 <h3 id="DW202407-001">12) DW202407-001</h3>
361 <p>id: DW202407-001
362 </p>
363 <p>cve:</p>
364 <p>fuzzer: ossfuzz id: 70244
365 </p>
366 <p>datereported: 2024-07-09
367 </p>
368 <p>reportedby: David Korczynski
369 </p>
370 <p>vulnerability: Memory leaks reading rnglists
371 </p>
372 <p>product: libdwarf
373 </p>
374 <p>description: Libdwarf was failing to free()
375 some allocations in reading .debug_rnglists.
376 This bug has been present for a week or so.
377 </p>
378 <p>datefixed: 2024-07-09
379 </p>
380 <p>references: regressiontests/ossfuzz70244/fuzz_die_cu_attrs_loclist-4958134427254784
381 </p>
382 <p>gitfixid: 906a4428a5d92e17948da4249cfccbe8f5ae8005
383 </p>
384 <p>tarrelease:</p>
385 <p> <a href="#top">[top]</a> </p>
386 <h3 id="DW202406-002">13) DW202406-002</h3>
387 <p>id: DW202406-002
388 </p>
389 <p>cve:</p>
390 <p>fuzzer: ossfuzz id: 69641
391 </p>
392 <p>datereported: 2024-06-14
393 </p>
394 <p>reportedby: David Korczynski
395 </p>
396 <p>vulnerability: Memory Leak reading .debug_loclists
397 </p>
398 <p>product: libdwarf
399 </p>
400 <p>description: During startup (reading
401 initial fields from .debug_loclists)
402 libdwarf was allocating
403 an array of integers but in the normal
404 case was failing to free the array.
405 This bug in DWARF5 handling
406 has been in the code for a week or so.
407 See also DW202406-001.
408 </p>
409 <p>datefixed: 2024-06-15
410 </p>
411 <p>references: regressiontests/ossfuzz69641/fuzz_die_cu_attrs_loclist-6271271030030336
412 </p>
413 <p>gitfixid: 32d832900ebe2e61ec07e82625a561415be05424
414 </p>
415 <p>tarrelease: libdwarf-0.10.1.tar.xz
416 </p>
417 <p> <a href="#top">[top]</a> </p>
418 <h3 id="DW202406-001">14) DW202406-001</h3>
419 <p>id: DW202406-001
420 </p>
421 <p>cve:</p>
422 <p>fuzzer: ossfuzz id: 69639
423 </p>
424 <p>datereported: 2024-06-14
425 </p>
426 <p>reportedby: David Korczynski
427 </p>
428 <p>vulnerability: Memory Leak reading .debug_loclists
429 </p>
430 <p>product: libdwarf
431 </p>
432 <p>description: During startup (reading
433 initial fields from .debug_loclists)
434 libdwarf was allocating
435 an array of integers but in the normal
436 case was failing to free the array.
437 This bug in DWARF5 handling
438 has been in the code for a week or so.
439 See also DW202406-002.
440 </p>
441 <p>datefixed: 2024-06-15
442 </p>
443 <p>references: regressiontests/ossfuzz69639/fuzz_die_cu_offset-6001910176350208
444 </p>
445 <p>gitfixid: 32d832900ebe2e61ec07e82625a561415be05424
446 </p>
447 <p>tarrelease: libdwarf-0.10.1.tar.xz
448 </p>
449 <p> <a href="#top">[top]</a> </p>
450 <h3 id="DW202403-001">15) DW202403-001</h3>
451 <p>id: DW202403-001
452 </p>
453 <p>cve:</p>
454 <p>fuzzer: ossfuzz id: 67490
455 </p>
456 <p>datereported: 2024-03-18
457 </p>
458 <p>reportedby: David Korczynski
459 </p>
460 <p>vulnerability: Reads past end of line table
461 </p>
462 <p>product: libdwarf
463 </p>
464 <p>description: A carefully corrupted line table
465 header can cause libdwarf to read outside of its
466 allowed areas in a .debug_line section reading
467 the file names part of the header.
468 The failure to check for end-of-section before reading
469 past end-of-section at the very last byte in section
470 (at a very few specific
471 points in the line table reader code where a
472 valid line table header would not require a test)
473 has been present for many years.
474 </p>
475 <p>datefixed: 2024-02-19
476 </p>
477 <p>references: regressiontests/ossfuzz67490/fuzz_srcfiles-5195296927711232
478 </p>
479 <p>gitfixid: 2930f3121ee6b07da405103934c329bbeca0382f
480 </p>
481 <p>tarrelease: libdwarf-0.9.2.tar.xz
482 </p>
483 <p> <a href="#top">[top]</a> </p>
484 <h3 id="DW202402-003">16) DW202402-003</h3>
485 <p>id: DW202402-003
486 </p>
487 <p>cve:</p>
488 <p>fuzzer: hongg
489 </p>
490 <p>datereported: 2024-02-18
491 </p>
492 <p>reportedby: ifygecko
493 </p>
494 <p>vulnerability: crashes randomly reading fuzzed locllist
495 </p>
496 <p>product: libdwarf
497 </p>
498 <p>description: A carefully corrupted loclists entry
499 can cause libdwarf to read outside of its
500 allowed areas in dwarf_loclists.c due to lack of a
501 sanity check.
502 A segmentation error and libdwarf crash is likely.
503 Similar code in dwarf_rnglists.c and that now
504 has the additional checks.
505 The bugs have been present in both since the code was created
506 in June 2020.
507 </p>
508 <p>datefixed: 2024-02-18
509 </p>
510 <p>references: regressiontests/hongg2024-02-18/SIGSEGV-m.fuzz
511 </p>
512 <p>gitfixid: 5cfbd87dff4fc3c3b595bb92ed886934945b372c
513 </p>
514 <p>tarrelease: libdwarf-0.9.2.tar.xz
515 </p>
516 <p> <a href="#top">[top]</a> </p>
517 <h3 id="DW202402-002">17) DW202402-002</h3>
518 <p>id: DW202402-002
519 </p>
520 <p>cve: CVE-2024-2002
521 </p>
522 <p>fuzzer: hongg
523 </p>
524 <p>datereported: 2024-02-16
525 </p>
526 <p>reportedby: ifygecko
527 </p>
528 <p>vulnerability: crashes randomly on fuzzed object
529 </p>
530 <p>product: libdwarf
531 </p>
532 <p>description: In a multiply-corrupted DWARF object
533 libdwarf may try to dealloc(free) an allocation twice.
534 Results are unpredictable and various.
535 This has been a possibility since we added code
536 to prevent leaks when generating 'unattached'
537 Dwarf_Error records (where there is no
538 Dwarf_Debug available at the point of error).
539 The problem was introduced in libdwarf-0.1.0
540 in 2021.
541 </p>
542 <p>datefixed: 2024-02-17
543 </p>
544 <p>references: regressiontests/hongg2024-02-16/SIGABRT-a.fuzz
545 SIGABRT-b.fuzz SIGABRT-c.fuzz SIGSEGV-d.fuzz
546 SIGSEGV-e.fuzz SIGSEGV-f.fuzz SIGSEGV-g.fuzz
547 SIGSEGV-h.fuzz SIGSEGV-i.fuzz SIGSEGV-k.fuzz
548 </p>
549 <p>gitfixid: 404e6b1b14f60c81388d50b4239f81d461b3c3ad
550 </p>
551 <p>tarrelease: libdwarf-0.9.2.tar.xz
552 </p>
553 <p> <a href="#top">[top]</a> </p>
554 <h3 id="DW202402-001">18) DW202402-001</h3>
555 <p>id: DW202402-001
556 </p>
557 <p>cve:</p>
558 <p>fuzzer: ossfuzz id: 66646
559 </p>
560 <p>datereported: 2024-02-12
561 </p>
562 <p>reportedby: David Korczynski
563 </p>
564 <p>vulnerability: Reference memory outside of section.
565 </p>
566 <p>product: libdwarf
567 </p>
568 <p>description: The data pointer for DW_FORM_ref1
569 was not being validated as pointing into the section before
570 being dereferenced. Here reading a corrupted
571 DWARF section. A library crash is likely.
572 This test failure happened to be on a
573 DW_AT_abstract_origin attribute,
574 but the problem applies in many other situations.
575 Nearly the other forms had checks.
576 This check has been missing for many years.
577 Similarly the requisite check was missing from
578 DW_FORM_block1 for many years and that too
579 was fixed so all the FORMs have checks now.
580 </p>
581 <p>datefixed: 2024-02-13
582 </p>
583 <p>references: regressiontests/ossfuzz66646/fuzz_findfuncbypc-5178544143532032
584 </p>
585 <p>gitfixid: f21e2f7687f3dca183026a1fb72ca1f0dcf8befa
586 </p>
587 <p>tarrelease: libdwarf-0.9.2.tar.xz
588 </p>
589 <p> <a href="#top">[top]</a> </p>
590 <h3 id="DW202311-002">19) DW202311-002</h3>
591 <p>id: DW202311-002
592 </p>
593 <p>cve:</p>
594 <p>fuzzer: ossfuzz id: 64496
595 </p>
596 <p>datereported: 2023-02-28
597 </p>
598 <p>reportedby: David Korczynski
599 </p>
600 <p>vulnerability: Null dereference from dwarf_gnu_debuglink()
601 </p>
602 <p>product: libdwarf
603 </p>
604 <p>description: If the Dwarf_Debug was opened with
605 dwarf_init_object_b() there is no pathname known to libdwarf
606 and the library was dereferencing a null pointer as a result.
607 With the library bug fixed
608 the fuzz/fuzz_debuglink.c test case was violating the
609 rules of use of the function resulting in memory
610 leakage. The documentation has been improved on this
611 function.
612 </p>
613 <p>datefixed: 2023-11-25
614 </p>
615 <p>references: regressiontests/ossfuzz64496/fuzz_debuglink-615437663823462
616 </p>
617 <p>gitfixid: d76cce559b898f7059ce5ffd82f3cfd58cb392fe
618 </p>
619 <p>tarrelease: libdwarf-0.9.0.tar.xz
620 </p>
621 <p> <a href="#top">[top]</a> </p>
622 <h3 id="DW202311-001">20) DW202311-001</h3>
623 <p>id: DW202311-001
624 </p>
625 <p>cve:</p>
626 <p>fuzzer: ossfuzz id: 56452
627 </p>
628 <p>datereported: 2023-11-24
629 </p>
630 <p>reportedby: David Korczynski
631 </p>
632 <p>vulnerability: Null dereference
633 </p>
634 <p>product: libdwarf
635 </p>
636 <p>description: Passing a null Dwarf_Debug to
637 dwarf_add_debuglink_global_path() lead to library crash.
638 The code was not checking for a valid Dwarf_Debug Argument.
639 The bug was present when the function was created in 2021
640 Moreover, oss fuzz originally noted the bug
641 on 02 March 2023 but
642 I can find no trace of a notification of the bug arriving
643 before 24 November 2023.
644 Fixing this sort of thing for all functions, here is
645 the last commit id...
646 ef77596af000719c04bd3e40b97139247ff3efb4
647 </p>
648 <p>datefixed: 2023-11-25
649 </p>
650 <p>references: regressiontests/ossfuzz56452/fuzz_debuglink-cs4231a-5927365017731072
651 </p>
652 <p>gitfixid: 1f6988307748f427566e3266695bb72d5384bf3d
653 </p>
654 <p>tarrelease: libdwarf-0.9.0.tar.xz
655 </p>
656 <p> <a href="#top">[top]</a> </p>
657 <h3 id="DW202310-002">21) DW202310-002</h3>
658 <p>id: DW202310-002
659 </p>
660 <p>cve:</p>
661 <p>fuzzer: ossfuzz id: 63024
662 </p>
663 <p>datereported: 2023-10-06
664 </p>
665 <p>reportedby: David Korczynski
666 </p>
667 <p>vulnerability: Heap buffer overflow
668 </p>
669 <p>product: libdwarf
670 </p>
671 <p>description: A copy-paste error lead to
672 a heap buffer overflow. Named the wrong struct
673 in calling calloc().
674 The function with the bug was added seven days ago.
675 </p>
676 <p>datefixed: 2023-10-07
677 </p>
678 <p>references: regressiontests/ossfuzz63024/fuzz_init_path-5486726493372416
679 </p>
680 <p>gitfixid: 3a658bd1dd7437948cecbf82bb9b24f5f6122a7d
681 </p>
682 <p>tarrelease: libdwarf-0.9.0.tar.xz
683 </p>
684 <p> <a href="#top">[top]</a> </p>
685 <h3 id="DW202310-001">22) DW202310-001</h3>
686 <p>id: DW202310-001
687 </p>
688 <p>cve:</p>
689 <p>fuzzer: ossfuzz id: 62943
690 </p>
691 <p>datereported: 2023-10-02
692 </p>
693 <p>reportedby: David Korczynski
694 </p>
695 <p>vulnerability: Heap buffer overflow
696 </p>
697 <p>product: libdwarf
698 </p>
699 <p>description: The heap buffer overflow was due
700 to a failure to do initial sanity checks on a
701 universal object. The object involved was
702 not large enough to have a complete universal
703 header.
704 This bug was in the public repository
705 for three days (in all-new code, for Apple
706 Universal Binary objects).
707 </p>
708 <p>datefixed: 2023-10-03
709 </p>
710 <p>references: regressiontests/ossfuzz62943/fuzz_init_path-5486726493372416
711 </p>
712 <p>gitfixid: aea77dad8745d9aad5275c3226e4e3156effa71f
713 </p>
714 <p>tarrelease: libdwarf-0.9.0.tar.xz
715 </p>
716 <p> <a href="#top">[top]</a> </p>
717 <h3 id="DW202309-004">23) DW202309-004</h3>
718 <p>id: DW202309-004
719 </p>
720 <p>cve:</p>
721 <p>fuzzer: ossfuzz id: 62842
722 </p>
723 <p>datereported: 2023-09-30
724 </p>
725 <p>reportedby: David Korczynski
726 </p>
727 <p>vulnerability: Heap buffer overflow
728 </p>
729 <p>product: libdwarf
730 </p>
731 <p>description: The heap buffer overflow in
732 _dwarf_memcpy_swap_bytes was due a failure to check
733 for a valid size field (a fuzzed value) in a count
734 of array elements..
735 Now we check for a sensible count.
736 This bug was in the public repository
737 for two days (in all-new code, for Apple
738 Universal Binary objects).
739 </p>
740 <p>datefixed: 2023-10-01
741 </p>
742 <p>references: regressiontests/ossfuzz62842/fuzz_findfuncbypc-4964619766333440.fuzz
743 </p>
744 <p>gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
745 </p>
746 <p>tarrelease: libdwarf-0.9.0.tar.xz
747 </p>
748 <p> <a href="#top">[top]</a> </p>
749 <h3 id="DW202309-003">24) DW202309-003</h3>
750 <p>id: DW202309-003
751 </p>
752 <p>cve:</p>
753 <p>fuzzer: ossfuzz id: 62834
754 </p>
755 <p>datereported: 2023-09-30
756 </p>
757 <p>reportedby: David Korczynski
758 </p>
759 <p>vulnerability: Memory leak in _dwarf_macho_setup()
760 </p>
761 <p>product: libdwarf
762 </p>
763 <p>description: The September 29 addition of Mach-O
764 universal binary support
765 resulted in memory leaks due to revising memory alloc/free
766 incompletely when fuzzed object files were encountered..
767 This bug was in the public repository
768 for two days (in all-new code, for Apple
769 Universal Binary objects).
770 </p>
771 <p>datefixed: 2023-10-01
772 </p>
773 <p>references: regressiontests/ossfuzz62834/fuzz_init_path-4573857635500032
774 </p>
775 <p>gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
776 </p>
777 <p>tarrelease: libdwarf-0.9.0.tar.xz
778 </p>
779 <p> <a href="#top">[top]</a> </p>
780 <h3 id="DW202309-002">25) DW202309-002</h3>
781 <p>id: DW202309-002
782 </p>
783 <p>cve:</p>
784 <p>fuzzer: ossfuzz id: 62833
785 </p>
786 <p>datereported: 2023-09-30
787 </p>
788 <p>reportedby: David Korczynski
789 </p>
790 <p>vulnerability: Memory leak in _dwarf_macho_setup()
791 </p>
792 <p>product: libdwarf
793 </p>
794 <p>description: The September 29 addition of Mach-O
795 universal binary support
796 resulted in memory leaks due to revising memory alloc/free
797 incompletely when fuzzed object files were encountered..
798 This bug was in the public repository
799 for two days (in all-new code, for Apple
800 Universal Binary objects).
801 </p>
802 <p>datefixed: 2023-10-01
803 </p>
804 <p>references: regressiontests/ossfuzz62833/fuzz_set_frame_all-4521858130903040
805 </p>
806 <p>gitfixid: gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
807 </p>
808 <p>tarrelease: libdwarf-0.9.0.tar.xz
809 </p>
810 <p> <a href="#top">[top]</a> </p>
811 <h3 id="DW202309-001">26) DW202309-001</h3>
812 <p>id: DW202309-001
813 </p>
814 <p>cve:</p>
815 <p>fuzzer: ossfuzz id: 62547
816 </p>
817 <p>datereported: 2023-09-22
818 </p>
819 <p>reportedby: David Korczynski
820 </p>
821 <p>vulnerability: Heap use after free
822 </p>
823 <p>product: libdwarf
824 </p>
825 <p>description: Calling dwarf_get_fde_for_die() causes the
826 problem as its special handling in a user calling
827 for fde destruction is wrong when dwarf_finish()
828 is calling for fde destruction.
829 dwarf_finish() can refer to freed memory
830 in trying to delete a CIE twice.
831 The use after free has a dependence on the order nodes are seen
832 in the de_alloc_tree tdestroy() walk of the table
833 (the order is not predictable).
834 Broken in release 0.8.0 and all previous releases.
835 </p>
836 <p>datefixed: 2023-09-23
837 </p>
838 <p>references: regressiontests/ossfuzz62547/fuzz_stack_frame_access-5263709637050368
839 </p>
840 <p>gitfixid: cd741379bd0203a0875b413542d5f982606ae637
841 </p>
842 <p>tarrelease: libdwarf-0.9.0.tar.xz
843 </p>
844 <p> <a href="#top">[top]</a> </p>
845 <h3 id="DW202308-001">27) DW202308-001</h3>
846 <p>id: DW202308-001
847 </p>
848 <p>cve:</p>
849 <p>fuzzer: ossfuzz id: 59576
850 </p>
851 <p>datereported: 2023-06-04
852 </p>
853 <p>reportedby: David Korczynski
854 </p>
855 <p>vulnerability: Read from outside frame section
856 </p>
857 <p>product: libdwarf
858 </p>
859 <p>description: A fuzzed object results in
860 reading outside a frame section due to a comparison
861 being &gt; when it should have bin &gt;= at about
862 line 1615 in dwarf_frame2.
863 Could result in crash or incorrect frame data returned.
864 Somehow we lost track of this open bug.
865 The bug has been in the code since the augmentation
866 was first implemented in the library.
867 </p>
868 <p>datefixed: 2023-08-26
869 </p>
870 <p>references: regressiontests/ossfuzz59576/fuzz_set_frame_all-5867083595120640
871 </p>
872 <p>gitfixid: e53adc90ffd6d5d0fad61546b0041990aefd970b
873 </p>
874 <p>tarrelease: libdwarf-0.8.0.tar.xz
875 </p>
876 <p> <a href="#top">[top]</a> </p>
877 <h3 id="DW202307-001">28) DW202307-001</h3>
878 <p>id: DW202307-001
879 </p>
880 <p>cve:</p>
881 <p>fuzzer: ossfuzz id: 60506
882 </p>
883 <p>datereported: 2023-07-09
884 </p>
885 <p>reportedby: David Korczynski
886 </p>
887 <p>vulnerability: Read from outside section
888 </p>
889 <p>product: libdwarf
890 </p>
891 <p>description: A fuzzed object results in
892 reading outside a line table due to a corruption
893 in a non-standard (experimental) line table format.
894 A corrupted offset was not checked for sanity.
895 The bug has been in the code since the experimental
896 line table support was added in 2015.
897 </p>
898 <p>datefixed: 2023-07-11
899 </p>
900 <p>references: regressiontests/ossfuzz60506/fuzz_srcfiles-6494439909228544.fuzz
901 </p>
902 <p>gitfixid: c8c5073f35b1efdcc610ecf369c78f87fdd34714
903 </p>
904 <p>tarrelease: libdwarf-0.8.0.tar.xz
905 </p>
906 <p> <a href="#top">[top]</a> </p>
907 <h3 id="DW202306-011">29) DW202306-011</h3>
908 <p>id: DW202306-011
909 </p>
910 <p>cve:</p>
911 <p>fuzzer: ossfuzz id: 60090
912 </p>
913 <p>datereported: 2023-06-24
914 </p>
915 <p>reportedby: David Korczynski
916 </p>
917 <p>vulnerability: Read from invalid memory address
918 </p>
919 <p>product: libdwarf
920 </p>
921 <p>description: A fuzzed object results in
922 an addition overflow in reading CIE data
923 leading to a read from an invalid address.
924 An almost-correct check for an overflow
925 in case of a fuzzed aug_irix_exception_table
926 augmentation leads to a crash.
927 The bug was incorrect coding of a test
928 (for an absurd value) written a few weeks ago.
929 </p>
930 <p>datefixed: 2023-06-26
931 </p>
932 <p>references: regressiontests/ossfuzz60090/fuzz_set_frame_all-5757752673435648
933 </p>
934 <p>gitfixid: 6f75899f1f90fa87e52da0df09ddaa2e5be778f9
935 </p>
936 <p>tarrelease: libdwarf-0.8.0.tar.xz
937 </p>
938 <p> <a href="#top">[top]</a> </p>
939 <h3 id="DW202306-010">30) DW202306-010</h3>
940 <p>id: DW202306-010
941 </p>
942 <p>cve:</p>
943 <p>fuzzer: ossfuzz id: 59950
944 </p>
945 <p>datereported: 2023-06-18
946 </p>
947 <p>reportedby: David Korczynski
948 </p>
949 <p>vulnerability:library reads outside frame section
950 </p>
951 <p>product: libdwarf
952 </p>
953 <p>description: A fuzzed object results in
954 adding a too large value (from CIE
955 frame augmentation data) to a pointer,
956 having failed to check the value for
957 reasonableness. That add overflows
958 so dereferencing the
959 pointer in dwarf_frame.c could lead to a crash
960 in the library or getting nonsense information
961 returned to the caller.
962 This bug has been present for many years.
963 </p>
964 <p>datefixed: 2023-06-19
965 </p>
966 <p>references: regressiontests/ossfuzz59950/fuzz_set_frame_all-6613067367317504
967 </p>
968 <p>gitfixid: b7437c9e4923906e9b3f3860a0c8a8289cff0a91
969 </p>
970 <p>tarrelease: libdwarf-0.8.0.tar.xz
971 </p>
972 <p> <a href="#top">[top]</a> </p>
973 <h3 id="DW202306-009">31) DW202306-009</h3>
974 <p>id: DW202306-009
975 </p>
976 <p>cve:</p>
977 <p>fuzzer: ossfuzz id: 59775
978 </p>
979 <p>datereported: 2023-06-11
980 </p>
981 <p>reportedby: David Korczynski
982 </p>
983 <p>vulnerability: Fuzzed object results in read past end of section.
984 </p>
985 <p>product: libdwarf
986 </p>
987 <p>description: A fuzzed object results in reading one byte
988 past the end of a .eh_frame section
989 in internal function _dwarf_read_loc_expr-op().
990 Now we check for that before we dereference a pointer
991 (to read the particular single-byte field).
992 </p>
993 <p>datefixed: 2023-06-13
994 </p>
995 <p>references: regressiontests/ossfuzz59775/fuzz_die_cu_attrs_loclist-4504718844755968
996 </p>
997 <p>gitfixid: 9cae1be75ec333d2b8ab8800df4850ed77a8b025
998 </p>
999 <p>tarrelease: libdwarf-0.8.0.tar.xz
1000 </p>
1001 <p> <a href="#top">[top]</a> </p>
1002 <h3 id="DW202306-008">32) DW202306-008</h3>
1003 <p>id: DW202306-008
1004 </p>
1005 <p>cve:</p>
1006 <p>fuzzer: ossfuzz id: 59699
1007 </p>
1008 <p>datereported: 2023-06-08
1009 </p>
1010 <p>reportedby: David Korczynski
1011 </p>
1012 <p>vulnerability: Read past end of section
1013 </p>
1014 <p>product: libdwarf
1015 </p>
1016 <p>description: In reading a CIE prefix
1017 of a fuzzed object we read past the end
1018 of the section due to a failure
1019 to check a byte pointer before we dereference it
1020 in _dwarf_read_cie_fde_prefix().
1021 </p>
1022 <p>datefixed: 2023-05-10
1023 </p>
1024 <p>references: regressiontests/ossfuzz59699/fuzz_stack_frame_access-6523659305746432
1025 </p>
1026 <p>gitfixid: c5b909630bb566cdbf68fae4091f049f3b22ff11
1027 </p>
1028 <p>tarrelease: libdwarf-0.8.0.tar.xz
1029 </p>
1030 <p> <a href="#top">[top]</a> </p>
1031 <h3 id="DW202306-007">33) DW202306-007</h3>
1032 <p>id: DW202306-007
1033 </p>
1034 <p>cve:</p>
1035 <p>fuzzer: ossfuzz id: 59602
1036 </p>
1037 <p>datereported: 2023-06-04
1038 </p>
1039 <p>reportedby: David Korczynski
1040 </p>
1041 <p>vulnerability: Buffer overflow read
1042 </p>
1043 <p>product: libdwarf
1044 </p>
1045 <p>description: In _dwarf_read_loc_expr_op()
1046 we read one byte past available data
1047 as the required check for past-end
1048 was missing.
1049 </p>
1050 <p>datefixed: 2023-06-10
1051 </p>
1052 <p>references: regressiontests/ossfuzz59602/fuzz_die_cu_attrs_loclist-6737086749999104
1053 </p>
1054 <p>gitfixid: c8c54ba5c79b0a2687f0fa2ac331479506c3210f
1055 </p>
1056 <p>tarrelease: libdwarf-0.8.0.tar.xz
1057 </p>
1058 <p> <a href="#top">[top]</a> </p>
1059 <h3 id="DW202306-006">34) DW202306-006</h3>
1060 <p>id: DW202306-006
1061 </p>
1062 <p>cve:</p>
1063 <p>fuzzer: ossfuzz id: 59727
1064 </p>
1065 <p>datereported: 2023-06-01
1066 </p>
1067 <p>reportedby: David Korczynski
1068 </p>
1069 <p>vulnerability: Integer Overflow
1070 </p>
1071 <p>product: libdwarf
1072 </p>
1073 <p>description: Integer Overflow in
1074 _dwarf_exec_frame_instr() called by
1075 dwarf_expand_frame_instructions.
1076 We now check for overflows in add and
1077 multiply here.
1078 Similar to ossfuzz 59517
1079 </p>
1080 <p>datefixed: 2023-06-08
1081 </p>
1082 <p>references:</p>
1083 <p>gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
1084 </p>
1085 <p>tarrelease: libdwarf-0.8.0.tar.xz
1086 </p>
1087 <p> <a href="#top">[top]</a> </p>
1088 <h3 id="DW202306-005">35) DW202306-005</h3>
1089 <p>id: DW202306-005
1090 </p>
1091 <p>cve:</p>
1092 <p>fuzzer: ossfuzz id: 59717
1093 </p>
1094 <p>datereported: 2023-06-01
1095 </p>
1096 <p>reportedby: David Korczynski
1097 </p>
1098 <p>vulnerability: Integer Overflow
1099 </p>
1100 <p>product: libdwarf
1101 </p>
1102 <p>description: Integer Overflow in
1103 _dwarf_exec_frame_instr() called by
1104 dwarf_expand_frame_instructions.
1105 We now check for overflows in add and
1106 multiply here.
1107 Similar to ossfuzz 59517
1108 </p>
1109 <p>datefixed: 2023-06-08
1110 </p>
1111 <p>references:</p>
1112 <p>gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
1113 </p>
1114 <p>tarrelease: libdwarf-0.8.0.tar.xz
1115 </p>
1116 <p> <a href="#top">[top]</a> </p>
1117 <h3 id="DW202306-004">36) DW202306-004</h3>
1118 <p>id: DW202306-004
1119 </p>
1120 <p>cve:</p>
1121 <p>fuzzer: ossfuzz id: 59595
1122 </p>
1123 <p>datereported: 2023-06-09
1124 </p>
1125 <p>reportedby: shinibufa (github)
1126 </p>
1127 <p>vulnerability: Signed Integer overflow
1128 </p>
1129 <p>product: libdwarf
1130 </p>
1131 <p>description: Signed Integer Overflow.
1132 In _dwarf_exec_frame_instr(),
1133 called by dwarf_expand_frame_instructions(),
1134 there was a DW_CFA_LLVM_def_aspace_cfa_sf
1135 and we failed to check for overflow.
1136 The test case had a overflow.
1137 Now we do that check.
1138 </p>
1139 <p>datefixed: 2023-06-10
1140 </p>
1141 <p>references: regressiontests/ossfuzz59595/fuzz_set_frame_all-5319697747542016
1142 </p>
1143 <p>gitfixid: e8c726e2be644df2706342b7a80633d07ecd7fb4
1144 </p>
1145 <p>tarrelease: libdwarf-0.8.0.tar.xz
1146 </p>
1147 <p> <a href="#top">[top]</a> </p>
1148 <h3 id="DW202306-003">37) DW202306-003</h3>
1149 <p>id: DW202306-003
1150 </p>
1151 <p>cve:</p>
1152 <p>fuzzer: shinibufa
1153 </p>
1154 <p>datereported: 2023-06-09
1155 </p>
1156 <p>reportedby: shinibufa (github)
1157 </p>
1158 <p>vulnerability: use after free
1159 </p>
1160 <p>product: libdwarf
1161 </p>
1162 <p>description: Heap use-after-free dwarf_query.c
1163 </p>
1164 <p>datefixed: 2023-05-19
1165 </p>
1166 <p>references: regressiontests/shinibufa/fuzzed_input_file
1167 </p>
1168 <p>gitfixid: 4017ab8b92195641e6876b388cebe2d3307634f5
1169 </p>
1170 <p>tarrelease: libdwarf-0.7.0.tar.xz
1171 </p>
1172 <p> <a href="#top">[top]</a> </p>
1173 <h3 id="DW202306-002">38) DW202306-002</h3>
1174 <p>id: DW202306-002
1175 </p>
1176 <p>cve:</p>
1177 <p>fuzzer: ossfuzz id: 59519
1178 </p>
1179 <p>datereported: 2023-06-01
1180 </p>
1181 <p>reportedby: David Korczynski
1182 </p>
1183 <p>vulnerability: Integer Overflow
1184 </p>
1185 <p>product: libdwarf
1186 </p>
1187 <p>description: Integer Overflow in
1188 _dwarf_exec_frame_instr() called by
1189 dwarf_expand_frame_instructions.
1190 We now check for overflows in add and
1191 multiply here.
1192 Similar to ossfuzz 59517
1193 </p>
1194 <p>datefixed: 2023-06-08
1195 </p>
1196 <p>references: regressiontests/ossfuzz59519/fuzz_set_frame_all-4670829255065600
1197 </p>
1198 <p>gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
1199 </p>
1200 <p>tarrelease: libdwarf-0.8.0.tar.xz
1201 </p>
1202 <p> <a href="#top">[top]</a> </p>
1203 <h3 id="DW202306-001">39) DW202306-001</h3>
1204 <p>id: DW202306-001
1205 </p>
1206 <p>cve:</p>
1207 <p>fuzzer: ossfuzz id: 59517
1208 </p>
1209 <p>datereported: 2023-06-01
1210 </p>
1211 <p>reportedby: David Korczynski
1212 </p>
1213 <p>vulnerability: Signed Integer Overflow
1214 </p>
1215 <p>product: libdwarf
1216 </p>
1217 <p>description: Nine different places in dwarf_frame.c
1218 multiplied a factored value by a (usually) small integer
1219 without checking if the factored value read from
1220 the object could possibly be real. So the
1221 factored value when multiplied by the factor
1222 could overflow. In some of the cases the factored value
1223 is signed, some it is unsigned.
1224 This sanity checking of factored frame offset
1225 values never existed before in the library.
1226 </p>
1227 <p>datefixed: 2023-06-08
1228 </p>
1229 <p>references: regressiontests/ossfuzz59517/fuzz_set_frame_all-5741671019839488
1230 </p>
1231 <p>gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
1232 </p>
1233 <p>tarrelease: libdwarf-0.8.0.tar.xz
1234 </p>
1235 <p> <a href="#top">[top]</a> </p>
1236 <h3 id="DW202305-010">40) DW202305-010</h3>
1237 <p>id: DW202305-010
1238 </p>
1239 <p>cve:</p>
1240 <p>fuzzer: ossfuzz id: 59478
1241 </p>
1242 <p>datereported: 2023-05-31
1243 </p>
1244 <p>reportedby: David Korczynski
1245 </p>
1246 <p>vulnerability: Memory leak in dwarf_expand_frame_instructions()
1247 </p>
1248 <p>product: libdwarf
1249 </p>
1250 <p>description: Fuzzing provoked one of four error cases that
1251 could leak locally allocated memory from _dwarf_exec_frame_instructor()
1252 (called by dwarf_expand_frame_instructions).
1253 The code did free(localregtab) but
1254 needed to do FREELOCALMALLOC, a macro specific
1255 to this function which cleans up all local allocations.
1256 All four places have been corrected.
1257 Called enough times with fuzzed data could result
1258 in filling memory leading to the library being unable
1259 to work for the caller and instead just returning errors.
1260 This bug has been present in the code for many years.
1261 </p>
1262 <p>datefixed: 2023-05-31
1263 </p>
1264 <p>references: regressiontests/ossfuzz59478/fuzz_set_frame_all-5300774457180160
1265 </p>
1266 <p>gitfixid: 8ef9c8fb613e59f534e789e91a73088eaa5b8a5a
1267 </p>
1268 <p>tarrelease: libdwarf-0.8.0.tar.xz
1269 </p>
1270 <p> <a href="#top">[top]</a> </p>
1271 <h3 id="DW202305-009">41) DW202305-009</h3>
1272 <p>id: DW202305-009
1273 </p>
1274 <p>cve:</p>
1275 <p>fuzzer: ossfuzz id: 56451
1276 </p>
1277 <p>datereported: 2023-02-28
1278 </p>
1279 <p>reportedby: David Korczynski
1280 </p>
1281 <p>vulnerability: Write to memory fails
1282 </p>
1283 <p>product: libdwarf
1284 </p>
1285 <p>description: One problem is a bug in the test source:
1286 fuzz/fuzz_dnames.c. It calls dwarf_dnames_abbrevtable()
1287 incorrectly. The caller is required to provide arrays
1288 dw_idxattr_array and dw_form_array and pass a pointer to such.
1289 The code was just passing in a pointer to nothing.
1290 The library code has no possible way to determine the passed
1291 in pointers are usable.
1292 In addition, dwarf_dnames_abbrevtable() did not
1293 check that pointers passed in were non-null before
1294 use, but now it does.
1295 </p>
1296 <p>datefixed: 2023-05-30
1297 </p>
1298 <p>references: regressiontests/ossfuzz56451/fuzz_dnames-4986494365597696
1299 </p>
1300 <p>gitfixid: 12a612fc8db38fc26cd5e6064f09a6f825891c7c
1301 </p>
1302 <p>tarrelease: libdwarf-0.8.0.tar.xz
1303 </p>
1304 <p> <a href="#top">[top]</a> </p>
1305 <h3 id="DW202305-008">42) DW202305-008</h3>
1306 <p>id: DW202305-008
1307 </p>
1308 <p>cve:</p>
1309 <p>fuzzer: ossfuzz id: 56492
1310 </p>
1311 <p>datereported: 2023-02-28
1312 </p>
1313 <p>reportedby: David Korczynski
1314 </p>
1315 <p>vulnerability: Timeout (exceeds 50 seconds)
1316 </p>
1317 <p>product: fuzz testing
1318 </p>
1319 <p>description: The problem is a bug in the test source:
1320 fuzz/fuzz_macro_dwarf5.c. One must not blame the
1321 fuzzer author for examplep5(),
1322 the code was based on doc/checkexamples.c
1323 and there examplep() was really just a sketch.
1324 The testcase here no longer specifies an infinite loop.
1325 </p>
1326 <p>datefixed: 2023-05-23
1327 </p>
1328 <p>references: regressiontests/ossfuzz56492/fuzz_macro_dwarf5-6497277180248064
1329 </p>
1330 <p>gitfixid: 97a78122268c9a74701f2dd3115f902309e9a484
1331 </p>
1332 <p>tarrelease: libdwarf-0.8.0.tar.xz
1333 </p>
1334 <p> <a href="#top">[top]</a> </p>
1335 <h3 id="DW202305-007">43) DW202305-007</h3>
1336 <p>id: DW202305-007
1337 </p>
1338 <p>cve:</p>
1339 <p>fuzzer: ossfuzz id: 56474
1340 </p>
1341 <p>datereported: 2023-02-28
1342 </p>
1343 <p>reportedby: David Korczynski
1344 </p>
1345 <p>vulnerability: Null pointer dereference.
1346 </p>
1347 <p>product: libdwarf
1348 </p>
1349 <p>description: Calling dwarf_highpc_b() lead to crash.
1350 The function was dereferencing an argument before
1351 the argument was checked. Now it is checked
1352 for null before any dereference.
1353 In addition, the test code, fuzz/fuzz_die_cu_attrs_loclist.c,
1354 called dwarf_highpc_b() with a Dwarf_Die that is
1355 uninitialized local variable (hence contents unpredictable).
1356 C code has no way to catch such a caller error.
1357 This is a bug in the test code.
1358 We are changed the test code local data pointer variable
1359 to be initialized with the value 0.
1360 </p>
1361 <p>datefixed: 2023-05-23
1362 </p>
1363 <p>references: regressiontests/ossfuzz56474/fuzz_die_cu_attrs_loclist-4719938125561856
1364 </p>
1365 <p>gitfixid: b3df2530732ea515cda5a85438871e15c6723ead
1366 </p>
1367 <p>tarrelease: libdwarf-0.8.0.tar.xz
1368 </p>
1369 <p> <a href="#top">[top]</a> </p>
1370 <h3 id="DW202305-006">44) DW202305-006</h3>
1371 <p>id: DW202305-006
1372 </p>
1373 <p>cve:</p>
1374 <p>fuzzer: ossfuzz id: 56472
1375 </p>
1376 <p>datereported: 2023-02-27
1377 </p>
1378 <p>reportedby: David Korczynski
1379 </p>
1380 <p>vulnerability: Crash on null pointer argument.
1381 </p>
1382 <p>product: libdwarf
1383 </p>
1384 <p>description: A call to any dwarf_get_fission
1385 or any API entry with _xu_ in the name
1386 (functions for DWARF5 Debug Fission, called Split Dwarf
1387 in DWARF5) would crash the caller if any relevant argument
1388 was null. The problem has existed since the code
1389 was written in 2021.
1390 Once that is fixed valgrind complains about using
1391 an uninitialized value.
1392 fuzz/fuzz_simplereader_tu.c calls libdwarf with
1393 the declation being Dwarf_Die die; no initializer
1394 present. Bad behavior, even a library crash is
1395 likely.
1396 </p>
1397 <p>datefixed: 2023-05-30
1398 </p>
1399 <p>references: regressiontests/ossfuzz56472/fuzz_simplereader_tu-6614412934119424
1400 </p>
1401 <p>gitfixid: 8b17d41a31c33e0b3b9727a8044e0093a754d6d7
1402 </p>
1403 <p>tarrelease: libdwarf-0.8.0.tar.xz
1404 </p>
1405 <p> <a href="#top">[top]</a> </p>
1406 <h3 id="DW202305-005">45) DW202305-005</h3>
1407 <p>id: DW202305-005
1408 </p>
1409 <p>cve:</p>
1410 <p>fuzzer: ossfuzz id: 56462
1411 </p>
1412 <p>datereported: 2023-02-28
1413 </p>
1414 <p>reportedby: David Korczynski
1415 </p>
1416 <p>vulnerability: Unpredictable crash or erroneous data returned
1417 </p>
1418 <p>product: libdwarf
1419 </p>
1420 <p>description: A call to dwarf_set_frame_undefined_value()
1421 dwarf_set_frame_rule_initial_value() dwarf_set_frame_same_value()
1422 dwarf_set_frame_cfa_value() dwarf_set_frame_rule_table_size()
1423 with unusable values was not being caught.
1424 Now if the set of values violates the required
1425 relationships an error is returned on requesting
1426 actual frame data.
1427 The problem has existed for many years (fixed May 23).
1428 Once that is fixed valgrind shows leaks. That is because
1429 fuzz/fuzz_set_frame_all.c fails to call dwarf_finish() and,
1430 instead, simple exit()s at several places. Updated the
1431 test source to return from its functions and only
1432 exit() from main() after the dwarf_finish() call.
1433 </p>
1434 <p>datefixed: 2023-05-30
1435 </p>
1436 <p>references: regressiontests/ossfuzz56462/fuzz_set_frame_all-5424385441005568
1437 </p>
1438 <p>gitfixid: 21b33d13024d18b09e32914ca5718a5c81d1ad67
1439 </p>
1440 <p>tarrelease: libdwarf-0.8.0.tar.xz
1441 </p>
1442 <p> <a href="#top">[top]</a> </p>
1443 <h3 id="DW202305-004">46) DW202305-004</h3>
1444 <p>id: DW202305-004
1445 </p>
1446 <p>cve:</p>
1447 <p>fuzzer: ossfuzz id: 56446
1448 </p>
1449 <p>datereported: 2023-02-28
1450 </p>
1451 <p>reportedby: David Korczynski
1452 </p>
1453 <p>vulnerability: Incorrect section bound check
1454 </p>
1455 <p>product: libdwarf test code
1456 </p>
1457 <p>description: The test program fuzz_dnames.c passed
1458 a non-null pointer containing garbage content.
1459 The fix is to initialize (in fuzz_dnames.c)
1460 the local variable to null (0).
1461 </p>
1462 <p>datefixed: 2023-05-23
1463 </p>
1464 <p>references: regressiontests/ossfuzz56446/fuzz_dnames-4784811358420992
1465 </p>
1466 <p>gitfixid: 6fac1021c67d72da6b65f99ad815978d40b4c1e8
1467 </p>
1468 <p>tarrelease: libdwarf-0.8.0.tar.xz
1469 </p>
1470 <p> <a href="#top">[top]</a> </p>
1471 <h3 id="DW202305-003">47) DW202305-003</h3>
1472 <p>id: DW202305-003
1473 </p>
1474 <p>cve:</p>
1475 <p>fuzzer: ossfuzz id: 59091
1476 </p>
1477 <p>datereported: 2023-05-19
1478 </p>
1479 <p>reportedby: David Korczynski
1480 </p>
1481 <p>vulnerability: Incorrect section bound check
1482 </p>
1483 <p>product: libdwarf
1484 </p>
1485 <p>description: A fuzzed line table in the non-standard
1486 (experimental) two-level line table format
1487 exposed a failure as the test was v &gt; sectionend
1488 whereas it has to be v &gt;= sectionend as end pointers
1489 are always one-past the end of the area.
1490 This was incorrect since the experimental table support
1491 was added in 2021.
1492 </p>
1493 <p>datefixed: 2023-05-19
1494 </p>
1495 <p>references: regressiontests/ossfuzz59091/fuzz_macro_dwarf5-5135813562990592
1496 </p>
1497 <p>gitfixid: 4017ab8b92195641e6876b388cebe2d3307634f5
1498 </p>
1499 <p>tarrelease: libdwarf-0.7.0.tar.xz
1500 </p>
1501 <p> <a href="#top">[top]</a> </p>
1502 <h3 id="DW202305-002">48) DW202305-002</h3>
1503 <p>id: DW202305-002
1504 </p>
1505 <p>cve:</p>
1506 <p>fuzzer: ossfuzz id: 58797
1507 </p>
1508 <p>datereported: 2023-05-10
1509 </p>
1510 <p>reportedby: David Korczynski
1511 </p>
1512 <p>vulnerability: Memory Leak reading experimental line table
1513 </p>
1514 <p>product: libdwarf
1515 </p>
1516 <p>description: A fuzzed line table in the non-standard
1517 (experimental) two-level line table format had
1518 several unchecked values and one was larger than
1519 made any sense, and detecting the error revealed
1520 a memory leak. Caused by the incomplete fix to
1521 DW202305-001 (yesterday).
1522 This is was a failure to run some crucial tests,
1523 which would have exposed the problem before
1524 DW202305-001 was completed. Incomplete testing.
1525 </p>
1526 <p>datefixed: 2023-05-10
1527 </p>
1528 <p>references: regressiontests/ossfuzz58797/fuzz_macro_dwarf5-4872686367801344
1529 </p>
1530 <p>gitfixid: eeb935200f78b8509e6b1837f6825b9d551b9f7d
1531 </p>
1532 <p>tarrelease: libdwarf-0.7.0.tar.xz
1533 </p>
1534 <p> <a href="#top">[top]</a> </p>
1535 <h3 id="DW202305-001">49) DW202305-001</h3>
1536 <p>id: DW202305-001
1537 </p>
1538 <p>cve:</p>
1539 <p>fuzzer: ossfuzz id: 58769
1540 </p>
1541 <p>datereported: 2023-05-09
1542 </p>
1543 <p>reportedby: David Korczynski
1544 </p>
1545 <p>vulnerability: Excessive malloc reading experimental line table
1546 </p>
1547 <p>product: libdwarf
1548 </p>
1549 <p>description: A fuzzed line table in the non-standard
1550 (experimental) two-level line table format had
1551 several unchecked values and one was larger than
1552 made any sense.
1553 The failure was due to oss-fuzz limiting malloc to 3GB.
1554 The failure was appropriate as the fuzzed values were
1555 inappropriate. We now check for sensible values.
1556 See libdwarf/dwarf_line_table_reader_common.h
1557 The code was in libdwarf starting in 2021.
1558 </p>
1559 <p>datefixed: 2023-05-09
1560 </p>
1561 <p>references: regressiontests/ossfuzz58769/fuzz_macro_dwarf5-5460713058205696
1562 </p>
1563 <p>gitfixid: edc241bd0bf22c94d2d496f3cb761e60f066cd14
1564 </p>
1565 <p>tarrelease: libdwarf-0.7.0.tar.xz
1566 </p>
1567 <p> <a href="#top">[top]</a> </p>
1568 <h3 id="DW202304-004">50) DW202304-004</h3>
1569 <p>id: DW202304-004
1570 </p>
1571 <p>cve:</p>
1572 <p>fuzzer: ossfuzz id: 58026
1573 </p>
1574 <p>datereported: 2023-04-15
1575 </p>
1576 <p>reportedby: David Korczynski
1577 </p>
1578 <p>vulnerability: Segv on unknown address reading frame data.
1579 </p>
1580 <p>product: libdwarf
1581 </p>
1582 <p>description: On reading a corrupt frame register number
1583 the library could crash with a segmentation violation.
1584 This bug has been present in the code for 25 years.
1585 The conversion of an impossibly large
1586 (carefully constructed) register number
1587 to a Dwarf_Half or unsigned int the result looked
1588 reasonable, invalidating some tests for
1589 reasonableness. Now we do all the tests
1590 on the full Dwarf_Unsigned register number(s)
1591 and retain the value in the long form everywhere.
1592 Fixed 2023-04-15.
1593 Once that is fixed there is still a leak found by valgrind.
1594 Tht test code fuzz/fuzz_set_frame_all.c does a local
1595 malloc and in some cases returned without free-ing it
1596 locally. Now that local malloc has the necessary
1597 local free.
1598 </p>
1599 <p>datefixed: 2023-05-30
1600 </p>
1601 <p>references: regressiontests/ossfuzz58026/fuzz_set_frame_all-4582976972521472.fuzz
1602 </p>
1603 <p>gitfixid: 21b33d13024d18b09e32914ca5718a5c81d1ad67
1604 </p>
1605 <p>tarrelease: libdwarf-0.8.0.tar.xz
1606 </p>
1607 <p> <a href="#top">[top]</a> </p>
1608 <h3 id="DW202304-003">51) DW202304-003</h3>
1609 <p>id: DW202304-003
1610 </p>
1611 <p>cve:</p>
1612 <p>fuzzer: ossfuzz id: 57887
1613 </p>
1614 <p>datereported: 2023-04-10
1615 </p>
1616 <p>reportedby: David Korczynski
1617 </p>
1618 <p>vulnerability: Reading outside the intended section data.
1619 </p>
1620 <p>product: libdwarf
1621 </p>
1622 <p>description: Crash in libdwarf on reading
1623 .debug_addr given a bogus index entry.
1624 Due to failing to correctly check that the index is
1625 out of range.
1626 The index was close to overflowing Dwarf_Unsigned
1627 so testing values *after* arithmetic done on the
1628 incoming index was too late:
1629 so we read outside the .debug_addr table.
1630 The checks have been incomplete since this DWARF5 section
1631 code was written. libdwarf/dwarf_query.c
1632 </p>
1633 <p>datefixed: 2023-04-11
1634 </p>
1635 <p>references: regressiontests/ossfuzz57887/fuzz_die_cu-4866423964172288
1636 </p>
1637 <p>gitfixid: 1729d9af3f690bece912ae0f625b312566d0ae25
1638 </p>
1639 <p>tarrelease: libdwarf-0.7.0.tar.xz
1640 </p>
1641 <p> <a href="#top">[top]</a> </p>
1642 <h3 id="DW202304-002">52) DW202304-002</h3>
1643 <p>id: DW202304-002
1644 </p>
1645 <p>cve:</p>
1646 <p>fuzzer: ossfuzz id: 57766
1647 </p>
1648 <p>datereported: 2023-04-07
1649 </p>
1650 <p>reportedby: David Korczynski
1651 </p>
1652 <p>vulnerability: Heap Buffer Overflow
1653 </p>
1654 <p>product: libdwarf
1655 </p>
1656 <p>description: Crash in libdwarf on reading an attribute
1657 due to failing to check that an index into .debug_str_offsets
1658 is sane. So we read far outside the relevant table.
1659 The checks have been incomplete since this DWARF5 section
1660 code was written. Two functions in libdwarf
1661 dwarf_form.c had the same problem.
1662 </p>
1663 <p>datefixed: 2023-04-09
1664 </p>
1665 <p>references: regressiontests/ossfuzz57766/fuzz_die_cu_print-5295062170075136
1666 </p>
1667 <p>gitfixid: 761da806fc950c6b26c1763e8989a814e9b16a59
1668 </p>
1669 <p>tarrelease: libdwarf-0.7.0.tar.xz
1670 </p>
1671 <p> <a href="#top">[top]</a> </p>
1672 <h3 id="DW202304-001">53) DW202304-001</h3>
1673 <p>id: DW202304-001
1674 </p>
1675 <p>cve:</p>
1676 <p>fuzzer: ossfuzz id: 57711
1677 </p>
1678 <p>datereported: 2023-04-04
1679 </p>
1680 <p>reportedby: David Korczynski
1681 </p>
1682 <p>vulnerability: dereference null pointer
1683 </p>
1684 <p>product: libdwarf
1685 </p>
1686 <p>description: Crash in libdwarf on dwarf_srcfiles() call.
1687 A dereference off a null pointer due to corrupt
1688 file numbers not being noticed. Any such crash left an
1689 incomplete and misleading stack trace.
1690 The large numbers treated as Dwarf_Signed were part of the problem.
1691 Now in libdwarf we check Dwarf_Signed for negative values and issue
1692 an error if the value less than 0. So later casts to
1693 Dwarf_Unsigned work as intended.
1694 The libdwarf problems have been in the library for a very
1695 long time.
1696 </p>
1697 <p>datefixed: 2023-04-06
1698 </p>
1699 <p>references: regressiontests/ossfuzz57711/fuzz_srcfiles-4695324781576192
1700 </p>
1701 <p>gitfixid: da0d1efbeddcff23c25704bd9672e98314928b19
1702 </p>
1703 <p>tarrelease: libdwarf-0.7.0.tar.xz
1704 </p>
1705 <p> <a href="#top">[top]</a> </p>
1706 <h3 id="DW202303-059">54) DW202303-059</h3>
1707 <p>id: DW202303-059
1708 </p>
1709 <p>cve:</p>
1710 <p>fuzzer: ossfuzz id: 57562
1711 </p>
1712 <p>datereported: 2023-03-30
1713 </p>
1714 <p>reportedby: David Korczynski
1715 </p>
1716 <p>vulnerability: Infinite loop reading DIEs
1717 </p>
1718 <p>product: libdwarf
1719 </p>
1720 <p>description: Caller looping on dwarf_siblingof_b()
1721 (wanting to touch all siblings)
1722 could be put in an infinite loop.
1723 A DW_AT_sibling attribute with a corrupted
1724 attribute value meant the caller never sees
1725 the DW_DLV_NO_ENTRY return signalling all siblings
1726 have been seen.
1727 </p>
1728 <p>datefixed: 2023-04-01
1729 </p>
1730 <p>references: regressiontests/ossfuzz57562/fuzz_findfuncbypc-6681114772373504
1731 </p>
1732 <p>gitfixid: 21b076f652992c03f145f6edeb623918e17693f8
1733 </p>
1734 <p>tarrelease: libdwarf-0.7.0.tar.xz
1735 </p>
1736 <p> <a href="#top">[top]</a> </p>
1737 <h3 id="DW202303-058">55) DW202303-058</h3>
1738 <p>id: DW202303-058
1739 </p>
1740 <p>cve:</p>
1741 <p>fuzzer: ossfuzz id: 57527
1742 </p>
1743 <p>datereported: 2023-03-29
1744 </p>
1745 <p>reportedby: David Korczynski
1746 </p>
1747 <p>vulnerability: reading off end of valid data can crash library
1748 </p>
1749 <p>product: libdwarf
1750 </p>
1751 <p>description: A line table header truncated by a fuzzer
1752 to just the right length (anywhere within a 12 byte area)
1753 would cause memory references outside of valid data.
1754 Now we check there is object data present
1755 before referring to that area and if not, return
1756 an error.
1757 </p>
1758 <p>datefixed: 2023-03-30
1759 </p>
1760 <p>references: regressiontests/ossfuzz57527/fuzz_srcfiles-4599045397282816
1761 </p>
1762 <p>gitfixid: 36e4063ade31c9ea6ea5df973d2045b36877885b
1763 </p>
1764 <p>tarrelease: libdwarf-0.7.0.tar.xz
1765 </p>
1766 <p> <a href="#top">[top]</a> </p>
1767 <h3 id="DW202303-057">56) DW202303-057</h3>
1768 <p>id: DW202303-057
1769 </p>
1770 <p>cve:</p>
1771 <p>fuzzer:</p>
1772 <p>datereported: 2023-03-26
1773 </p>
1774 <p>reportedby: Pedro Navarro
1775 </p>
1776 <p>vulnerability: Unable to read large object sections
1777 </p>
1778 <p>product: libdwarf
1779 </p>
1780 <p>description: A section 2GB+ in size could not be
1781 read by libdwarf. Such is a Denial of Service.
1782 Simply turning the big read
1783 into however many are needed (each below 2GB)
1784 was simple to do. The limitation in the 'read'
1785 libc function (really a Linux kernel
1786 limitation) is well documented but
1787 we had not noticed before now.
1788 Few object files are so large.
1789 </p>
1790 <p>datefixed: 2023-03-28
1791 </p>
1792 <p>references:</p>
1793 <p>gitfixid: 8bf96199a0e130483cceca6bfacfbe4127441ab1
1794 </p>
1795 <p>tarrelease: libdwarf-0.7.0.tar.xz
1796 </p>
1797 <p> <a href="#top">[top]</a> </p>
1798 <h3 id="DW202303-056">57) DW202303-056</h3>
1799 <p>id: DW202303-056
1800 </p>
1801 <p>cve:</p>
1802 <p>fuzzer: ossfuzz id: 57516
1803 </p>
1804 <p>datereported: 2023-03-28
1805 </p>
1806 <p>reportedby: David Korczynski
1807 </p>
1808 <p>vulnerability: Null dereference in dwarf_hasattr()
1809 </p>
1810 <p>product: libdwarf
1811 </p>
1812 <p>description: With a corrupted attribute
1813 dwarf_hasattr() could try to access
1814 an implicit_const abbrev value indexing
1815 off of a NULL library internal pointer.
1816 Because the abbrev section had no actual implicit
1817 const value due to the corruption, so the internal
1818 array for holding such was not present.
1819 The pointer abl_implicit_const was NULL.
1820 Now we test the pointer for NULL and if NULL
1821 report an error.
1822 This lack of a NULL check has existed
1823 for many years.
1824 </p>
1825 <p>datefixed: 2023-03-29
1826 </p>
1827 <p>references: regressiontests/ossfuzz57516/fuzz_die_cu_attrs-6171488289161216
1828 </p>
1829 <p>gitfixid: 5dc3de5ce70331692a2700b218fb79e0d4d81c23
1830 </p>
1831 <p>tarrelease: libdwarf-0.7.0.tar.xz
1832 </p>
1833 <p> <a href="#top">[top]</a> </p>
1834 <h3 id="DW202303-055">58) DW202303-055</h3>
1835 <p>id: DW202303-055
1836 </p>
1837 <p>cve:</p>
1838 <p>fuzzer: ossfuzz id: 57485
1839 </p>
1840 <p>datereported: 2023-03-27
1841 </p>
1842 <p>reportedby: David Korczynski
1843 </p>
1844 <p>vulnerability:</p>
1845 <p>product: None, test code bug
1846 </p>
1847 <p>description: Abort in fuzz_die_cu_attrs.c
1848 The fault was in test code.
1849 Since fixed (earlier today). No code change here.
1850 </p>
1851 <p>datefixed: 2023-03-28
1852 </p>
1853 <p>references: regressiontests/ossfuzz57485/
1854 </p>
1855 <p>gitfixid: 2b19bc239f3cedd1b2461e4265d90633277ce704
1856 </p>
1857 <p>tarrelease: libdwarf-0.7.0.tar.xz
1858 </p>
1859 <p> <a href="#top">[top]</a> </p>
1860 <h3 id="DW202303-054">59) DW202303-054</h3>
1861 <p>id: DW202303-054
1862 </p>
1863 <p>cve:</p>
1864 <p>fuzzer: ossfuzz id: 57463
1865 </p>
1866 <p>datereported: 2023-03-24
1867 </p>
1868 <p>reportedby: David Korczynski
1869 </p>
1870 <p>vulnerability: dereference null in test code
1871 </p>
1872 <p>product: none, test code bug
1873 </p>
1874 <p>description: The fault was in test code.
1875 fuzz_die_cu_attrs.c
1876 Since fixed (earlier today). No code change here.
1877 </p>
1878 <p>datefixed: 2023-03-24
1879 </p>
1880 <p>references: regressiontests/ossfuzz57463/fuzz_die_cu_attrs-5158380196200448
1881 </p>
1882 <p>gitfixid: e4053c9a0f25db0bed28372d9b77a50a0307dc10
1883 </p>
1884 <p>tarrelease: libdwarf-0.7.0.tar.xz
1885 </p>
1886 <p> <a href="#top">[top]</a> </p>
1887 <h3 id="DW202303-053">60) DW202303-053</h3>
1888 <p>id: DW202303-053
1889 </p>
1890 <p>cve:</p>
1891 <p>fuzzer: ossfuzz id: 57443
1892 </p>
1893 <p>datereported: 2023-03-24
1894 </p>
1895 <p>reportedby: David Korczynski
1896 </p>
1897 <p>vulnerability: Double free in _dwarf_read_line_table_header
1898 </p>
1899 <p>product: libdwarf
1900 </p>
1901 <p>description: The same bug seen earlier
1902 A double free when a particular error is
1903 in the line table header.
1904 Fixed already.
1905 gitfixid is more recent than truly required.
1906 </p>
1907 <p>datefixed: 2023-03-28
1908 </p>
1909 <p>references: regressiontests/ossfuzz57443/fuzz_srcfiles-6015429578719232
1910 </p>
1911 <p>gitfixid: c25a14c3fd5522aff0b1d2a77d7ee66b7c529779
1912 </p>
1913 <p>tarrelease: libdwarf-0.7.0.tar.xz
1914 </p>
1915 <p> <a href="#top">[top]</a> </p>
1916 <h3 id="DW202303-052">61) DW202303-052</h3>
1917 <p>id: DW202303-052
1918 </p>
1919 <p>cve:</p>
1920 <p>fuzzer: ossfuzz id: 57442
1921 </p>
1922 <p>datereported: 2023-03-24
1923 </p>
1924 <p>reportedby: David Korczynski
1925 </p>
1926 <p>vulnerability: Heap buffer overflow
1927 </p>
1928 <p>product: libdwarf
1929 </p>
1930 <p>description: Corrupt .debug_rngslists leads to crash
1931 when a rnglists header has a length indicating
1932 a longer section than we really have.
1933 Now we check more carefully for that situation.
1934 The bug existed from 2017, when DWARF5 support
1935 was added to the library.
1936 </p>
1937 <p>datefixed: 2023-03-28
1938 </p>
1939 <p>references: regressiontests/ossfuzz57442/fuzz_rng-5974595378479104
1940 </p>
1941 <p>gitfixid: 271b9b8367a8151fcd98723d73382ec56f05c810
1942 </p>
1943 <p>tarrelease: libdwarf-0.7.0.tar.xz
1944 </p>
1945 <p> <a href="#top">[top]</a> </p>
1946 <h3 id="DW202303-051">62) DW202303-051</h3>
1947 <p>id: DW202303-051
1948 </p>
1949 <p>cve:</p>
1950 <p>fuzzer: ossfuzz id: 57437
1951 </p>
1952 <p>datereported: 2023-03-24
1953 </p>
1954 <p>reportedby: David Korczynski
1955 </p>
1956 <p>vulnerability: Heap double free
1957 </p>
1958 <p>product: libdwarf
1959 </p>
1960 <p>description: In a specific error case
1961 reading a fuzzed object and calling
1962 dwarf_srcfiles local data was
1963 freed twice. The bug was
1964 fixed earlier, and involved
1965 src/lib/libdwarf/dwarf_line_table_reader_common.h.
1966 </p>
1967 <p>datefixed: 2023-03-28
1968 </p>
1969 <p>references: regressiontests/ossfuzz57437/fuzz_srcfiles-5281689109921792
1970 </p>
1971 <p>gitfixid: c25a14c3fd5522aff0b1d2a77d7ee66b7c529779
1972 </p>
1973 <p>tarrelease: libdwarf-0.7.0.tar.xz
1974 </p>
1975 <p> <a href="#top">[top]</a> </p>
1976 <h3 id="DW202303-050">63) DW202303-050</h3>
1977 <p>id: DW202303-050
1978 </p>
1979 <p>cve:</p>
1980 <p>fuzzer: ossfuzz id: 57429
1981 </p>
1982 <p>datereported: 2023-03-24
1983 </p>
1984 <p>reportedby: David Korczynski
1985 </p>
1986 <p>vulnerability: invalid free() in test source
1987 </p>
1988 <p>product: libdwarf
1989 </p>
1990 <p>description: The test source violates libdwarf requirements.
1991 fuzz/fuzz_die_cu_attrs.c was doing free on a name pointer
1992 returned from dwarf_diename. The documentation clearly
1993 states that pointer should not have a free() done.
1994 fix id below is fixing the test source.
1995 </p>
1996 <p>datefixed: 3023-03-28
1997 </p>
1998 <p>references: regressiontests/ossfuzz57429/fuzz_die_cu_attrs-4845537731149824
1999 </p>
2000 <p>gitfixid: 2b19bc239f3cedd1b2461e4265d90633277ce704
2001 </p>
2002 <p>tarrelease: libdwarf-0.7.0.tar.xz
2003 </p>
2004 <p> <a href="#top">[top]</a> </p>
2005 <h3 id="DW202303-049">64) DW202303-049</h3>
2006 <p>id: DW202303-049
2007 </p>
2008 <p>cve:</p>
2009 <p>fuzzer: ossfuzz id: 57408
2010 </p>
2011 <p>datereported: 2023-03-24
2012 </p>
2013 <p>reportedby: David Korczynski
2014 </p>
2015 <p>vulnerability: Stack Overflow, _dwarf_create_a_new_cu_context...
2016 </p>
2017 <p>product: libdwarf
2018 </p>
2019 <p>description: involves find_sig8_target_as_global_offset()
2020 and is the same problem as seen in other guises earlier.
2021 The case becomes an infinite loop, so eventually the
2022 stack gets exhausted. Fixed.
2023 See also ossfuzz id 56540. ossfuzz id 56487. ossfuzz id 56497.
2024 ossfuzz 57480
2025 </p>
2026 <p>datefixed: 2023-03-26
2027 </p>
2028 <p>references: regressiontests/ossfuzz57408/fuzz_die_cu-4702098356043776
2029 </p>
2030 <p>gitfixid: 24f5697aecd77092de20f0f7e7d91fbc1f2b3da0
2031 </p>
2032 <p>tarrelease: libdwarf-0.7.0.tar.xz
2033 </p>
2034 <p> <a href="#top">[top]</a> </p>
2035 <h3 id="DW202303-048">65) DW202303-048</h3>
2036 <p>id: DW202303-048
2037 </p>
2038 <p>cve:</p>
2039 <p>fuzzer: ossfuzz
2040 </p>
2041 <p>datereported: 2023-03-08
2042 </p>
2043 <p>reportedby: Youngseok Choi
2044 </p>
2045 <p>vulnerability: Memory leak (was double free).
2046 </p>
2047 <p>product: dwarfdump
2048 </p>
2049 <p>description: The command:
2050 dwarfdump --file-name=&lt;file&gt; -kG -ka &lt;objectfile&gt;
2051 results in a a memory leak.
2052 In certain error cases we failed to fclose()
2053 a FILE * used to read dwarfdump.conf.
2054 Earlier changes fixed the double free, this
2055 fixes the memory leak..
2056 </p>
2057 <p>datefixed: 2023-03-24
2058 </p>
2059 <p>references: regressiontests/choi015/poc_file_03
2060 </p>
2061 <p>gitfixid: 24f5697aecd77092de20f0f7e7d91fbc1f2b3da0
2062 </p>
2063 <p>tarrelease: libdwarf-0.7.0.tar.xz
2064 </p>
2065 <p> <a href="#top">[top]</a> </p>
2066 <h3 id="DW202303-047">66) DW202303-047</h3>
2067 <p>id: DW202303-047
2068 </p>
2069 <p>cve:</p>
2070 <p>fuzzer: ossfuzz
2071 </p>
2072 <p>datereported: 2023-03-08
2073 </p>
2074 <p>reportedby: Youngseok Choi
2075 </p>
2076 <p>vulnerability: Double Free
2077 </p>
2078 <p>product: dwarfdump
2079 </p>
2080 <p>description: The command:
2081 dwarfdump --check-unique --check-abbrev
2082 results in a double free.
2083 The table of unique errors contained
2084 makename() data, so that aspect caused
2085 a double free as makename gets destructed
2086 independently. Fixed now,letting makename
2087 destructor do the work.
2088 </p>
2089 <p>datefixed: 2023-03-24
2090 </p>
2091 <p>references: regressiontests/choi015/poc_file_04
2092 </p>
2093 <p>gitfixid: df64db4740f1b480e602b1112107d51f0d269828
2094 </p>
2095 <p>tarrelease: libdwarf-0.7.0.tar.xz
2096 </p>
2097 <p> <a href="#top">[top]</a> </p>
2098 <h3 id="DW202303-046">67) DW202303-046</h3>
2099 <p>id: DW202303-046
2100 </p>
2101 <p>cve:</p>
2102 <p>fuzzer: ossfuzz
2103 </p>
2104 <p>datereported: 2023-03-08
2105 </p>
2106 <p>reportedby: Youngseok Choi
2107 </p>
2108 <p>vulnerability: global buffer overflow
2109 </p>
2110 <p>product: dwarfdump
2111 </p>
2112 <p>description: The command:
2113 dwarfdump --search-regex=t[Ä…--]e
2114 Note the non-ascii character.
2115 The dwarfdump regex only allows ascii
2116 in search patterns, not the rest of UTF-8.
2117 </p>
2118 <p>datefixed: 2023-03-26
2119 </p>
2120 <p>references: regressiontests/choi012/poc_file_10
2121 </p>
2122 <p>gitfixid: 9eac0c8bbae3fadb2be3d5ee15b9c44f42d2f966
2123 </p>
2124 <p>tarrelease: libdwarf-0.7.0.tar.xz
2125 </p>
2126 <p> <a href="#top">[top]</a> </p>
2127 <h3 id="DW202303-045">68) DW202303-045</h3>
2128 <p>id: DW202303-045
2129 </p>
2130 <p>cve:</p>
2131 <p>fuzzer: ossfuzz
2132 </p>
2133 <p>datereported: 2023-03-08
2134 </p>
2135 <p>reportedby: Youngseok Choi
2136 </p>
2137 <p>vulnerability: Heap buffer overflow, regex
2138 </p>
2139 <p>product: dwarfdump
2140 </p>
2141 <p>description: The command:
2142 dwarfdump --search-regex=
2143 with a simple, really long, string.
2144 (with no file named)
2145 resulted in a buffer overflow in a buffer
2146 in dd_regex.c.
2147 No object file is required for the test.
2148 The code now checks stores to the internal array
2149 holding the non-deterministic finite automata (nfa)
2150 </p>
2151 <p>datefixed: 2023-03-25
2152 </p>
2153 <p>references: regressiontests/baselines/choi014.base
2154 </p>
2155 <p>gitfixid: bb8fab9e5e4e40b1268b31d90882c2ab93653eaf
2156 </p>
2157 <p>tarrelease: libdwarf-0.7.0.tar.xz
2158 </p>
2159 <p> <a href="#top">[top]</a> </p>
2160 <h3 id="DW202303-044">69) DW202303-044</h3>
2161 <p>id: DW202303-044
2162 </p>
2163 <p>cve:</p>
2164 <p>fuzzer: ossfuzz
2165 </p>
2166 <p>datereported: 2023-03-08
2167 </p>
2168 <p>reportedby: Youngseok Choi
2169 </p>
2170 <p>vulnerability: Heap buffer overflow
2171 </p>
2172 <p>product: dwarfdump
2173 </p>
2174 <p>description: The command:
2175 dwarfdump --search-regex=\\
2176 (with no file named)
2177 resulted in a heap use after free.
2178 No object file is required for the test.
2179 The dd_regex.c regex compiler failed
2180 to notice when a trailing backslash
2181 caused the pattern compiler to step
2182 past the pattern string.
2183 Now we notice and issue an error.
2184 </p>
2185 <p>datefixed: 2023-03-25
2186 </p>
2187 <p>references: regressiontests/baselines/choi013.base
2188 </p>
2189 <p>gitfixid: 3269f43d2a044bfcce71d30ce214a305473d1ea3
2190 </p>
2191 <p>tarrelease: libdwarf-0.7.0.tar.xz
2192 </p>
2193 <p> <a href="#top">[top]</a> </p>
2194 <h3 id="DW202303-043">70) DW202303-043</h3>
2195 <p>id: DW202303-043
2196 </p>
2197 <p>cve:</p>
2198 <p>fuzzer: ossfuzz
2199 </p>
2200 <p>datereported: 2023-03-08
2201 </p>
2202 <p>reportedby: Youngseok Choi
2203 </p>
2204 <p>vulnerability: Heap Use After Free
2205 </p>
2206 <p>product: libdwarf
2207 </p>
2208 <p>description: The command:
2209 dwarfdump choi012/poc_file_08
2210 was resulting in a heap use after free.
2211 It no longer does, due to earlier
2212 libdwarf fixes.
2213 </p>
2214 <p>datefixed: 2023-03-25
2215 </p>
2216 <p>references: regressiontests/choi012/poc_file_08
2217 </p>
2218 <p>gitfixid: 4a8a201cdb3408a2cfdc2946418b51b884140a2c
2219 </p>
2220 <p>tarrelease: libdwarf-0.7.0.tar.xz
2221 </p>
2222 <p> <a href="#top">[top]</a> </p>
2223 <h3 id="DW202303-042">71) DW202303-042</h3>
2224 <p>id: DW202303-042
2225 </p>
2226 <p>cve:</p>
2227 <p>fuzzer: ossfuzz
2228 </p>
2229 <p>datereported: 2023-03-08
2230 </p>
2231 <p>reportedby: Youngseok Choi
2232 </p>
2233 <p>vulnerability: Memory Leak
2234 </p>
2235 <p>product: dwarfdump
2236 </p>
2237 <p>description: The command:
2238 dwarfdump --check-all choi012/poc_file_07
2239 leaked memory in dwarfdump.
2240 A single instance of print_error_and_continue()
2241 failed to return DW_DLV_ERROR when libdwarf
2242 reported an error.
2243 Before recent fixes to libdwarf this would
2244 also generate heap-use-after-free.
2245 </p>
2246 <p>datefixed: 2023-03-25
2247 </p>
2248 <p>references: regressiontests/choi012/poc_file_07
2249 </p>
2250 <p>gitfixid: 4a8a201cdb3408a2cfdc2946418b51b884140a2c
2251 </p>
2252 <p>tarrelease: libdwarf-0.7.0.tar.xz
2253 </p>
2254 <p> <a href="#top">[top]</a> </p>
2255 <h3 id="DW202303-041">72) DW202303-041</h3>
2256 <p>id: DW202303-041
2257 </p>
2258 <p>cve:</p>
2259 <p>fuzzer: ossfuzz
2260 </p>
2261 <p>datereported: 2023-03-08
2262 </p>
2263 <p>reportedby: Youngseok Choi
2264 </p>
2265 <p>vulnerability: Heap Use after Free
2266 </p>
2267 <p>product: dwarfdump
2268 </p>
2269 <p>description: The command:
2270 dwarfdump --check-frame-extended choi012/poc_file_06
2271 is now working, apparently fixed by earlier
2272 bug fixes in libdwarf.
2273 </p>
2274 <p>datefixed: 2023-03-25
2275 </p>
2276 <p>references: regressiontests/choi012/poc_file_06
2277 </p>
2278 <p>gitfixid: fd92b647e5e3a524be94b3b06c9efd14a8292946
2279 </p>
2280 <p>tarrelease: libdwarf-0.7.0.tar.xz
2281 </p>
2282 <p> <a href="#top">[top]</a> </p>
2283 <h3 id="DW202303-040">73) DW202303-040</h3>
2284 <p>id: DW202303-040
2285 </p>
2286 <p>cve:</p>
2287 <p>fuzzer: ossfuzz
2288 </p>
2289 <p>datereported: 2023-03-07
2290 </p>
2291 <p>reportedby: Youngseok Choi
2292 </p>
2293 <p>vulnerability: Reading from zero page
2294 </p>
2295 <p>product: dwarfdump
2296 </p>
2297 <p>description: The command: dwarfdump --file-abi=
2298 causes big problems. Denial of service.
2299 For many of such commands with an '=' and nothing
2300 following the
2301 dwoptarg variable is not set at all, leading
2302 to a segmentation violation.
2303 </p>
2304 <p>datefixed: 2023-03-25
2305 </p>
2306 <p>references: regressiontests/choi011/README
2307 </p>
2308 <p>gitfixid: fd92b647e5e3a524be94b3b06c9efd14a8292946
2309 </p>
2310 <p>tarrelease: libdwarf-0.7.0.tar.xz
2311 </p>
2312 <p> <a href="#top">[top]</a> </p>
2313 <h3 id="DW202303-039">74) DW202303-039</h3>
2314 <p>id: DW202303-039
2315 </p>
2316 <p>cve:</p>
2317 <p>fuzzer: ossfuzz id: 56480
2318 </p>
2319 <p>datereported: 2023-02-28
2320 </p>
2321 <p>reportedby: David Korczynski
2322 </p>
2323 <p>vulnerability: Reading a compilation unit never finishes
2324 </p>
2325 <p>product: libdwarf
2326 </p>
2327 <p>description: Reading a DWARF compilation unit header
2328 in a corrupted object
2329 caused an infinite loop of repeated calls (growing the stack
2330 at each call) in libdwarf. Now the library properly reflects
2331 a NO ENTRY case avoiding the loop and the test case returns
2332 an unrelated error due to other corruption.
2333 Arguably the loop was due to corruption too, but it should
2334 not have gotten stuck in the loop (and now it will not
2335 get stuck).
2336 See also ossfuzz id 56540. ossfuzz id 56487. ossfuzz id 56497.
2337 ossfuzz 57408
2338 </p>
2339 <p>datefixed: 2023-03-20
2340 </p>
2341 <p>references: regressiontests/ossfuzz56480/fuzz_die_cu_print-5264022485467136
2342 </p>
2343 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2344 </p>
2345 <p>tarrelease: libdwarf-0.7.0.tar.xz
2346 </p>
2347 <p> <a href="#top">[top]</a> </p>
2348 <h3 id="DW202303-038">75) DW202303-038</h3>
2349 <p>id: DW202303-038
2350 </p>
2351 <p>cve:</p>
2352 <p>fuzzer: ossfuzz id: 57335
2353 </p>
2354 <p>datereported: 2023-03-22
2355 </p>
2356 <p>reportedby: David Korczynski
2357 </p>
2358 <p>vulnerability: Null dereference in dwarf_hasform()
2359 </p>
2360 <p>product: libdwarf
2361 </p>
2362 <p>description: Passing a null dw_return_bool pointer dereferenced
2363 zero, but now, instead we return DW_DLV_ERROR with error code
2364 DW_DLE_INVALID_NULL_ARGUMENT
2365 The test driver fuzz_die_cu_attrs.c passed in a NULL
2366 argument (the test was not modified except for adding
2367 a comment) but libdwarf now checks for a null argument.
2368 </p>
2369 <p>datefixed: 2023-03-24
2370 </p>
2371 <p>references: regressiontests/ossfuzz57335/fuzz_die_cu_attrs-6235345560928256.fuzz
2372 </p>
2373 <p>gitfixid: e4053c9a0f25db0bed28372d9b77a50a0307dc10
2374 </p>
2375 <p>tarrelease: libdwarf-0.7.0.tar.xz
2376 </p>
2377 <p> <a href="#top">[top]</a> </p>
2378 <h3 id="DW202303-037">76) DW202303-037</h3>
2379 <p>id: DW202303-037
2380 </p>
2381 <p>cve:</p>
2382 <p>fuzzer: ossfuzz id: 57300
2383 </p>
2384 <p>datereported: 2023-03-21
2385 </p>
2386 <p>reportedby: David Korczynski
2387 </p>
2388 <p>vulnerability: Out of Memory
2389 </p>
2390 <p>product: libdwarf
2391 </p>
2392 <p>description: Another case of the infinite loop
2393 due to _dwarf_find_CU_Context_given_sig().
2394 See DW202303-034 57193 and others listed here.
2395 </p>
2396 <p>datefixed: 2023-03-24
2397 </p>
2398 <p>references: regressiontests/ossfuzz57300/fuzz_die_cu-4752724662288384
2399 </p>
2400 <p>gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
2401 </p>
2402 <p>tarrelease: libdwarf-0.7.0.tar.xz
2403 </p>
2404 <p> <a href="#top">[top]</a> </p>
2405 <h3 id="DW202303-036">77) DW202303-036</h3>
2406 <p>id: DW202303-036
2407 </p>
2408 <p>cve:</p>
2409 <p>fuzzer: ossfuzz id: 57300
2410 </p>
2411 <p>datereported: 2023-03-15
2412 </p>
2413 <p>reportedby: David Korczynski
2414 </p>
2415 <p>vulnerability: Out of Memory
2416 </p>
2417 <p>product: libdwarf
2418 </p>
2419 <p>description: Another case of the infinite loop
2420 due to _dwarf_find_CU_Context_given_sig().
2421 See DW202303-034 57193
2422 See DW202303-034 57149
2423 See DW202303-034 57193
2424 See DW202303-034 57292
2425 </p>
2426 <p>datefixed: 2023-03-24
2427 </p>
2428 <p>references: regressiontests/ossfuzz57300/fuzz_die_cu-4752724662288384
2429 </p>
2430 <p>gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
2431 </p>
2432 <p>tarrelease: libdwarf-0.7.0.tar.xz
2433 </p>
2434 <p> <a href="#top">[top]</a> </p>
2435 <h3 id="DW202303-035">78) DW202303-035</h3>
2436 <p>id: DW202303-035
2437 </p>
2438 <p>cve:</p>
2439 <p>fuzzer: ossfuzz id: 57292
2440 </p>
2441 <p>datereported: 2023-03-15
2442 </p>
2443 <p>reportedby: David Korczynski
2444 </p>
2445 <p>vulnerability: Out of Memory
2446 </p>
2447 <p>product: libdwarf
2448 </p>
2449 <p>description: Another case of the infinite loop
2450 due to _dwarf_find_CU_Context_given_sig().
2451 See DW202303-034 57193 and others listed here.
2452 </p>
2453 <p>datefixed: 2023-03-24
2454 </p>
2455 <p>references: regressiontests/ossfuzz57292/fuzz_die_cu_print-5412313393135616
2456 </p>
2457 <p>gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
2458 </p>
2459 <p>tarrelease: libdwarf-0.7.0.tar.xz
2460 </p>
2461 <p> <a href="#top">[top]</a> </p>
2462 <h3 id="DW202303-034">79) DW202303-034</h3>
2463 <p>id: DW202303-034
2464 </p>
2465 <p>cve:</p>
2466 <p>fuzzer: ossfuzz id: 57193
2467 </p>
2468 <p>datereported: 2023-03-15
2469 </p>
2470 <p>reportedby: David Korczynski
2471 </p>
2472 <p>vulnerability: Infinite loop till out of memory.
2473 </p>
2474 <p>product: libdwarf
2475 </p>
2476 <p>description: The infinite loop reading a fuzzed object file
2477 was caused by letting internal function
2478 _dwarf_find_CU_Context_given_sig()
2479 unconditionally do too much in the middle
2480 of setting up a CU_Context (by letting
2481 it start more CU_contexts().
2482 The implicit infinite loop has been there
2483 a few years, depending on the correctness
2484 of object files DWARF4/DWARF5 being read.
2485 Same bug as ossfuzz 57107, ossfuzz 57149.
2486 </p>
2487 <p>datefixed: 2023-03-24
2488 </p>
2489 <p>references: regressiontests/ossfuzz57193/fuzz_die_cu_offset-5215024489824256
2490 </p>
2491 <p>gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
2492 </p>
2493 <p>tarrelease: libdwarf-0.7.0.tar.xz
2494 </p>
2495 <p> <a href="#top">[top]</a> </p>
2496 <h3 id="DW202303-033">80) DW202303-033</h3>
2497 <p>id: DW202303-033
2498 </p>
2499 <p>cve:</p>
2500 <p>fuzzer: ossfuzz id: 57149
2501 </p>
2502 <p>datereported: 2023-03-15
2503 </p>
2504 <p>reportedby: David Korczynski
2505 </p>
2506 <p>vulnerability: Stack overflow
2507 </p>
2508 <p>product: libdwarf
2509 </p>
2510 <p>description: Infinite loop till out of memory
2511 Similar to 57107 DW202303-032 but revealed
2512 there were more places in find_cu_die_base_fields that
2513 needed to call the internal _dwarf_internal_global_formref_b()
2514 function.
2515 The bug was present since 2017, when DWARF5 support for
2516 new 'base' fields was created.
2517 </p>
2518 <p>datefixed: 2023-03-24
2519 </p>
2520 <p>references: regressiontests/ossfuzz57149/fuzz_srcfiles-6213793811398656
2521 </p>
2522 <p>gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
2523 </p>
2524 <p>tarrelease: libdwarf-0.7.0.tar.xz
2525 </p>
2526 <p> <a href="#top">[top]</a> </p>
2527 <h3 id="DW202303-032">81) DW202303-032</h3>
2528 <p>id: DW202303-032
2529 </p>
2530 <p>cve:</p>
2531 <p>fuzzer: ossfuzz id: 57107
2532 </p>
2533 <p>datereported: 2023-03-14
2534 </p>
2535 <p>reportedby: David Korczynski
2536 </p>
2537 <p>vulnerability: Infinite loop till out of memory.
2538 </p>
2539 <p>product: libdwarf
2540 </p>
2541 <p>description: The infinite loop reading a fuzzed object file
2542 was caused by letting internal function
2543 _dwarf_find_CU_Context_given_sig()
2544 unconditionally do too much in the middle
2545 of setting up a CU_Context (by letting
2546 it start more CU_contexts().
2547 The implicit infinite loop has been there
2548 a few years, depending on the correctness
2549 of object files DWARF4/DWARF5 being read.
2550 </p>
2551 <p>datefixed: 2023-03-23
2552 </p>
2553 <p>references: regressiontests/ossfuzz57107/fuzz_die_cu_attrs_loclist-4991396240293888
2554 </p>
2555 <p>gitfixid: 0c92ef5b66c5bbcacae03fbf355b12713151c098
2556 </p>
2557 <p>tarrelease: libdwarf-0.7.0.tar.xz
2558 </p>
2559 <p> <a href="#top">[top]</a> </p>
2560 <h3 id="DW202303-031">82) DW202303-031</h3>
2561 <p>id: DW202303-031
2562 </p>
2563 <p>cve:</p>
2564 <p>fuzzer: ossfuzz id: 57048
2565 </p>
2566 <p>datereported: 2023-03-14
2567 </p>
2568 <p>reportedby: David Korczynski
2569 </p>
2570 <p>vulnerability:</p>
2571 <p>product: libdwarf
2572 </p>
2573 <p>description: Calling dwarf_next_cu_header_d() on a corrupted
2574 object file results in an infinite loop
2575 and (eventually) a crash in dwarf_xu_index.c attempting
2576 to resolve an 8 byte hash key.
2577 The bug existed from the first version of this source file.
2578 The same bug as DW202303-030.
2579 </p>
2580 <p>datefixed: 2023-03-22
2581 </p>
2582 <p>references: regressiontests/ossfuzz57048/fuzz_findfuncbypc-4647942385696768
2583 </p>
2584 <p>gitfixid: 774f98e596df9dd8f3cb92ec76243caaa4287039
2585 </p>
2586 <p>tarrelease: libdwarf-0.7.0.tar.xz
2587 </p>
2588 <p> <a href="#top">[top]</a> </p>
2589 <h3 id="DW202303-030">83) DW202303-030</h3>
2590 <p>id: DW202303-030
2591 </p>
2592 <p>cve:</p>
2593 <p>fuzzer: ossfuzz id: 57027
2594 </p>
2595 <p>datereported: 2023-03-12
2596 </p>
2597 <p>reportedby: David Korczynski
2598 </p>
2599 <p>vulnerability: Infinite loop reading a gnu index section.
2600 </p>
2601 <p>product: libdwarf
2602 </p>
2603 <p>description: Calling dwarf_next_cu_header_d() on a corrupted
2604 object file results in an infinite loop
2605 and (eventually) a crash in dwarf_xu_index.c attempting
2606 to resolve an 8 byte hash key.
2607 The bug existed from the first version of this source file,
2608 which was in 2017 as the data involved DWARF5, new in 2017.
2609 </p>
2610 <p>datefixed: 2023-03-22
2611 </p>
2612 <p>references: regressiontests/ossfuzz57027/fuzz_stack_frame_access-5123569972805632
2613 </p>
2614 <p>gitfixid: 774f98e596df9dd8f3cb92ec76243caaa4287039
2615 </p>
2616 <p>tarrelease: libdwarf-0.7.0.tar.xz
2617 </p>
2618 <p> <a href="#top">[top]</a> </p>
2619 <h3 id="DW202303-029">84) DW202303-029</h3>
2620 <p>id: DW202303-029
2621 </p>
2622 <p>cve:</p>
2623 <p>fuzzer: ossfuzz id: 56993
2624 </p>
2625 <p>datereported: 2023-03-12
2626 </p>
2627 <p>reportedby: David Korczynski
2628 </p>
2629 <p>vulnerability: Leaked Memory
2630 </p>
2631 <p>product: libdwarf
2632 </p>
2633 <p>description: Calling dwarf_get_macro_context on a particular
2634 fuzzed object file results in a memory leak when
2635 a particular error in the corrupted section is detected.
2636 The malloc was done by the line table reader code.
2637 The bug was there for many years
2638 </p>
2639 <p>datefixed: 2023-03-22
2640 </p>
2641 <p>references: regressiontests/ossfuzz56993/fuzz_macro_dwarf5-5770464300761088
2642 </p>
2643 <p>gitfixid: 5fde5e404a98c6727889cf14d8f93ec2138a6fa
2644 </p>
2645 <p>tarrelease: libdwarf-0.7.0.tar.xz
2646 </p>
2647 <p> <a href="#top">[top]</a> </p>
2648 <h3 id="DW202303-028">85) DW202303-028</h3>
2649 <p>id: DW202303-028
2650 </p>
2651 <p>cve:</p>
2652 <p>fuzzer: ossfuzz id: 56958
2653 </p>
2654 <p>datereported: 2023-03-12
2655 </p>
2656 <p>reportedby: David Korczynski
2657 </p>
2658 <p>vulnerability: Out of memory crash.
2659 </p>
2660 <p>product: libdwarf
2661 </p>
2662 <p>description: Failing to check for error conditions
2663 in a fuzzed object correctly lead to a giant malloc
2664 that could not succeed.
2665 </p>
2666 <p>datefixed: 2023-03-22
2667 </p>
2668 <p>references: regressiontests/ossfuzz56958/fuzz_stack_frame_access-6097292873826304
2669 </p>
2670 <p>gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
2671 </p>
2672 <p>tarrelease: libdwarf-0.7.0.tar.xz
2673 </p>
2674 <p> <a href="#top">[top]</a> </p>
2675 <h3 id="DW202303-027">86) DW202303-027</h3>
2676 <p>id: DW202303-027
2677 </p>
2678 <p>cve:</p>
2679 <p>fuzzer: ossfuzz id: 56906
2680 </p>
2681 <p>datereported: 2023-03-09
2682 </p>
2683 <p>reportedby: David Korczynski
2684 </p>
2685 <p>vulnerability: Heap Buffer overflow reading rnglists section.
2686 </p>
2687 <p>product: libdwarf
2688 </p>
2689 <p>description: Calling dwarf_get_rnglist_rle() on a corrupted
2690 object file could result in a library crash.
2691 </p>
2692 <p>datefixed: 2023-03-22
2693 </p>
2694 <p>references: regressiontests/ossfuzz56906/fuzz_rng-6031783801257984.fuzz
2695 </p>
2696 <p>gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
2697 </p>
2698 <p>tarrelease: libdwarf-0.7.0.tar.xz
2699 </p>
2700 <p> <a href="#top">[top]</a> </p>
2701 <h3 id="DW202303-026">87) DW202303-026</h3>
2702 <p>id: DW202303-026
2703 </p>
2704 <p>cve:</p>
2705 <p>fuzzer: ossfuzz id: 56897
2706 </p>
2707 <p>datereported: 2023-02-28
2708 </p>
2709 <p>reportedby: David Korczynski
2710 </p>
2711 <p>vulnerability: Heap buffer overflow reading the rnglists section
2712 </p>
2713 <p>product: libdwarf
2714 </p>
2715 <p>description: dwarf_get_rnglist_offset_index_value() could fail
2716 on a corrupt object due to imprecise calculations of
2717 entry offsets. Fixed by a major update of the code
2718 in dwarf_rnglists.c
2719 </p>
2720 <p>datefixed: 2023-03-22
2721 </p>
2722 <p>references: regressiontests/ossfuzz56897/fuzz_rng-5105415777288192
2723 </p>
2724 <p>gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
2725 </p>
2726 <p>tarrelease: libdwarf-0.7.0.tar.xz
2727 </p>
2728 <p> <a href="#top">[top]</a> </p>
2729 <h3 id="DW202303-025">88) DW202303-025</h3>
2730 <p>id: DW202303-025
2731 </p>
2732 <p>cve:</p>
2733 <p>fuzzer: ossfuzz id: 56895
2734 </p>
2735 <p>datereported: 2023-02-28
2736 </p>
2737 <p>reportedby: David Korczynski
2738 </p>
2739 <p>vulnerability: Heap buffer overflow reading compilation unit header.
2740 </p>
2741 <p>product: libdwarf
2742 </p>
2743 <p>description: Calling dwarf_next_cu_header_d() on the fuzzed test
2744 object results in a library crash in fuzz_die_cu_attrs_loclist.c
2745 due to a failure to
2746 precisely test for a too-short Compilation Unit header.
2747 Now a DW_DLV_ERROR is returned.
2748 A very old bug.
2749 </p>
2750 <p>datefixed: 2023-03-24
2751 </p>
2752 <p>references: regressiontests/ossfuzz56895/fuzz_macro_dwarf5-5080340952907776
2753 </p>
2754 <p>gitfixid: 771cfcca1ef6a4a7eb9595d700fc72020d0ed72e
2755 </p>
2756 <p>tarrelease: libdwarf-0.7.0.tar.xz
2757 </p>
2758 <p> <a href="#top">[top]</a> </p>
2759 <h3 id="DW202303-024">89) DW202303-024</h3>
2760 <p>id: DW202303-024
2761 </p>
2762 <p>cve:</p>
2763 <p>fuzzer: ossfuzz id: 56807
2764 </p>
2765 <p>datereported: 2023-02-28
2766 </p>
2767 <p>reportedby: David Korczynski
2768 </p>
2769 <p>vulnerability: Memory Leak in dwarf_check_lineheader_b()
2770 </p>
2771 <p>product: libdwarf
2772 </p>
2773 <p>description: The fuzzed test object file resulted
2774 in a memory leak calling dwarf_check_lineheader_b()
2775 as called from fuzz_srcfiles.c
2776 Two error conditions in dwarf_line_table_reader_common.h
2777 were missing a required free().
2778 </p>
2779 <p>datefixed: 2023-03-24
2780 </p>
2781 <p>references: regressiontests/ossfuzz56807/fuzz_srcfiles-4626047380619264
2782 </p>
2783 <p>gitfixid: 484f50ef8be0506be2e4b5fbad489868db5c7985
2784 </p>
2785 <p>tarrelease: libdwarf-0.7.0.tar.xz
2786 </p>
2787 <p> <a href="#top">[top]</a> </p>
2788 <h3 id="DW202303-023">90) DW202303-023</h3>
2789 <p>id: DW202303-023
2790 </p>
2791 <p>cve:</p>
2792 <p>fuzzer: ossfuzz id: 56568
2793 </p>
2794 <p>datereported: 2023-02-28
2795 </p>
2796 <p>reportedby: David Korczynski
2797 </p>
2798 <p>vulnerability: Test build failure
2799 </p>
2800 <p>product: Test harness
2801 </p>
2802 <p>description: The fuzz_dnames.c testcase build failed.
2803 A result of removing two functions from the API,
2804 dwarf_dnames_abbrev_by_code() and
2805 dwarf_dnames_abbrev_form_by_index().
2806 Removed 2023-02-23.
2807 The test source no longer uses those two functions.
2808 The first was slow and hard to use. The second
2809 was unusable and never worked. The documentation
2810 (libdwarf.pdf) gives alternates in the library that work.
2811 </p>
2812 <p>datefixed: 2023-03-20
2813 </p>
2814 <p>references:</p>
2815 <p>gitfixid: 2eced75af9903ab778c3b237ec7be3ddc93ea6ec
2816 </p>
2817 <p>tarrelease: libdwarf-0.7.0.tar.xz
2818 </p>
2819 <p> <a href="#top">[top]</a> </p>
2820 <h3 id="DW202303-022">91) DW202303-022</h3>
2821 <p>id: DW202303-022
2822 </p>
2823 <p>cve:</p>
2824 <p>fuzzer: ossfuzz id: 56497
2825 </p>
2826 <p>datereported: 2023-02-28
2827 </p>
2828 <p>reportedby: David Korczynski
2829 </p>
2830 <p>vulnerability: Memory Leak
2831 </p>
2832 <p>product: test harness
2833 </p>
2834 <p>description: The leak was due to the test driver fuzz/fuzz_rng.c
2835 failing to call dwarf_finish at the point of returning as a result
2836 of the corrupted binary returning an error condition.
2837 </p>
2838 <p>datefixed: 2023-03-20
2839 </p>
2840 <p>references: regressiontests/ossfuzz56497/
2841 </p>
2842 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2843 </p>
2844 <p>tarrelease: libdwarf-0.7.0.tar.xz
2845 </p>
2846 <p> <a href="#top">[top]</a> </p>
2847 <h3 id="DW202303-021">92) DW202303-021</h3>
2848 <p>id: DW202303-021
2849 </p>
2850 <p>cve:</p>
2851 <p>fuzzer: ossfuzz id: 56487
2852 </p>
2853 <p>datereported: 2023-02-28
2854 </p>
2855 <p>reportedby: David Korczynski
2856 </p>
2857 <p>vulnerability: Memory Leak
2858 </p>
2859 <p>product: testing harness
2860 </p>
2861 <p>description: The leak was due to the test driver fuzz/fuzz_rng.c
2862 failing to call dwarf_finish at the point of returning as a result
2863 of the corrupted binary returning an error condition.
2864 </p>
2865 <p>datefixed: 2023-03-20
2866 </p>
2867 <p>references: regressiontests/ossfuzz56487/clusterfuzz-testcase-fuzz_rng-6655451078197248
2868 </p>
2869 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2870 </p>
2871 <p>tarrelease: libdwarf-0.7.0.tar.xz
2872 </p>
2873 <p> <a href="#top">[top]</a> </p>
2874 <h3 id="DW202303-020">93) DW202303-020</h3>
2875 <p>id: DW202303-020
2876 </p>
2877 <p>cve:</p>
2878 <p>fuzzer: ossfuzz id: 56458
2879 </p>
2880 <p>datereported: 2023-02-28
2881 </p>
2882 <p>reportedby: David Korczynski
2883 </p>
2884 <p>vulnerability: Heap buffer overflow
2885 </p>
2886 <p>product: libdwarf
2887 </p>
2888 <p>description: The overflow encountered when
2889 reading a corrupted line table header in read_a_name_table_header in
2890 dwarf_debugnames.c
2891 There was insufficient checking for out of bounds
2892 values.
2893 </p>
2894 <p>datefixed: 2023-03-20
2895 </p>
2896 <p>references: regressiontests/ossfuzz56458/fuzz_findfuncbypc-5073632331431936
2897 </p>
2898 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2899 </p>
2900 <p>tarrelease: libdwarf-0.7.0.tar.xz
2901 </p>
2902 <p> <a href="#top">[top]</a> </p>
2903 <h3 id="DW202303-019">94) DW202303-019</h3>
2904 <p>id: DW202303-019
2905 </p>
2906 <p>cve:</p>
2907 <p>fuzzer: ossfuzz id: 56454
2908 </p>
2909 <p>datereported: 2023-02-28
2910 </p>
2911 <p>reportedby: David Korczynski
2912 </p>
2913 <p>vulnerability: Stack buffer overflow
2914 </p>
2915 <p>product: libdwarf
2916 </p>
2917 <p>description: The overflow was in dwarf_get_version_of_die()
2918 One return failed to free a local malloc due to the
2919 particular corruption in the text object DWARF.
2920 </p>
2921 <p>datefixed: 2023-03-20
2922 </p>
2923 <p>references: regressiontests/ossfuzz56454/
2924 </p>
2925 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2926 </p>
2927 <p>tarrelease: libdwarf-0.7.0.tar.xz
2928 </p>
2929 <p> <a href="#top">[top]</a> </p>
2930 <h3 id="DW202303-018">95) DW202303-018</h3>
2931 <p>id: DW202303-018
2932 </p>
2933 <p>cve:</p>
2934 <p>fuzzer: ossfuzz id: 56807
2935 </p>
2936 <p>datereported: 2023-02-28
2937 </p>
2938 <p>reportedby: David Korczynski
2939 </p>
2940 <p>vulnerability: Memory leak reading line table
2941 </p>
2942 <p>product: libdwarf
2943 </p>
2944 <p>description: A memory leak in _dwarf_read_line_table()
2945 reading a particular corrupted object.
2946 One return failed to free a local malloc.
2947 An very old bug, encountered reading corrupted
2948 DWARF line tables.
2949 </p>
2950 <p>datefixed: 2023-03-20
2951 </p>
2952 <p>references: regressiontests/ossfuzz56807fuzz_srcfiles-4626047380619264
2953 </p>
2954 <p>gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
2955 </p>
2956 <p>tarrelease: libdwarf-0.7.0.tar.xz
2957 </p>
2958 <p> <a href="#top">[top]</a> </p>
2959 <h3 id="DW202303-017">96) DW202303-017</h3>
2960 <p>id: DW202303-017
2961 </p>
2962 <p>cve:</p>
2963 <p>fuzzer: ossfuzz id: 56450
2964 </p>
2965 <p>datereported: 2023-02-28
2966 </p>
2967 <p>reportedby: David Korczynski
2968 </p>
2969 <p>vulnerability: Stack Buffer Overflow
2970 </p>
2971 <p>product: libdwarf
2972 </p>
2973 <p>description: Stack buffer overflow in dwarf_dietype_offset.
2974 Reading a corrupted object file.
2975 The bug was in the test code, not libdwarf.
2976 Having fixed that, valgrind finds that some memory is not
2977 freed by dwarf_finish(). In dwarf_alloc.c March 20
2978 _dwarf_free_all_of_one_debug() if the Dwarf_Debug was normal
2979 we failed to call _dwarf_free_static_errlist() and that
2980 left memory allocated from a bogus earlier call to the
2981 library (a situation libdwarf should handle and now does).
2982 </p>
2983 <p>datefixed: 2023-05-30
2984 </p>
2985 <p>references: regressiontests/ossfuzz56450/fuzz_die_cu_attrs-4953133005799424
2986 </p>
2987 <p>gitfixid:</p>
2988 <p>tarrelease: libdwarf-0.8.0.tar.xz
2989 </p>
2990 <p> <a href="#top">[top]</a> </p>
2991 <h3 id="DW202303-016">97) DW202303-016</h3>
2992 <p>id: DW202303-016
2993 </p>
2994 <p>cve:</p>
2995 <p>fuzzer: ossfuzz id: 56476
2996 </p>
2997 <p>datereported: 2023-02-28
2998 </p>
2999 <p>reportedby: David Korczynski
3000 </p>
3001 <p>vulnerability: Heap Buffer Overflow in dwarf_get_rnglist_offset_value
3002 </p>
3003 <p>product: libdwarf
3004 </p>
3005 <p>description: A heap buffer overflow reading
3006 a fuzzed object file
3007 A revision of dwarf_str_offsets (which was
3008 new in DWARF5) affected several source files
3009 </p>
3010 <p>datefixed: 2023-03-12
3011 </p>
3012 <p>references: regressiontests/ossfuzz56476/fuzz_rng-5008229349588992/
3013 </p>
3014 <p>gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
3015 </p>
3016 <p>tarrelease: libdwarf-0.7.0.tar.xz
3017 </p>
3018 <p> <a href="#top">[top]</a> </p>
3019 <h3 id="DW202303-015">98) DW202303-015</h3>
3020 <p>id: DW202303-015
3021 </p>
3022 <p>cve:</p>
3023 <p>fuzzer: ossfuzz id: 56489
3024 </p>
3025 <p>datereported: 2023-02-28
3026 </p>
3027 <p>reportedby: David Korczynski
3028 </p>
3029 <p>vulnerability: Heap Buffer Overflow in read_single_rle_entry
3030 </p>
3031 <p>product: libdwarf
3032 </p>
3033 <p>description: A heap buffer overflow reading
3034 a fuzzed object file
3035 A revision of dwarf_str_offsets (which was
3036 new in DWARF5) affected several source files
3037 </p>
3038 <p>datefixed: 2023-03-12
3039 </p>
3040 <p>references: regressiontests/ossfuzz56489/fuzz_srcfiles-5091530466787328
3041 </p>
3042 <p>gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
3043 </p>
3044 <p>tarrelease: libdwarf-0.7.0.tar.xz
3045 </p>
3046 <p> <a href="#top">[top]</a> </p>
3047 <h3 id="DW202303-014">99) DW202303-014</h3>
3048 <p>id: DW202303-014
3049 </p>
3050 <p>cve:</p>
3051 <p>fuzzer: ossfuzz id: 56478
3052 </p>
3053 <p>datereported: 2023-02-28
3054 </p>
3055 <p>reportedby: David Korczynski
3056 </p>
3057 <p>vulnerability: Heap Buffer Overflow in read_single_rle_entry
3058 </p>
3059 <p>product: libdwarf
3060 </p>
3061 <p>description: A heap buffer overflow reading
3062 a fuzzed object file
3063 A revision of dwarf_str_offsets (which was
3064 new in DWARF5) affected several source files
3065 </p>
3066 <p>datefixed: 2023-03-12
3067 </p>
3068 <p>references: regressiontests/ossfuzz56478/fuzz_rng-5030515398017024
3069 </p>
3070 <p>gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
3071 </p>
3072 <p>tarrelease: libdwarf-0.7.0.tar.xz
3073 </p>
3074 <p> <a href="#top">[top]</a> </p>
3075 <h3 id="DW202303-013">100) DW202303-013</h3>
3076 <p>id: DW202303-013
3077 </p>
3078 <p>cve:</p>
3079 <p>fuzzer: ossfuzz id: 56460
3080 </p>
3081 <p>datereported: 2023-02-28
3082 </p>
3083 <p>reportedby: David Korczynski
3084 </p>
3085 <p>vulnerability: Heap Buffer Overflow
3086 </p>
3087 <p>product: libdwarf
3088 </p>
3089 <p>description: A heap buffer overflow reading
3090 a fuzzed object file
3091 A revision of dwarf_str_offsets (which was
3092 new in DWARF5) affected several source files
3093 </p>
3094 <p>datefixed: 2023-03-12
3095 </p>
3096 <p>references: regressiontests/ossfuzz56460/fuzz_str_offsets-5376904040677376-5240324382654464
3097 </p>
3098 <p>gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
3099 </p>
3100 <p>tarrelease: libdwarf-0.7.0.tar.xz
3101 </p>
3102 <p> <a href="#top">[top]</a> </p>
3103 <h3 id="DW202303-012">101) DW202303-012</h3>
3104 <p>id: DW202303-012
3105 </p>
3106 <p>cve:</p>
3107 <p>fuzzer: ossfuzz id: 56456
3108 </p>
3109 <p>datereported: 2023-02-28
3110 </p>
3111 <p>reportedby: David Korczynski
3112 </p>
3113 <p>vulnerability: Heap Buffer Overflow
3114 </p>
3115 <p>product: libdwarf
3116 </p>
3117 <p>description: A heap buffer overflow reading
3118 a fuzzed object file
3119 Code reading the gdbindex section was not
3120 fully checking for valid offsets and pointers
3121 Duplicate of DW202303-006
3122 </p>
3123 <p>datefixed: 2023-03-14
3124 </p>
3125 <p>references: regressiontests/ossfuzz56456/fuzz_gdbindex-5240324382654464
3126 </p>
3127 <p>gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
3128 </p>
3129 <p>tarrelease: libdwarf-0.7.0.tar.xz
3130 </p>
3131 <p> <a href="#top">[top]</a> </p>
3132 <h3 id="DW202303-011">102) DW202303-011</h3>
3133 <p>id: DW202303-011
3134 </p>
3135 <p>cve:</p>
3136 <p>fuzzer: ossfuzz id: 56453
3137 </p>
3138 <p>datereported: 2023-02-28
3139 </p>
3140 <p>reportedby: David Korczynski
3141 </p>
3142 <p>vulnerability: Null pointer dereference
3143 </p>
3144 <p>product: libdwarf
3145 </p>
3146 <p>description: A null pointer dereference in
3147 reading a fuzzed object file.
3148 This is related to checks for a correct
3149 value from the READ_AREA_LENGTH macro.
3150 The missing checks have been missing a very
3151 long time.
3152 </p>
3153 <p>datefixed: 2023-03-07
3154 </p>
3155 <p>references: regressiontests/ossfuzz56453
3156 </p>
3157 <p>gitfixid: 86671059c1c240ae56433fa94993dcd28df2ae7d
3158 </p>
3159 <p>tarrelease: libdwarf-0.7.0.tar.xz
3160 </p>
3161 <p> <a href="#top">[top]</a> </p>
3162 <h3 id="DW202303-010">103) DW202303-010</h3>
3163 <p>id: DW202303-010
3164 </p>
3165 <p>cve:</p>
3166 <p>fuzzer: ossfuzz
3167 </p>
3168 <p>datereported: 2023-03-07
3169 </p>
3170 <p>reportedby: Youngseok Choi
3171 </p>
3172 <p>vulnerability: Stack overflow dwarfdump
3173 </p>
3174 <p>product: dwarfdump
3175 </p>
3176 <p>description: A wholly corrupted speically constructed
3177 dwarfdump.conf which is entirely inappropriate ascii
3178 really made a mess of one's screen.
3179 Now after a couple lines of garbage we
3180 give up on that conf file. And we print the garbage
3181 sanitized to avoid messing up one's screen.
3182 The fix also avoids buffer overflow.
3183 </p>
3184 <p>datefixed: 2023-03-25
3185 </p>
3186 <p>references: regressiontests/choi010/poc_file
3187 </p>
3188 <p>gitfixid: cb8dd45770f2e1f440aab60adac0256f268fc16e
3189 </p>
3190 <p>tarrelease: libdwarf-0.7.0.tar.xz
3191 </p>
3192 <p> <a href="#top">[top]</a> </p>
3193 <h3 id="DW202303-009">104) DW202303-009</h3>
3194 <p>id: DW202303-009
3195 </p>
3196 <p>cve:</p>
3197 <p>fuzzer: oss-fuzz id: 56443
3198 </p>
3199 <p>datereported: 2023-03-01
3200 </p>
3201 <p>reportedby: David Korczynski
3202 </p>
3203 <p>vulnerability: Denial of service with corrupt line table header
3204 </p>
3205 <p>product: libdwarf
3206 </p>
3207 <p>description: With any one of a small set of corrupted data
3208 fields in a line table header that were not checked
3209 for sanity the library could try to malloc a giant space,
3210 which could take a long time to succeed or fail.
3211 After that almost anything could happen.
3212 Same as ossfuzz 56548.
3213 With the bug in 56548 fixed, now we still have a bug,
3214 there is a leak from _dwarf_special_no_dbg_error_malloc()
3215 -fsanitize does not show the bug here, but valgrind does
3216 </p>
3217 <p>datefixed: 2023-05-29
3218 </p>
3219 <p>references: regressiontests/ossfuzz56443/fuzz_crc_32-4750941179215872
3220 </p>
3221 <p>gitfixid: 241fe0cb415569975c451d1f2d62fb2b2147cd72
3222 </p>
3223 <p>tarrelease: libdwarf-0.8.0.tar.xz
3224 </p>
3225 <p> <a href="#top">[top]</a> </p>
3226 <h3 id="DW202303-008">105) DW202303-008</h3>
3227 <p>id: DW202303-008
3228 </p>
3229 <p>cve:</p>
3230 <p>fuzzer: oss-fuzz id: 56530
3231 </p>
3232 <p>datereported: 2023-03-01
3233 </p>
3234 <p>reportedby: David Korczynski
3235 </p>
3236 <p>vulnerability: Denial of Service with corrupt attribute
3237 </p>
3238 <p>product: libdwarf
3239 </p>
3240 <p>description: With a particular data corruption
3241 dwarf_attrlist() failed to return an error and
3242 the library would dereference a stale pointer.
3243 This also provoked a memory leak.
3244 Same bug as DW202303-001
3245 </p>
3246 <p>datefixed: 2023-03-02
3247 </p>
3248 <p>references: ossfuzz56530/fuzz_findfuncbypc-6272642689925120
3249 </p>
3250 <p>gitfixid: 948352178dc791796ed574a961191844d8322493
3251 </p>
3252 <p>tarrelease: libdwarf-0.7.0.tar.xz
3253 </p>
3254 <p> <a href="#top">[top]</a> </p>
3255 <h3 id="DW202303-007">106) DW202303-007</h3>
3256 <p>id: DW202303-007
3257 </p>
3258 <p>cve:</p>
3259 <p>fuzzer: oss-fuzz id: 56735
3260 </p>
3261 <p>datereported: 2023-03-04
3262 </p>
3263 <p>reportedby: David Korczynski
3264 </p>
3265 <p>vulnerability: Denial of service with corrupt debug_macro section.
3266 </p>
3267 <p>product: libdwarf
3268 </p>
3269 <p>description: We were not checking .debug macro data for a
3270 corrupted internal macro length field. Now we check.
3271 </p>
3272 <p>datefixed: 2023-03-08
3273 </p>
3274 <p>references: regressiontests/ossfuzz56735/fuzz_macro_dwarf5-6718585377783808
3275 </p>
3276 <p>gitfixid: bb99fe7ddb2bc6601bcb0ee30ced6a8cc8cb0564
3277 </p>
3278 <p>tarrelease: libdwarf-0.7.0.tar.xz
3279 </p>
3280 <p> <a href="#top">[top]</a> </p>
3281 <h3 id="DW202303-006">107) DW202303-006</h3>
3282 <p>id: DW202303-006
3283 </p>
3284 <p>cve:</p>
3285 <p>fuzzer: oss-fuzz id: 56456
3286 </p>
3287 <p>datereported: 2023-03-04
3288 </p>
3289 <p>reportedby: David Korczynski
3290 </p>
3291 <p>vulnerability: Denial of service (crash) looking for gdbindex section.
3292 </p>
3293 <p>product: libdwarf
3294 </p>
3295 <p>description: The logic was wrong in a couple places (fixed now)
3296 and almost nothing was checked for validity. Now we check,
3297 so to libdwarf do not result in a crash of the library.
3298 The bugs have been there since the code was written
3299 in 2014.
3300 </p>
3301 <p>datefixed: 2023-03-14
3302 </p>
3303 <p>references: regressiontests/ossfuzz56456/fuzz_gdbindex-5240324382654464
3304 </p>
3305 <p>gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
3306 </p>
3307 <p>tarrelease: libdwarf-0.7.0.tar.xz
3308 </p>
3309 <p> <a href="#top">[top]</a> </p>
3310 <h3 id="DW202303-005">108) DW202303-005</h3>
3311 <p>id: DW202303-005
3312 </p>
3313 <p>cve:</p>
3314 <p>fuzzer: oss-fuzz id: 56676
3315 </p>
3316 <p>datereported: 2023-03-04
3317 </p>
3318 <p>reportedby: David Korczynski
3319 </p>
3320 <p>vulnerability: Denial of service with corrupt frame section.
3321 </p>
3322 <p>product: libdwarf
3323 </p>
3324 <p>description: A call to dwarf_expand_frame_instructions()
3325 with corrupt data gets a segmentation violation.
3326 </p>
3327 <p>datefixed: 2023-03-14
3328 </p>
3329 <p>references: regressiontests/ossfuzz56676/fuzz_set_frame_all-5081006119190528.fuzz
3330 </p>
3331 <p>gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
3332 </p>
3333 <p>tarrelease: libdwarf-0.7.0.tar.xz
3334 </p>
3335 <p> <a href="#top">[top]</a> </p>
3336 <h3 id="DW202303-004">109) DW202303-004</h3>
3337 <p>id: DW202303-004
3338 </p>
3339 <p>cve:</p>
3340 <p>fuzzer: oss-fuzz id: 56666
3341 </p>
3342 <p>datereported: 2023-03-04
3343 </p>
3344 <p>reportedby: David Korczynski
3345 </p>
3346 <p>vulnerability: Denial of service with corrupt gnu_index section
3347 </p>
3348 <p>product: libdwarf
3349 </p>
3350 <p>description: A corrupted .debug_gnu_index header was not
3351 properly checked, and the calculation setting
3352 up the table in memory was not correctly set up.
3353 </p>
3354 <p>datefixed: 2023-03-08
3355 </p>
3356 <p>references: regressiontests/ossfuzz56666/fuzz_gnu_index-4803574417981440
3357 </p>
3358 <p>gitfixid: 64eaaa58703258cab02896e798664a1bb11a3d5c
3359 </p>
3360 <p>tarrelease: libdwarf-0.7.0.tar.xz
3361 </p>
3362 <p> <a href="#top">[top]</a> </p>
3363 <h3 id="DW202303-003">110) DW202303-003</h3>
3364 <p>id: DW202303-003
3365 </p>
3366 <p>cve:</p>
3367 <p>fuzzer: oss-fuzz id: 56636
3368 </p>
3369 <p>datereported: 2023-03-03
3370 </p>
3371 <p>reportedby: David Korczynski
3372 </p>
3373 <p>vulnerability: Denial of service with corrupt .debug_addr section
3374 </p>
3375 <p>product: libdwarf
3376 </p>
3377 <p>description: A corrupted .debug_addr header was not
3378 properly checked, and the calculation setting
3379 up the table in memory was not correctly set up.
3380 Calling dwarf_debug_addr_by_index() could crash the calling
3381 application.
3382 </p>
3383 <p>datefixed: 2023-03-03
3384 </p>
3385 <p>references: regressiontests/ossfuzz56636/fuzz_debug_addr_access-4801779658522624.fuzz
3386 </p>
3387 <p>gitfixid: a3ab3f16ab67f4d976561fe0d863e1ed8b71f3c6
3388 </p>
3389 <p>tarrelease: libdwarf-0.7.0.tar.xz
3390 </p>
3391 <p> <a href="#top">[top]</a> </p>
3392 <h3 id="DW202303-002">111) DW202303-002</h3>
3393 <p>id: DW202303-002
3394 </p>
3395 <p>cve:</p>
3396 <p>fuzzer: oss-fuzz id: 56548
3397 </p>
3398 <p>datereported: 2023-03-01
3399 </p>
3400 <p>reportedby: David Korczynski
3401 </p>
3402 <p>vulnerability: Denial of service with corrupt line table header
3403 </p>
3404 <p>product: libdwarf
3405 </p>
3406 <p>description: With any one of a small set of corrupted data
3407 fields in a line table header that were not checked
3408 for sanity the library could try to malloc a giant space,
3409 which could take a long time to succeed or fail.
3410 After that almost anything could happen.
3411 Same bug fix as 56443
3412 </p>
3413 <p>datefixed: 2023-03-03
3414 </p>
3415 <p>references: regressiontests/ossfuzz56548/fuzz_findfuncbypc-5073632331431936
3416 </p>
3417 <p>gitfixid: 89d3beccd161657760585967255bbabf67e5b4c9
3418 </p>
3419 <p>tarrelease: libdwarf-0.7.0.tar.xz
3420 </p>
3421 <p> <a href="#top">[top]</a> </p>
3422 <h3 id="DW202303-001">112) DW202303-001</h3>
3423 <p>id: DW202303-001
3424 </p>
3425 <p>cve:</p>
3426 <p>fuzzer: oss-fuzz id: 56465
3427 </p>
3428 <p>datereported: 2023-03-01
3429 </p>
3430 <p>reportedby: David Korczynski
3431 </p>
3432 <p>vulnerability: Denial of Service with corrupt attribute
3433 </p>
3434 <p>product: libdwarf
3435 </p>
3436 <p>description: With a particular data corruption
3437 dwarf_attrlist() failed to return an error and
3438 the library would dereference a stale pointer.
3439 This also provoked a memory leak.
3440 </p>
3441 <p>datefixed: 2023-03-02
3442 </p>
3443 <p>references: regressiontests/ossfuzz56465/fuzz_die_cu_offset-5866690199289856
3444 </p>
3445 <p>gitfixid: 948352178dc791796ed574a961191844d8322493
3446 </p>
3447 <p>tarrelease: libdwarf-0.7.0.tar.xz
3448 </p>
3449 <p> <a href="#top">[top]</a> </p>
3450 <h3 id="DW202301-001">113) DW202301-001</h3>
3451 <p>id: DW202301-001
3452 </p>
3453 <p>cve:</p>
3454 <p>fuzzer:</p>
3455 <p>datereported: 2023-01-24
3456 </p>
3457 <p>reportedby: Steve Kaufmann
3458 </p>
3459 <p>vulnerability: Denial of Service with DW_FORM_strx3
3460 </p>
3461 <p>product: libdwarf
3462 </p>
3463 <p>description: Any use of DW_FORM_strx3 or
3464 DW_FORM_addrx3 would get libdwarf very confused
3465 and incorrect return values
3466 and or a library crash might result.
3467 </p>
3468 <p>datefixed: 2023-01-24
3469 </p>
3470 <p>references: regressiontests/kaufmann2/ct-bad.o
3471 </p>
3472 <p>gitfixid: 97e90eb7ab98df60b8da0bdc2ac855711c4db804
3473 </p>
3474 <p>tarrelease: libdwarf-0.6.0.tar.xz
3475 </p>
3476 <p> <a href="#top">[top]</a> </p>
3477 <h3 id="DW202212-001">114) DW202212-001</h3>
3478 <p>id: DW202212-001
3479 </p>
3480 <p>cve:</p>
3481 <p>fuzzer: oss-fuzz
3482 </p>
3483 <p>datereported: 2022-12-28
3484 </p>
3485 <p>reportedby: David Korczynski
3486 </p>
3487 <p>vulnerability: Denial of Service with fuzzed object.
3488 </p>
3489 <p>product: libdwarf
3490 </p>
3491 <p>description: The fuzzed testcase has at least four major
3492 errors which libdwarf did not catch, leading
3493 to unpredictable library behavior, possibly
3494 including crashing the calling program.
3495 Things not noticed before the fix (and now resulting
3496 in error being reported):
3497 A) The object has just 2 sections,
3498 too few to be real. at least 3 sections are needed
3499 to contain DWARF information of any kind.
3500 B) Section zero has non-zero contents, in violation
3501 of the Elf object specification.
3502 C) The header says section strings are in section
3503 zero (a violation of the Elf specification).
3504 D) Section 1 masquerades as .note.gnu.debug-id
3505 and the description size is gigantic (as is
3506 the section, which fits the description field
3507 length).
3508 </p>
3509 <p>datefixed: 2023-01-09
3510 </p>
3511 <p>references: regressiontests/ossfuzz54724/clusterfuzz-54724-poc
3512 </p>
3513 <p>gitfixid: 45f6d778811553a835916b60845933e6dda63b7f
3514 </p>
3515 <p>tarrelease: libdwarf-0.6.0.tar.xz
3516 </p>
3517 <p> <a href="#top">[top]</a> </p>
3518 <h3 id="DW202208-001">115) DW202208-001</h3>
3519 <p>id: DW202208-001
3520 </p>
3521 <p>cve:</p>
3522 <p>fuzzer: unspecified
3523 </p>
3524 <p>datereported: 2022-08-27
3525 </p>
3526 <p>reportedby: Han Zheng
3527 </p>
3528 <p>vulnerability: Double free on corrupted frame data.
3529 </p>
3530 <p>product: libdwarf
3531 </p>
3532 <p>description: A carefully corrupted object file
3533 would cause libdwarf to do a double free in
3534 handling an error condition in
3535 dwarf_expand_frame_instructions().
3536 (in libdwarf/dwarf_frame.c)
3537 That could cause a segmentation violation or other
3538 major error, terminating the calling application and
3539 resulting in Denial Of Service.
3540 </p>
3541 <p>datefixed: 2022-08-27
3542 </p>
3543 <p>references: regressiontests/hanzheng/fuzzedobject
3544 </p>
3545 <p>gitfixid: 428235e3d132fb62faf7732735fdbb034d6264b4
3546 </p>
3547 <p>tarrelease: libdwarf-0.5.0.tar.xz
3548 </p>
3549 <p> <a href="#top">[top]</a> </p>
3550 <h3 id="DW202207-001">116) DW202207-001</h3>
3551 <p>id: DW202207-001
3552 </p>
3553 <p>cve:</p>
3554 <p>fuzzer: ossfuzz
3555 </p>
3556 <p>datereported: 2022-05-01
3557 </p>
3558 <p>reportedby: David Korczynski
3559 </p>
3560 <p>vulnerability: buffer overflow in dwarf_form.c
3561 </p>
3562 <p>product: libdwarf
3563 </p>
3564 <p>description: A carefully corrupted string
3565 would cause libdwarf to read outside of a buffer containing
3566 the string (one past the end) when checking the string
3567 to determine if it is a full path in processing
3568 a .gnu.debuglink section.
3569 That could cause a segmentation violation or other
3570 major error, terminating the calling application and
3571 resulting in Denial Of Service.
3572 </p>
3573 <p>datefixed: 2022-07-23
3574 </p>
3575 <p>references: regressiontests/ossfuzz47150/clusterfuzz-testcase-minimized-fuzz_init_path-6727387238236160.fuzz
3576 </p>
3577 <p>gitfixid: 24dff940cc4c71a9c3cb5475aee231b19163a12c
3578 </p>
3579 <p>tarrelease: libdwarf-0.5.0.tar.xz
3580 </p>
3581 <p> <a href="#top">[top]</a> </p>
3582 <h3 id="DW202206-001">117) DW202206-001</h3>
3583 <p>id: DW202206-001
3584 </p>
3585 <p>cve:</p>
3586 <p>fuzzer:</p>
3587 <p>datereported: 2022-06-15
3588 </p>
3589 <p>reportedby: Casper Sun
3590 </p>
3591 <p>vulnerability: buffer overflow in dwarf_form.c
3592 </p>
3593 <p>product: libdwarf
3594 </p>
3595 <p>description: A carefully corrupted .debug_info section
3596 would cause libdwarf to read outside of a buffer containing
3597 a Dwarf_Sig8 symbolic reference.
3598 That could cause a segmentation violation or other
3599 major error, terminating the calling application and
3600 resulting in Denial Of Service.
3601 This failure to check for buffer overflow has been present
3602 since DWARF4 when DW_FORM_ref_sig8 was added to libdwarf.
3603 </p>
3604 <p>datefixed: 2022-06-15
3605 </p>
3606 <p>references: regressiontests/sleicasper2/buffer-overflow-dwarf-form
3607 </p>
3608 <p>gitfixid: 7ef09e1fc9ba07653dd078edb2408631c7969162
3609 </p>
3610 <p>tarrelease: libdwarf-0.4.1.tar.xz
3611 </p>
3612 <p> <a href="#top">[top]</a> </p>
3613 <h3 id="DW202205-001">118) DW202205-001</h3>
3614 <p>id: DW202205-001
3615 </p>
3616 <p>cve:</p>
3617 <p>fuzzer:</p>
3618 <p>datereported: 2022-05-26
3619 </p>
3620 <p>reportedby: Casper Sun
3621 </p>
3622 <p>vulnerability: buffer overflow in dwarf_globals.c
3623 </p>
3624 <p>product: libdwarf
3625 </p>
3626 <p>description: A carefully corrupted .debug_pubnames section
3627 would cause libdwarf to read outside of a buffer containing
3628 the section contents.
3629 That could cause a segmentation violation or other
3630 major error, terminating the calling application and
3631 resulting in Denial Of Service.
3632 The bug has been present for many years.
3633 </p>
3634 <p>datefixed: 2022-05-29
3635 </p>
3636 <p>references: regressiontests/sleicasper/bufferoverflow
3637 </p>
3638 <p>gitfixid: 8151575a6ace77d005ca5bb5d71c1bfdba3f7069
3639 </p>
3640 <p>tarrelease: libdwarf-0.4.1.tar.xz
3641 </p>
3642 <p> <a href="#top">[top]</a> </p>
3643 <h3 id="DW202111-016">119) DW202111-016</h3>
3644 <p>id: DW202111-016
3645 </p>
3646 <p>cve:</p>
3647 <p>fuzzer: oss-fuzz-41240
3648 </p>
3649 <p>datereported: 2021-11-20
3650 </p>
3651 <p>reportedby: David Korczynski
3652 </p>
3653 <p>vulnerability: Out-of-memory in fuzz_init_path
3654 </p>
3655 <p>product: libdwarf
3656 </p>
3657 <p>description: A corrupted object.
3658 The PE object section header for
3659 section .gnu_debuglink is corrupted. A very
3660 large number is in the VirtualSize field.
3661 Attempting a malloc for the section could
3662 succeed or might fail, resulting in
3663 Denial Of Service.
3664 </p> <pre>
3665 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41240
3666 </pre>
3667 <p></p>
3668 <p>datefixed: 2021-11-21
3669 </p>
3670 <p>references: regressiontests/ ossfuzz41240/clusterfuzz-testcase-minimized-fuzz_init_path-5929343686148096
3671 </p>
3672 <p>gitfixid: a120c808234060c3c9b1872ab9a059aa1ac70b1d
3673 </p>
3674 <p>tarrelease: libdwarf-0.4.1.tar.xz
3675 </p>
3676 <p> <a href="#top">[top]</a> </p>
3677 <h3 id="DW202111-015">120) DW202111-015</h3>
3678 <p>id: DW202111-015
3679 </p>
3680 <p>cve:</p>
3681 <p>fuzzer: oss-fuzz-40896
3682 </p>
3683 <p>datereported: 2021-11-10
3684 </p>
3685 <p>reportedby: David Korczynski
3686 </p>
3687 <p>vulnerability: Out-of-memory in fuzz_init_path
3688 </p>
3689 <p>product: libdwarf
3690 </p>
3691 <p>description: A corrupted object.
3692 Several Elf section sizes and section offsets are larger than
3693 the file size.
3694 </p> <pre>
3695 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40896
3696 </pre>
3697 <p></p>
3698 <p>datefixed: 2021-11-12
3699 </p>
3700 <p>references: regressiontests/ossfuzz40896/clusterfuzz-testcase-fuzz_init_path-5337872492789760
3701 regressiontests/ossfuzz40896/clusterfuzz-testcase-minimized-fuzz_init_path-5337872492789760
3702 </p>
3703 <p>gitfixid: b7a119dc07c502c1334bcbf8dd04ca0e4d5f6ab6
3704 </p>
3705 <p>tarrelease: libdwarf-0.4.1.tar.xz
3706 </p>
3707 <p> <a href="#top">[top]</a> </p>
3708 <h3 id="DW202111-014">121) DW202111-014</h3>
3709 <p>id: DW202111-014
3710 </p>
3711 <p>cve:</p>
3712 <p>fuzzer: oss-fuzz-40895
3713 </p>
3714 <p>datereported: 2021-11-10
3715 </p>
3716 <p>reportedby: David Korczynski
3717 </p>
3718 <p>vulnerability: Out-of-memory in fuzz_init_binary
3719 </p>
3720 <p>product: libdwarf
3721 </p>
3722 <p>description: A corrupted object.
3723 Some Elf section sizes are larger than the file size.
3724 </p> <pre>
3725 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40895
3726 </pre>
3727 <p></p>
3728 <p>datefixed: 2021-11-12
3729 </p>
3730 <p>references: regressiontests/ossfuzz40895/clusterfuzz-testcase-fuzz_init_binary-4805508242997248
3731 regressiontests/ossfuzz40895/clusterfuzz-testcase-minimized-fuzz_init_binary-4805508242997248
3732 </p>
3733 <p>gitfixid: b7a119dc07c502c1334bcbf8dd04ca0e4d5f6ab6
3734 </p>
3735 <p>tarrelease: libdwarf-0.4.1.tar.xz
3736 </p>
3737 <p> <a href="#top">[top]</a> </p>
3738 <h3 id="DW202111-013">122) DW202111-013</h3>
3739 <p>id: DW202111-013
3740 </p>
3741 <p>cve:</p>
3742 <p>fuzzer: oss-fuzz-40802
3743 </p>
3744 <p>datereported: 2021-11-07
3745 </p>
3746 <p>reportedby: David Korczynski
3747 </p>
3748 <p>vulnerability: Null-dereference READ in dwarf_object_init_b
3749 </p>
3750 <p>product: libdwarf
3751 </p>
3752 <p>description: A corrupted object.
3753 The error handling code in dwarf_object_init_b
3754 was not properly dealing with a NULL pointer
3755 Dwarf_Error *errp in the test code.
3756 </p> <pre>
3757 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40802
3758 </pre>
3759 <p></p>
3760 <p>datefixed: 2021-11-19
3761 </p>
3762 <p>references: regressiontests/ossfuzz40802/ clusterfuzz-testcase-fuzz_init_binary-5538015955517440.fuzz
3763 regressiontests/ossfuzz40802/clusterfuzz-testcase-minimized-fuzz_init_binary-5538015955517440.fuzz
3764 </p>
3765 <p>gitfixid: adf4dae25b39039f1821b095688c00f3010e1d37
3766 </p>
3767 <p>tarrelease: libdwarf-0.4.1.tar.xz
3768 </p>
3769 <p> <a href="#top">[top]</a> </p>
3770 <h3 id="DW202111-012">123) DW202111-012</h3>
3771 <p>id: DW202111-012
3772 </p>
3773 <p>cve:</p>
3774 <p>fuzzer: oss-fuzz-40801
3775 </p>
3776 <p>datereported: 2021-11-07
3777 </p>
3778 <p>reportedby: David Korczynski
3779 </p>
3780 <p>vulnerability: Timeout in fuzz_init_path
3781 </p>
3782 <p>product: libdwarf
3783 </p>
3784 <p>description: A corrupted object. libdwarf detects it quickly now.
3785 </p> <pre>
3786 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40801
3787 </pre>
3788 <p></p>
3789 <p>datefixed: 2021-11-07
3790 </p>
3791 <p>references: regressiontests/ossfuzz801/clusterfuzz-testcase-fuzz_init_path-5443517279764480
3792 regressiontests/ossfuzz40801/clusterfuzz-testcase-minimized-fuzz_init_path-5443517279764480
3793 </p>
3794 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3795 </p>
3796 <p>tarrelease: libdwarf-0.4.1.tar.xz
3797 </p>
3798 <p> <a href="#top">[top]</a> </p>
3799 <h3 id="DW202111-011">124) DW202111-011</h3>
3800 <p>id: DW202111-011
3801 </p>
3802 <p>cve:</p>
3803 <p>fuzzer: oss-fuzz-40799
3804 </p>
3805 <p>datereported: 2021-11-02
3806 </p>
3807 <p>reportedby: David Korczynski
3808 </p>
3809 <p>vulnerability: Out-of-memory in fuzz_init_path
3810 </p>
3811 <p>product: libdwarf
3812 </p>
3813 <p>description: A corrupted object.
3814 Gigantic section sizes or offsets were provoking
3815 a large malloc. Now these are detected and
3816 no malloc is attempted (an error is returned).
3817 </p> <pre>
3818 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40799
3819 </pre>
3820 <p></p>
3821 <p>datefixed: 2021-11-07
3822 </p>
3823 <p>references: regressiontests/ossfuzz40799/clusterfuzz-testcase-fuzz_init_path-5245778948390912
3824 regressiontests/ossfuzz40799/clusterfuzz-testcase-minimized-fuzz_init_path-5245778948390912
3825 </p>
3826 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3827 </p>
3828 <p>tarrelease: libdwarf-0.4.1.tar.xz
3829 </p>
3830 <p> <a href="#top">[top]</a> </p>
3831 <h3 id="DW202111-010">125) DW202111-010</h3>
3832 <p>id: DW202111-010
3833 </p>
3834 <p>cve:</p>
3835 <p>fuzzer: oss-fuzz-40627
3836 </p>
3837 <p>datereported: 2021-11-02
3838 </p>
3839 <p>reportedby: David Korczynski
3840 </p>
3841 <p>vulnerability: Abrt in _dwarf_error_string
3842 </p>
3843 <p>product: libdwarf
3844 </p>
3845 <p>description: The Elf object file has some corruption. The
3846 read now stops with an error.
3847 </p> <pre>
3848 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40627
3849 </pre>
3850 <p></p>
3851 <p>datefixed: 2021-11-07
3852 </p>
3853 <p>references: regressiontests/ossfuzz40627/clusterfuzz-testcase-fuzz_init_path-5186858573758464
3854 regressiontests/ossfuzz40627/clusterfuzz-testcase-minimized-fuzz_init_path-5186858573758464
3855 </p>
3856 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3857 </p>
3858 <p>tarrelease: libdwarf-0.4.1.tar.xz
3859 </p>
3860 <p> <a href="#top">[top]</a> </p>
3861 <h3 id="DW202111-009">126) DW202111-009</h3>
3862 <p>id: DW202111-009
3863 </p>
3864 <p>cve:</p>
3865 <p>fuzzer: oss-fuzz-40729
3866 </p>
3867 <p>datereported: 2021-11-05
3868 </p>
3869 <p>reportedby: David Korczynski
3870 </p>
3871 <p>vulnerability: Timeout - fuzz_init_binary
3872 </p>
3873 <p>product: libdwarf
3874 </p>
3875 <p>description: The object file (macho 64 bit) has some
3876 header fuzzing that was not caught reading
3877 the object until the macho reader
3878 tried a gigantic malloc..
3879 Now the library code catches the error before malloc and
3880 returns an error code.
3881 </p> <pre>
3882 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40729
3883 </pre>
3884 <p></p>
3885 <p>datefixed: 2021-11-07
3886 </p>
3887 <p>references: regressiontests/ossfuzz40729/clusterfuzz-testcase-minimized-fuzz_init_binary-4791627277795328
3888 </p>
3889 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3890 </p>
3891 <p>tarrelease: libdwarf-0.4.1.tar.xz
3892 </p>
3893 <p> <a href="#top">[top]</a> </p>
3894 <h3 id="DW202111-008">127) DW202111-008</h3>
3895 <p>id: DW202111-008
3896 </p>
3897 <p>cve:</p>
3898 <p>fuzzer: oss-fuzz-40731
3899 </p>
3900 <p>datereported: 2021-11-03
3901 </p>
3902 <p>reportedby: David Korczynski
3903 </p>
3904 <p>vulnerability: Out-of-memory in fuzz_init_binary
3905 </p>
3906 <p>product: libdwarf
3907 </p>
3908 <p>description: The fuzzed macho64 object has corrupted
3909 headers. The library notices and reports an error.
3910 </p> <pre>
3911 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40731
3912 </pre>
3913 <p></p>
3914 <p>datefixed: 2021-11-07
3915 </p>
3916 <p>references: regressiontests/ossfuzz40731/clusterfuzz-testcase-fuzz_init_binary-5983147574034432
3917 </p>
3918 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3919 </p>
3920 <p>tarrelease: libdwarf-0.4.1.tar.xz
3921 </p>
3922 <p> <a href="#top">[top]</a> </p>
3923 <h3 id="DW202111-005">128) DW202111-005</h3>
3924 <p>id: DW202111-005
3925 </p>
3926 <p>cve:</p>
3927 <p>fuzzer: oss-fuzz-40674
3928 </p>
3929 <p>datereported: 2021-11-03
3930 </p>
3931 <p>reportedby: David Korczynski
3932 </p>
3933 <p>vulnerability: Heap-buffer-overflow in _dwarf_elf_setup_all_section_groups
3934 </p>
3935 <p>product: libdwarf
3936 </p>
3937 <p>description: Object file has corrupt section group information.
3938 Results in buffer overflow.
3939 </p> <pre>
3940 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40674#c6
3941 </pre>
3942 <p></p>
3943 <p>datefixed: 2021-11-07
3944 </p>
3945 <p>references: regressiontests/ossfuzz40674/clusterfuzz-testcase-minimized-fuzz_init_path-6557751518560256
3946 </p>
3947 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3948 </p>
3949 <p>tarrelease: libdwarf-0.4.1.tar.xz
3950 </p>
3951 <p> <a href="#top">[top]</a> </p>
3952 <h3 id="DW202111-004">129) DW202111-004</h3>
3953 <p>id: DW202111-004
3954 </p>
3955 <p>cve:</p>
3956 <p>fuzzer: oss-fuzz-40673
3957 </p>
3958 <p>datereported: 2021-11-03
3959 </p>
3960 <p>reportedby: David Korczynski
3961 </p>
3962 <p>vulnerability: Null-dereference READ in dwarf_object_init_b
3963 </p>
3964 <p>product: libdwarf
3965 </p>
3966 <p>description: The macho object has corrupted headers
3967 and now mentions that and stops.
3968 Verified as fixed by oss-fuzz 2021-11-03
3969 </p> <pre>
3970 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40673
3971 </pre>
3972 <p></p>
3973 <p>datefixed: 2021-11-05
3974 </p>
3975 <p>references: regressiontests/ossfuzz40673/clusterfuzz-testcase-minimized-fuzz_init_path-6240961391362048.fuzz
3976 </p>
3977 <p>gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
3978 </p>
3979 <p>tarrelease: libdwarf-0.4.1.tar.xz
3980 </p>
3981 <p> <a href="#top">[top]</a> </p>
3982 <h3 id="DW202111-003">130) DW202111-003</h3>
3983 <p>id: DW202111-003
3984 </p>
3985 <p>cve:</p>
3986 <p>fuzzer: oss-fuzz-40671
3987 </p>
3988 <p>datereported: 2021-11-03
3989 </p>
3990 <p>reportedby: David Korczynski
3991 </p>
3992 <p>vulnerability: Direct-leak in _dwarf_get_debug
3993 </p>
3994 <p>product: libdwarf
3995 </p>
3996 <p>description: The test code is calling a libdwarf-internal
3997 function (which is against the rules, only libdwarf
3998 function names beginning with dwarf_ are callable.
3999 When building libdwarf as an archive there is no
4000 means to enforce this rule)
4001 doc/libdwarf.mm/pdf now documents this rule.
4002 </p> <pre>
4003 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40671
4004 </pre>
4005 <p></p>
4006 <p>datefixed: 2021-11-05
4007 </p>
4008 <p>references: regressiontests/oss40671/clusterfuzz-testcase-fuzz_init_path-5455557297831936
4009 regressiontests/oss40671/clusterfuzz-testcase-minimized-fuzz_init_path-5455557297831936
4010 </p>
4011 <p>gitfixid: b40f7e291216e771185f62292dd6304b5a662926
4012 </p>
4013 <p>tarrelease: libdwarf-0.4.1.tar.xz
4014 </p>
4015 <p> <a href="#top">[top]</a> </p>
4016 <h3 id="DW202111-002">131) DW202111-002</h3>
4017 <p>id: DW202111-002
4018 </p>
4019 <p>cve:</p>
4020 <p>fuzzer: oss-fuzz-40669
4021 </p>
4022 <p>datereported: 2021-11-03
4023 </p>
4024 <p>reportedby: David Korczynski
4025 </p>
4026 <p>vulnerability: Out-of-memory in fuzz_init_path
4027 </p>
4028 <p>product: libdwarf
4029 </p>
4030 <p>description: Corrupted MachO object can crash caller.b
4031 Two fields in the MachO file header
4032 were not checked for sanity so nonsense large values
4033 could lead to excessive malloc and or a caller
4034 segmentation violation. Fixed by DW202111-001.
4035 Verified as fixed by oss-fuzz
4036 </p> <pre>
4037 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40669
4038 </pre>
4039 <p></p>
4040 <p>datefixed: 2021-11-04
4041 </p>
4042 <p>references: regressiontests/ossfuzz40669/clusterfuzz-testcase-minimized-fuzz_init_path-5399726397194240
4043 regressiontests/clusterfuzz-testcase-fuzz_init_path-5399726397194240
4044 </p>
4045 <p>gitfixid: b40f7e291216e771185f62292dd6304b5a662926
4046 </p>
4047 <p>tarrelease: libdwarf-0.4.1.tar.xz
4048 </p>
4049 <p> <a href="#top">[top]</a> </p>
4050 <h3 id="DW202111-001">132) DW202111-001</h3>
4051 <p>id: DW202111-001
4052 </p>
4053 <p>cve:</p>
4054 <p>fuzzer: oss-fuzz-40663
4055 </p>
4056 <p>datereported: 2021-11-03
4057 </p>
4058 <p>reportedby: David Korczynski
4059 </p>
4060 <p>vulnerability: Timeout in fuzz_init_path
4061 </p>
4062 <p>product: libdwarf
4063 </p>
4064 <p>description: Corrupted MachO object can crash caller
4065 Two fields in the MachO file header
4066 were not checked for sanity so nonsense large values
4067 could lead to excessive malloc and or a caller
4068 segmentation violation.
4069 Verified by oss-fuzz as fixed.
4070 The testcase has illegal libdwarf call
4071 and improper include statements.
4072 </p> <pre>
4073 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40663
4074 </pre>
4075 <p></p>
4076 <p>datefixed: 2021-11-04
4077 </p>
4078 <p>references: regressiontests/ossfuzz40663/clusterfuzz-testcase-minimized-fuzz_init_path-6122542432124928
4079 </p>
4080 <p>gitfixid: b40f7e291216e771185f62292dd6304b5a662926
4081 </p>
4082 <p>tarrelease: libdwarf-0.4.1.tar.xz
4083 </p>
4084 <p> <a href="#top">[top]</a> </p>
4085 <h3 id="DW202010-003">133) DW202010-003</h3>
4086 <p>id: DW202010-003
4087 </p>
4088 <p>cve: CVE-2020-28163
4089 </p>
4090 <p>fuzzer:</p>
4091 <p>datereported: 2020-10-27
4092 </p>
4093 <p>reportedby: Casper Sun
4094 </p>
4095 <p>vulnerability: Passing null to %s due to corrupt line table header.
4096 </p>
4097 <p>product: libdwarf
4098 </p>
4099 <p>description: If a DWARF5 line table header has an invalid
4100 FORM for a pathname, the fi_file_name field may be null
4101 and printing it via %s can result in referencing memory
4102 at address 0, possibly generating segmentation
4103 violation or application crash. Now in case of null
4104 we provide a fixed string of &lt;no file name&gt;
4105 and for the form code we print the value and &lt;unknown form&gt;
4106 so there are no unpredictable effects.
4107 </p> <pre>
4108 This should be visible after redhat makes it public.
4109 Filed on bugzilla.redhat 23 November 2021.
4110 bugzilla.redhat.com/show_bug.cgi?id=2026000
4111 </pre>
4112 <p></p>
4113 <p>datefixed: 2020-10-28
4114 </p>
4115 <p>references: regressiontests/c-sun2/nullpointer
4116 </p>
4117 <p>gitfixid: faf99408e3f9f706fc3809dd400e831f989778d3
4118 </p>
4119 <p>tarrelease: libdwarf-0.4.1.tar.xz
4120 </p>
4121 <p> <a href="#top">[top]</a> </p>
4122 <h3 id="DW202010-002">134) DW202010-002</h3>
4123 <p>id: DW202010-002
4124 </p>
4125 <p>cve: CVE-2020-28162
4126 </p>
4127 <p>fuzzer:</p>
4128 <p>datereported: 2020-10-27
4129 </p>
4130 <p>reportedby: Casper Sun
4131 </p>
4132 <p>vulnerability: dwarfdump crashes if the nest of C scopes is too deep
4133 </p>
4134 <p>product: dwarfdump
4135 </p>
4136 <p>description: An object file where the DIEs depth of
4137 nesting exceeds the limit of 800 levels
4138 due to corruption or a compiler bug
4139 can result in exhausting the die stack array and
4140 writing past its end.
4141 A segmentation fault is possible.
4142 The code at the point of error was not adjusting
4143 the array index properly
4144 so an invalid dereference could occur.
4145 Now the test code is correct and the array overflow
4146 is detected resulting in a normal error return.
4147 Additional places where this could occur were
4148 identified and the proper test added.
4149 </p> <pre>
4150 Unable to enter in bugzilla.redhat.com
4151 so CVE can be completed by Fedora (as CNA)
4152 as dwarfdump is not part of Fedora
4153 </pre>
4154 <p></p>
4155 <p>datefixed: 2020-10-28
4156 </p>
4157 <p>references: regressiontests/c-sun2/globaloverflow
4158 </p>
4159 <p>gitfixid: a7fa8edd640b74daf8e7a442dcec96640875b4fb
4160 </p>
4161 <p>tarrelease: libdwarf-0.4.1.tar.xz
4162 </p>
4163 <p> <a href="#top">[top]</a> </p>
4164 <h3 id="DW202010-001">135) DW202010-001</h3>
4165 <p>id: DW202010-001
4166 </p>
4167 <p>cve: CVE-2020-27545
4168 </p>
4169 <p>fuzzer:</p>
4170 <p>datereported: 2020-10-10
4171 </p>
4172 <p>reportedby: Casper Sun
4173 </p>
4174 <p>vulnerability: A carefully corrupted line table can crash calling app
4175 </p>
4176 <p>product: libdwarf
4177 </p>
4178 <p>description: A carefully crafted object with an
4179 invalid line table could cause libdwarf
4180 to dereference a pointer reading a single byte outside of
4181 the intended .debug_line section and potentially
4182 outside of memory visible to the library.
4183 A segmentation fault is possible.
4184 The code testing for the error was coded incorrectly
4185 so an invalid dereference could occur.
4186 Now the test code is correct and the error
4187 is detected resulting in a normal error return.
4188 </p> <pre>
4189 This should be visible after redhat makes it public.
4190 Filed on bugzilla.redhat 22 November 2021.
4191 bugzilla.redhat.com/show_bug.cgi?id=2025694
4192 </pre>
4193 <p></p>
4194 <p>datefixed: 2020-10-17
4195 </p>
4196 <p>references: regressiontests/c-sun/poc
4197 </p>
4198 <p>gitfixid: 95f634808c01f1c61bbec56ed2395af997f397ea
4199 </p>
4200 <p>tarrelease: libdwarf-0.4.1.tar.xz
4201 </p>
4202 <p> <a href="#top">[top]</a> </p>
4203 <h3 id="DW201907-001">136) DW201907-001</h3>
4204 <p>id: DW201907-001
4205 </p>
4206 <p>cve: CVE-2019-14249
4207 </p>
4208 <p>fuzzer:</p>
4209 <p>datereported: 2019-07-23
4210 </p>
4211 <p>reportedby: unknown
4212 </p>
4213 <p>vulnerability: Denial of service with zero size section group
4214 </p>
4215 <p>product: libdwarf
4216 </p>
4217 <p>description: dwarf_elf_load_headers.c in libdwarf before 2019-07-05 allows attackers to cause a denial of service (division by zero) via an ELF file with a zero-size section group (SHT_GROUP), as demonstrated by dwarfdump.
4218 </p>
4219 <p>datefixed: 2019-07-05
4220 </p>
4221 <p>references:</p>
4222 <p>gitfixid: cb7198abde46c2ae29957ad460da6886eaa606ba
4223 </p>
4224 <p>tarrelease: libdwarf-0.4.1.tar.xz
4225 </p>
4226 <p> <a href="#top">[top]</a> </p>
4227 <h3 id="DW201801-001">137) DW201801-001</h3>
4228 <p>id: DW201801-001
4229 </p>
4230 <p>cve:</p>
4231 <p>fuzzer:</p>
4232 <p>datereported: 2018-01-28
4233 </p>
4234 <p>reportedby: Agostino Sarubbo
4235 </p>
4236 <p>vulnerability: Incorrect frame section can crash dwarfdump
4237 </p>
4238 <p>product: dwarfdump
4239 </p>
4240 <p>description: A carefully crafted object with an
4241 invalid frame section set of initial-instructions
4242 can crash the frame-instructions decode in
4243 dwarfdump. In addition, a couple places in libdwarf
4244 are not as careful in checking frame data as
4245 they should be.
4246 A segmentation-fault/core-dump is possible.
4247 </p>
4248 <p>datefixed: 2018-01-29
4249 </p>
4250 <p>references: sarubbo-11/testcase{1,2,3,4,5}.bin
4251 </p>
4252 <p>gitfixid: 7af0ecddfafed88446969cbf8c888356ad485d99
4253 </p>
4254 <p>tarrelease: libdwarf-20180129.tar.gz
4255 </p>
4256 <p> <a href="#top">[top]</a> </p>
4257 <h3 id="DW201712-001">138) DW201712-001</h3>
4258 <p>id: DW201712-001
4259 </p>
4260 <p>cve:</p>
4261 <p>fuzzer:</p>
4262 <p>datereported: 2017-12-01
4263 </p>
4264 <p>reportedby: Agostino Sarubbo
4265 </p>
4266 <p>vulnerability: Incorrect frame section could let caller crash
4267 </p>
4268 <p>product: libdwarf
4269 </p>
4270 <p>description: A carefully crafted object with an
4271 invalid frame section
4272 can result in passing back data to a caller of
4273 dwarf_get_fde_augmentation_data()
4274 is erroneous and will result in the
4275 caller reference off the end of the frame
4276 section.
4277 A segmentation-fault/core-dump is possible.
4278 </p>
4279 <p>datefixed: 2017-12-01
4280 </p>
4281 <p>references: sarubbo-10/1.crashes.bin
4282 </p>
4283 <p>gitfixid: 329ea8e56bc9550260cae6e2e9756bfbe7e2ff6d
4284 </p>
4285 <p>tarrelease: libdwarf-20180129.tar.gz
4286 </p>
4287 <p> <a href="#top">[top]</a> </p>
4288 <h3 id="DW201711-002">139) DW201711-002</h3>
4289 <p>id: DW201711-002
4290 </p>
4291 <p>cve:</p>
4292 <p>fuzzer:</p>
4293 <p>datereported: 2017-11-08
4294 </p>
4295 <p>reportedby: Agostino Sarubbo
4296 </p>
4297 <p>vulnerability: Incorrect line table section could crash caller
4298 </p>
4299 <p>product: libdwarf
4300 </p>
4301 <p>description: An carefully crafted object with a
4302 invalid line table section crafted to
4303 end early at a particular point resulted in
4304 dereferencing outside the line table from
4305 libdwarf/dwarf_line_table_reader_common.c .
4306 A segmentation-fault/core-dump is possible.
4307 </p>
4308 <p>datefixed: 2017-11-08
4309 </p>
4310 <p>references: regressiontests/sarubbo-9/3.crashes.bin
4311 </p>
4312 <p>gitfixid: a1644f4dde7dd5990537ff7ad22a9e94b8723186
4313 </p>
4314 <p>tarrelease: libdwarf-20180129.tar.gz
4315 </p>
4316 <p> <a href="#top">[top]</a> </p>
4317 <h3 id="DW201711-001">140) DW201711-001</h3>
4318 <p>id: DW201711-001
4319 </p>
4320 <p>cve:</p>
4321 <p>fuzzer:</p>
4322 <p>datereported: 2017-11-01
4323 </p>
4324 <p>reportedby: Agostino Sarubbo
4325 </p>
4326 <p>vulnerability: Incorrect frame section could crash caller
4327 </p>
4328 <p>product: libdwarf
4329 </p>
4330 <p>description: A carefully crafted object with a
4331 resulting invalid frame section
4332 with DW_CFA_advance_loc1 implying
4333 data off-the-end-of-section
4334 will dereference an invalid pointer.
4335 A segmentation fault and core dump is possible.
4336 Corrected code checks now.
4337 </p>
4338 <p>datefixed: 2017-11-02
4339 </p>
4340 <p>references: regressiontests/sarubbo-8/1.crashes.bin
4341 </p>
4342 <p>gitfixid: 44349d7991e44dd3751794f76537cabcf65ee28d
4343 </p>
4344 <p>tarrelease: libdwarf-20180129.tar.gz
4345 </p>
4346 <p> <a href="#top">[top]</a> </p>
4347 <h3 id="DW201709-001">141) DW201709-001</h3>
4348 <p>id: DW201709-001
4349 </p>
4350 <p>cve:</p>
4351 <p>fuzzer:</p>
4352 <p>datereported: 2017-09-19
4353 </p>
4354 <p>reportedby: Agostino Sarubbo
4355 </p>
4356 <p>vulnerability: Incorrect abbrev section could crash caller.
4357 </p>
4358 <p>product: libdwarf
4359 </p>
4360 <p>description: A fuzzed object with a
4361 resulting invalid abbrev section where
4362 the end of section follows an abbrev tag
4363 would dereference a non-existent has-child byte.
4364 </p>
4365 <p>datefixed: 2017-09-26
4366 </p>
4367 <p>references: regressiontests/sarubbo-3/1.crashes.bin
4368 </p>
4369 <p>gitfixid: bcc2e33908e669bacd397e3c941ffd1db3005d17
4370 </p>
4371 <p>tarrelease: libdwarf-20180129.tar.gz
4372 </p>
4373 <p> <a href="#top">[top]</a> </p>
4374 <h3 id="DW201706-001">142) DW201706-001</h3>
4375 <p>id: DW201706-001
4376 </p>
4377 <p>cve: CVE-2017-9998
4378 </p>
4379 <p>fuzzer:</p>
4380 <p>datereported: 2017-06-28
4381 </p>
4382 <p>reportedby: team OWL337
4383 </p>
4384 <p>vulnerability: Addition overflow in libdwarf leads to segmentation violation
4385 </p>
4386 <p>product: libdwarf
4387 </p>
4388 <p>description: A fuzzed object with a
4389 resulting invalid value can overflow
4390 when added to a valid pointer
4391 (depending on how the runtime memory is laid out)
4392 and thereafter a dereference results in a
4393 segmentation violation).
4394 </p> <pre> see
4395 https://bugzilla.redhat.com/show_bug.cgi?id=1465756
4396 for contact information of those finding the bug.
4397 Fabian Wolff sent email and provided
4398 the link to the web page.
4399 </pre>
4400 <p></p>
4401 <p>datefixed: 2017-07-06
4402 </p>
4403 <p>references: regressiontests/wolff/POC1
4404 </p>
4405 <p>gitfixid: e91681e8841291f57386f26a90897fd1dcf92a6e
4406 </p>
4407 <p>tarrelease: libdwarf-20180129.tar.gz
4408 </p>
4409 <p> <a href="#top">[top]</a> </p>
4410 <h3 id="DW201703-007">143) DW201703-007</h3>
4411 <p>id: DW201703-007
4412 </p>
4413 <p>cve:</p>
4414 <p>fuzzer:</p>
4415 <p>datereported: 2017-03-21
4416 </p>
4417 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4418 </p>
4419 <p>vulnerability: Heap overflow in strncmp (libelf bug)
4420 </p>
4421 <p>product: libdwarf (libelf)
4422 </p>
4423 <p>description: 7/7. A heap overflow in
4424 strncmp() is due to libelf failing to check arguments
4425 to elf_ strptr.
4426 This is not a bug in libdwarf, it is a libelf bug.
4427 A pointer for being in bounds (in a few places in this
4428 function) and a failure in a check in dwarf_attr_list().
4429 The test object is intentionally corrupted (fuzzed).
4430 </p> <pre>
4431 A portion of sanitizer output with Ubuntu 14.04:
4432 ==180133==ERROR: AddressSanitizer: heap-buffer-overflow
4433 on address 0x60d00000cff1 at pc 0x0000004476f4
4434 bp 0x7fff87dd7dd0 sp 0x7fff87dd7590
4435 READ of size 8 at 0x60d00000cff1 thread T0
4436 #0 0x4476f3 in __interceptor_strncmp (/home/ubuntu/subjects/
4437 build-asan/libdwarf/dwarfdump/dwarfdump+0x4476f3)
4438 #1 0x7992ae in this_section_dwarf_relevant /home/ubuntu/subjects/
4439 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:608:13
4440 #2 0x781064 in _dwarf_setup /home/ubuntu/subjects/
4441 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:722:14
4442 #3 0x77d59c in dwarf_object_init /home/ubuntu/subjects/
4443 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:922:20
4444 With Ubuntu 16.04 libelf dwarfdump gets:
4445 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
4446 a call to elf_strptr() failed trying to get a section name
4447 </pre>
4448 <p> Fix date is irrelevant, libdwarf no longer uses libelf.
4449 </p>
4450 <p>datefixed: 2017-07-06
4451 </p>
4452 <p>references: regressiontests/marcel/crash7
4453 </p>
4454 <p>gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
4455 </p>
4456 <p>tarrelease: libdwarf-20180129.tar.gz
4457 </p>
4458 <p> <a href="#top">[top]</a> </p>
4459 <h3 id="DW201703-006">144) DW201703-006</h3>
4460 <p>id: DW201703-006
4461 </p>
4462 <p>cve: CVE-2017-9052
4463 </p>
4464 <p>fuzzer:</p>
4465 <p>datereported: 2017-03-21
4466 </p>
4467 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4468 </p>
4469 <p>vulnerability: Heap overflow in dwarf_formsdata
4470 </p>
4471 <p>product: libdwarf
4472 </p>
4473 <p>description: 6/7. A heap overflow in
4474 dwarf_formsdata() is due to a failure to check
4475 a pointer for being in bounds (in a few places in this
4476 function) and a failure in a check in dwarf_attr_list().
4477 The test object is intentionally corrupted (fuzzed).
4478 </p> <pre>
4479 A portion of sanitizer output with Ubuntu 14.04:
4480 ==180130==ERROR: AddressSanitizer: heap-buffer-overflow
4481 on address 0x61100000589c at pc 0x0000006cab95
4482 bp 0x7fff749aab10 sp 0x7fff749aab08
4483 READ of size 1 at 0x61100000589c thread T0
4484 #0 0x6cab94 in dwarf_formsdata /home/ubuntu/subjects/
4485 build-asan/libdwarf/libdwarf/dwarf_form.c:937:9
4486 #1 0x567daf in get_small_encoding_integer_and_name /home/ubuntu/subjects/
4487 build-asan/libdwarf/dwarfdump/print_die.c:1533:16
4488 #2 0x562f28 in get_attr_value /home/ubuntu/subjects/
4489 build-asan/libdwarf/dwarfdump/print_die.c:5030:24
4490 #3 0x555f86 in print_attribute /home/ubuntu/subjects/
4491 build-asan/libdwarf/dwarfdump/print_die.c:3357:13
4492 After fixes applied dwarfdump says:
4493 ERROR: dwarf_attrlist: DW_DLE_DW_DLE_ATTR_OUTSIDE_SECTION(281)
4494 </pre>
4495 <p></p>
4496 <p>datefixed: 2017-03-21
4497 </p>
4498 <p>references: regressiontests/marcel/crash6
4499 </p>
4500 <p>gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
4501 </p>
4502 <p>tarrelease: libdwarf-20180129.tar.gz
4503 </p>
4504 <p> <a href="#top">[top]</a> </p>
4505 <h3 id="DW201703-005">145) DW201703-005</h3>
4506 <p>id: DW201703-005
4507 </p>
4508 <p>cve: CVE-2017-9053
4509 </p>
4510 <p>fuzzer:</p>
4511 <p>datereported: 2017-03-21
4512 </p>
4513 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4514 </p>
4515 <p>vulnerability: Heap overflow in _dwarf_read_loc_expr_op()
4516 </p>
4517 <p>product: libdwarf
4518 </p>
4519 <p>description: 5/7. A heap overflow in
4520 _dwarf_read_loc_expr_op() is due to a failure to check
4521 a pointer for being in bounds (in a few places in this
4522 function).
4523 The test object is intentionally corrupted (fuzzed).
4524 </p> <pre>
4525 A portion of sanitizer output with Ubuntu 14.04:
4526 ==180112==ERROR: AddressSanitizer: heap-buffer-overflow
4527 on address 0x60800000bf72 at pc 0x00000084dd52
4528 bp 0x7ffc12136fd0 sp 0x7ffc12136fc8
4529 READ of size 1 at 0x60800000bf72 thread T0
4530 #0 0x84dd51 in _dwarf_read_loc_expr_op /home/ubuntu/subjects/
4531 build-asan/libdwarf/libdwarf/./dwarf_loc.c:250:9
4532 #1 0x841f16 in _dwarf_get_locdesc_c /home/ubuntu/subjects/
4533 build-asan/libdwarf/libdwarf/./dwarf_loc2.c:109:15
4534 #2 0x837d08 in dwarf_get_loclist_c /home/ubuntu/subjects/
4535 build-asan/libdwarf/libdwarf/./dwarf_loc2.c:685:18
4536 #3 0x57dff2 in get_location_list /home/ubuntu/subjects/
4537 build-asan/libdwarf/dwarfdump/print_die.c:3812:16
4538 After fixes applied dwarfdump says:
4539 ERROR: dwarf_get_loclist_c: DW_DLE_LOCEXPR_OFF_SECTION_END
4540 (343) Corrupt dwarf
4541 </pre>
4542 <p></p>
4543 <p>datefixed: 2017-03-21
4544 </p>
4545 <p>references: regressiontests/marcel/crash5
4546 </p>
4547 <p>gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
4548 </p>
4549 <p>tarrelease: libdwarf-20180129.tar.gz
4550 </p>
4551 <p> <a href="#top">[top]</a> </p>
4552 <h3 id="DW201703-004">146) DW201703-004</h3>
4553 <p>id: DW201703-004
4554 </p>
4555 <p>cve:</p>
4556 <p>fuzzer:</p>
4557 <p>datereported: 2017-03-21
4558 </p>
4559 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4560 </p>
4561 <p>vulnerability: Heap overflow in set_up_section strlen
4562 </p>
4563 <p>product: libdwarf (libelf)
4564 </p>
4565 <p>description: 4/7. An apparent heap overflow that
4566 gives the appearance of being in libdwarf is due to
4567 libelf call elf_strptr() failing to fully check
4568 that its arguments make sense.
4569 This is not a bug in libdwarf, it is a libelf bug.
4570 The test object is intentionally corrupted (fuzzed).
4571 The submission was with Ubuntu 14.04. With Ubuntu
4572 16.04 there is no sanitizer error report.
4573 As of 2023 libdwarf no longer calls or references libelf.
4574 </p> <pre>
4575 A portion of sanitizer output with Ubuntu 14.04:
4576 ==180109==ERROR: AddressSanitizer: heap-buffer-overflow
4577 on address 0x60b00000b000 at pc 0x00000048fd12
4578 bp 0x7fff4ad31ef0 sp 0x7fff4ad316b0
4579 READ of size 16 at 0x60b00000b000 thread T0
4580 #0 0x48fd11 in __interceptor_strlen (/home/ubuntu/
4581 subjects/build-asan/libdwarf/dwarfdump/dwarfdump+0x48fd11)
4582 #1 0x7a84a4 in set_up_section /home/ubuntu/
4583 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:285:27
4584 #2 0x79aaa5 in enter_section_in_de_debug_sections_array /home/ubuntu/
4585 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:355:5
4586 #3 0x78170b in _dwarf_setup /home/ubuntu/
4587 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:746:19
4588 With Ubuntu 16.04 libelf one gets:
4589 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
4590 a call to elf_strptr() failed trying to get a section name
4591 </pre>
4592 <p></p>
4593 <p>datefixed:</p>
4594 <p>references: regressiontests/marcel/crash4
4595 </p>
4596 <p>gitfixid:</p>
4597 <p>tarrelease: libdwarf-20180129.tar.gz
4598 </p>
4599 <p> <a href="#top">[top]</a> </p>
4600 <h3 id="DW201703-003">147) DW201703-003</h3>
4601 <p>id: DW201703-003
4602 </p>
4603 <p>cve:</p>
4604 <p>fuzzer:</p>
4605 <p>datereported: 2017-03-21
4606 </p>
4607 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4608 </p>
4609 <p>vulnerability: Heap overflow in strcmp
4610 </p>
4611 <p>product: libdwarf (libelf)
4612 </p>
4613 <p>description: 3/7. An apparent heap overflow that
4614 gives the appearance of being in libdwarf is due to
4615 libelf call elf_strptr() failing to fully check
4616 that its arguments make sense.
4617 This is not a bug in libdwarf, it is a libelf bug.
4618 The test object is intentionally corrupted (fuzzed).
4619 The submission was with Ubuntu 14.04. With Ubuntu
4620 16.04 there is no sanitizer error report.
4621 A portion of sanitizer output with Ubuntu 14.04:
4622 </p> <pre>
4623 ==180106==ERROR: AddressSanitizer: heap-buffer-overflow
4624 on address 0x60f00000ef09 at pc 0x000000447300
4625 bp 0x7ffc667dce10 sp 0x7ffc667dc5d0
4626 READ of size 4 at 0x60f00000ef09 thread T0
4627 #0 0x4472ff in __interceptor_strcmp (/home/ubuntu/
4628 subjects/build-asan/libdwarf/dwarfdump/dwarfdump+0x4472ff)
4629 #1 0x79938f in this_section_dwarf_relevant /home/ubuntu/
4630 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:612:12
4631 #2 0x781064 in _dwarf_setup /home/ubuntu/
4632 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:722:14
4633 #3 0x77d59c in dwarf_object_init /home/ubuntu/
4634 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:922:20
4635 #4 0x899d4f in dwarf_elf_init_file_ownership /
4636 </pre>
4637 <p> With Ubuntu 16.04 libelf one gets:
4638 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
4639 a call to elf_strptr() failed trying to get a section name
4640 Fix date is irrelevant, libdwarf no longer uses libelf.
4641 </p>
4642 <p>datefixed:</p>
4643 <p>references: regressiontests/marcel/crash3
4644 </p>
4645 <p>gitfixid:</p>
4646 <p>tarrelease: libdwarf-20180129.tar.gz
4647 </p>
4648 <p> <a href="#top">[top]</a> </p>
4649 <h3 id="DW201703-002">148) DW201703-002</h3>
4650 <p>id: DW201703-002
4651 </p>
4652 <p>cve: CVE-2017-9054
4653 </p>
4654 <p>fuzzer:</p>
4655 <p>datereported: 2017-03-21
4656 </p>
4657 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4658 </p>
4659 <p>vulnerability: Heap overflow in _dwarf_decode_s_leb128_chk()
4660 </p>
4661 <p>product: libdwarf
4662 </p>
4663 <p>description: 2/7. In _dwarf_decode_s_leb128_chk()
4664 a byte pointer was dereferenced just before was checked
4665 as being in bounds.
4666 The test object is intentionally corrupted (fuzzed).
4667 </p> <pre>
4668 A portion of sanitizer output:
4669 .debug_line: line number info for a single cu
4670 ==180103==ERROR: AddressSanitizer: heap-buffer-overflow
4671 on address 0x610000007ffc at pc 0x0000007b0f5b
4672 bp 0x7ffe06bbf510 sp 0x7ffe06bbf508
4673 READ of size 1 at 0x610000007ffc thread T0
4674 #0 0x7b0f5a in _dwarf_decode_s_leb128_chk /home/ubuntu/
4675 subjects/build-asan/libdwarf/libdwarf/dwarf_leb.c:304:9
4676 #1 0x7e753e in read_line_table_program /home/ubuntu/
4677 subjects/build-asan/libdwarf/libdwarf/./
4678 dwarf_line_table_reader_common.c:1167:17
4679 #2 0x7d7fe3 in _dwarf_internal_srclines /home/ubuntu/
4680 subjects/build-asan/libdwarf/libdwarf/./dwarf_line.c:690:15
4681 #3 0x7f9dbb in dwarf_srclines_b /home/ubuntu/
4682 subjects/build-asan/libdwarf/libdwarf/./dwarf_line.c:944:12
4683 #4 0x5caaa5 in print_line_numbers_this_cu /home/ubuntu/
4684 subjects/build-asan/libdwarf/dwarfdump/print_lines.c:762:16
4685 After fix applied one gets:
4686 ERROR: dwarf_srclines: DW_DLE_LEB_IMPROPER (329)
4687 Runs off end of section or CU
4688 </pre>
4689 <p></p>
4690 <p>datefixed: 2017-03-21
4691 </p>
4692 <p>references: regressiontests/marcel/crash2
4693 </p>
4694 <p>gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
4695 </p>
4696 <p>tarrelease: libdwarf-20180129.tar.gz
4697 </p>
4698 <p> <a href="#top">[top]</a> </p>
4699 <h3 id="DW201703-001">149) DW201703-001</h3>
4700 <p>id: DW201703-001
4701 </p>
4702 <p>cve: CVE-2017-9055
4703 </p>
4704 <p>fuzzer:</p>
4705 <p>datereported: 2017-03-21
4706 </p>
4707 <p>reportedby: Marcel Bohme and Van-Thuan Pham
4708 </p>
4709 <p>vulnerability: Heap overflow in dwarf_formsdata
4710 </p>
4711 <p>product: libdwarf
4712 </p>
4713 <p>description: 1/7. In dwarf_formsdata() a few
4714 data types were not checked as being in bounds.
4715 The test object is intentionally corrupted (fuzzed).
4716 </p> <pre>
4717 A portion of sanitizer output:
4718 LOCAL_SYMBOLS:
4719 &lt; 1&gt;&lt;0x0000002f&gt; DW_TAG_subprogram
4720 ==180088==ERROR: AddressSanitizer: heap-buffer-overflow on
4721 address 0x60800000bf72 at pc 0x0000006cab95 bp
4722 0x7fff31425830 sp 0x7fff31425828
4723 READ of size 1 at 0x60800000bf72 thread T0
4724 #0 0x6cab94 in dwarf_formsdata /home/ubuntu/subjects/
4725 build-asan/libdwarf/libdwarf/dwarf_form.c:937:9
4726 #1 0x567daf in get_small_encoding_integer_and_name /home/
4727 ubuntu/subjects/build-asan/libdwarf/dwarfdump/print_die.c:1533:16
4728 #2 0x576f38 in check_for_type_unsigned /home/ubuntu/
4729 subjects/build-asan/libdwarf/dwarfdump/print_die.c:4301:11
4730 #3 0x56ad8c in formxdata_print_value /home/ubuntu/
4731 subjects/build-asan/libdwarf/dwarfdump/print_die.c:4374:39
4732 #4 0x5643be in get_attr_value /home/ubuntu/
4733 subjects/build-asan/libdwarf/dwarfdump/print_die.c:5140:24
4734 #5 0x555f86 in print_attribute /home/ubuntu/subjects/build
4735 ...
4736 After fixes applied dwarfdump gets:
4737 ERROR: dwarf_attrlist: DW_DLE_DW_DLE_ATTR_OUTSIDE_SECTION(281)
4738 </pre>
4739 <p></p>
4740 <p>datefixed: 2017-03-21
4741 </p>
4742 <p>references: regressiontests/marcel/crash1
4743 </p>
4744 <p>gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
4745 </p>
4746 <p>tarrelease: libdwarf-20180129.tar.gz
4747 </p>
4748 <p> <a href="#top">[top]</a> </p>
4749 <h3 id="DW201611-008">150) DW201611-008</h3>
4750 <p>id: DW201611-008
4751 </p>
4752 <p>cve: CVE-2016-10254
4753 </p>
4754 <p>fuzzer:</p>
4755 <p>datereported: 2016-11-04
4756 </p>
4757 <p>reportedby: Agostino Sarubbo
4758 </p>
4759 <p>vulnerability: Crash libelf reading fuzzed object.
4760 </p>
4761 <p>product: libdwarf
4762 </p>
4763 <p>description: This is a weakness in libelf checking.
4764 Testing that current libdwarf deals with it properly,
4765 though it was never a bug in libdwarf.
4766 The CVE mentions libdwarf.
4767 </p> <pre>
4768 blogs.gentoo.org/ago/2016/11/04/elfutils-memory-allocation-failure-in-allocate_elf-common-h/
4769 www.openwall.com/lists/oss-security/2017/03/22/2
4770 </pre>
4771 <p> Fixed in gentoo libelf by Agostino Sarubbo.
4772 </p>
4773 <p>datefixed: 2016-11-04
4774 </p>
4775 <p>references: regressiontests/sarubbo-b/00011-elfutils-memalloc-allocate_elf
4776 </p>
4777 <p>gitfixid:</p>
4778 <p>tarrelease: libdwarf-20180129.tar.gz
4779 </p>
4780 <p> <a href="#top">[top]</a> </p>
4781 <h3 id="DW201611-007">151) DW201611-007</h3>
4782 <p>id: DW201611-007
4783 </p>
4784 <p>cve: CVE-2016-10255
4785 </p>
4786 <p>fuzzer:</p>
4787 <p>datereported: 2016-11-04
4788 </p>
4789 <p>reportedby: Agostino Sarubbo
4790 </p>
4791 <p>vulnerability: Crash libelf reading fuzzed object.
4792 </p>
4793 <p>product: libdwarf
4794 </p>
4795 <p>description: This is a weakness in libelf checking.
4796 Testing that current libdwarf deals with it properly,
4797 though it was never a bug in libdwarf.
4798 The CVE mentions libdwarf.
4799 </p> <pre>
4800 bugzilla.redhat.com/show_bug.cgi?id=1387584
4801 www.openwall.com/lists/oss-security/2017/03/22/1
4802 blogs.gentoo.org/ago/2016/11/04/elfutils-memory-allocation-failure-in-__libelf_set_rawdata_wrlock-elf_getdata-c/
4803 </pre>
4804 <p> Fixed in gentoo libelf by Agostino Sarubbo.
4805 </p>
4806 <p>datefixed: 2016-11-04
4807 </p>
4808 <p>references: regressiontests/sarubbo-a/00031-elfutils-memalloc-__libelf_set_rawdata_wrlock
4809 </p>
4810 <p>gitfixid:</p>
4811 <p>tarrelease: libdwarf-20180129.tar.gz
4812 </p>
4813 <p> <a href="#top">[top]</a> </p>
4814 <h3 id="DW201611-006">152) DW201611-006</h3>
4815 <p>id: DW201611-006
4816 </p>
4817 <p>cve: CVE-2016-9480
4818 </p>
4819 <p>fuzzer:</p>
4820 <p>datereported: 2016-11-14
4821 </p>
4822 <p>reportedby: Puzzor (Shi Ji)
4823 </p>
4824 <p>vulnerability: Heap buffer overflow
4825 </p>
4826 <p>product: libdwarf
4827 </p>
4828 <p>description: An object with corrupt contents causes a memory reference
4829 out of bounds, a heap buffer overflow reference.
4830 </p> <pre>
4831 heap-buffer-overflow in dwarf_util.c:208 for val_ptr
4832 # Version
4833 bb9a3492ac5713bed9cf3ae58ddb7afa6e9e98f8
4834 (in regression tests here named heap_buf_overflow.o)
4835 # ASAN Output
4836 &lt;0&gt; tag: 17 DW_TAG_compile_unit name: &quot;strstrnocase.c&quot; FORM 0xe &quot;DW_FORM_strp&quot;
4837 &lt;1&gt; tag: 46 DW_TAG_subprogram name: &quot;is_strstrnocase&quot; FORM 0xe &quot;DW_FORM_strp&quot;
4838 =================
4839 ==1666==ERROR: AddressSanitizer: heap-buffer-overflow on address
4840 0xb5846db9 at p
4841 c 0x080b3a1b bp 0xbfa75d18 sp 0xbfa75d08
4842 READ of size 1 at 0xb5846db9 thread T0
4843 #0 0x80b3a1a in _dwarf_get_size_of_val /home/puzzor/libdwarf-code/
4844 libdwarf/dwarf_util.c:208
4845 #1 0x8056602 in _dwarf_next_die_info_ptr /home/puzzor/libdwarf-code/
4846 libdwarf/dwarf_die_deliv.c:1353
4847 #2 0x8057f4b in dwarf_child /home/puzzor/libdwarf-code/libdwarf/
4848 dwarf_die_de liv.c:1688
4849 #3 0x804b5fa in get_die_and_siblings simplereader.c:637
4850 #4 0x804b65c in get_die_and_siblings simplereader.c:643
4851 #5 0x804b3f3 in read_cu_list simplereader.c:611
4852 #6 0x804aeae in main simplereader.c:533
4853 #7 0xb6ffe275 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x18275)
4854 #8 0x80491c0 (/home/puzzor/libdwarf-code/dwarfexample/simplereader+
4855 0x80491c 0)
4856 0xb5846db9 is located 0 bytes to the right of 249-byte region
4857 [0xb5846cc0,0xb5846db9)
4858 allocated by thread T0 here:
4859 #0 0xb727fae4 in __interceptor_malloc (/usr/lib/i386-linux-gnu/libasan.so.
4860 3+ 0xc3ae4)
4861 #1 0xb71a9b98 (/usr/lib/i386-linux-gnu/libelf.so.1+0x9b98)
4862 </pre>
4863 <p> For the orignal bug report see
4864 </p> <pre>
4865 https://sourceforge.net/p/libdwarf/bugs/5/
4866 </pre>
4867 <p></p>
4868 <p>datefixed: 2016-11-16
4869 </p>
4870 <p>references: regressiontests/puzzor/heap_buf_overflow.o
4871 </p>
4872 <p>gitfixid: 5dd64de047cd5ec479fb11fe7ff2692fd819e5e5
4873 </p>
4874 <p>tarrelease: libdwarf-20180129.tar.gz
4875 </p>
4876 <p> <a href="#top">[top]</a> </p>
4877 <h3 id="DW201611-005">153) DW201611-005</h3>
4878 <p>id: DW201611-005
4879 </p>
4880 <p>cve: CVE-2016-9558
4881 </p>
4882 <p>fuzzer:</p>
4883 <p>datereported: 2016-11-11
4884 </p>
4885 <p>reportedby: Agostino Sarubbo
4886 </p>
4887 <p>vulnerability: negation of -9223372036854775808 cannot be represented in type
4888 </p>
4889 <p>product: libdwarf
4890 </p>
4891 <p>description: With the right bit pattern in a signed leb number
4892 the signed leb decode would execute an unary minus with undefined
4893 effect. This is not known to generate an incorrect value,
4894 but it could, one supposes.
4895 </p>
4896 <p>datefixed: 2016-11-11
4897 </p>
4898 <p>references: regressiontests/sarubbo-2/00050-libdwarf-negate-itself
4899 </p>
4900 <p>gitfixid: 4f19e1050cd8e9ddf2cb6caa061ff2fec4c9b5f9
4901 </p>
4902 <p>tarrelease: libdwarf-20180129.tar.gz
4903 </p>
4904 <p> <a href="#top">[top]</a> </p>
4905 <h3 id="DW201611-004">154) DW201611-004</h3>
4906 <p>id: DW201611-004
4907 </p>
4908 <p>cve: CVE-2016-9275
4909 </p>
4910 <p>fuzzer:</p>
4911 <p>datereported: 2016-11-02
4912 </p>
4913 <p>reportedby: Agostino Sarubbo
4914 </p>
4915 <p>vulnerability: Heap overflow in dwarf_skim_forms()
4916 </p>
4917 <p>product: libdwarf
4918 </p>
4919 <p>description: If a non-terminated string
4920 in a DWARF5 macro section
4921 ends a section it can result in accessing memory not
4922 in the application (out of bounds read).
4923 dwarf_macro5.c(in _dwarf_skim_forms()).
4924 </p>
4925 <p>datefixed: 2016-11-04
4926 </p>
4927 <p>references: regressiontests/sarubbo-2/00027-libdwarf-heapoverflow-_dwarf_skim_forms
4928 </p>
4929 <p>gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
4930 </p>
4931 <p>tarrelease: libdwarf-20180129.tar.gz
4932 </p>
4933 <p> <a href="#top">[top]</a> </p>
4934 <h3 id="DW201611-003">155) DW201611-003</h3>
4935 <p>id: DW201611-003
4936 </p>
4937 <p>cve: CVE-2016-9276
4938 </p>
4939 <p>fuzzer:</p>
4940 <p>datereported: 2016-11-02
4941 </p>
4942 <p>reportedby: Agostino Sarubbo
4943 </p>
4944 <p>vulnerability: Bad aranges length leads to overflow and bad pointer
4945 </p>
4946 <p>product: libdwarf
4947 </p>
4948 <p>description: in dwarf_arange.c(dwarf_get_aranges_list) an aranges
4949 header with corrupt data could, with an overflowing calculation,
4950 result in pointers to invalid or inappropriate memory being
4951 dereferenced.
4952 </p>
4953 <p>datefixed: 2016-11-04
4954 </p>
4955 <p>references: regressiontests/sarubbo-2/00026-libdwarf-heapoverflow-dwarf_get_aranges_list
4956 </p>
4957 <p>gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
4958 </p>
4959 <p>tarrelease: libdwarf-20180129.tar.gz
4960 </p>
4961 <p> <a href="#top">[top]</a> </p>
4962 <h3 id="DW201611-002">156) DW201611-002</h3>
4963 <p>id: DW201611-002
4964 </p>
4965 <p>cve:</p>
4966 <p>fuzzer:</p>
4967 <p>datereported: 2016-11-02
4968 </p>
4969 <p>reportedby: Agostino Sarubbo
4970 </p>
4971 <p>vulnerability: heap overflow in get_attr_value
4972 </p>
4973 <p>product: libdwarf
4974 </p>
4975 <p>description: Libdwarf failed to check for a bogus
4976 length in dwarf_form.c (dwarf_formblock()) resulting
4977 in a pointer pointing outside of the intended memory
4978 region. Anything could happen in the subsequent
4979 use of the bogus pointer.
4980 </p> <pre>
4981 0x61300000de1c is located 0 bytes to the right of 348-byte region
4982 [0x61300000dcc0,0x61300000de1c)
4983 allocated by thread T0 here:
4984 #0 0x4c0ad8 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1-
4985 r2/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52
4986 #1 0x7f883cfc6206 in __libelf_set_rawdata_wrlock /tmp/portage/dev-
4987 libs/elfutils-0.166/work/elfutils-0.166/libelf/elf_getdata.c:318
4988 </pre>
4989 <p></p>
4990 <p>datefixed: 2016-11-04
4991 </p>
4992 <p>references: regressiontests/sarubbo-2/00025-libdwarf-heapoverflow-get_attr_value
4993 </p>
4994 <p>gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
4995 </p>
4996 <p>tarrelease: libdwarf-20170416.tar.gz
4997 </p>
4998 <p> <a href="#top">[top]</a> </p>
4999 <h3 id="DW201611-001">157) DW201611-001</h3>
5000 <p>id: DW201611-001
5001 </p>
5002 <p>cve:</p>
5003 <p>fuzzer:</p>
5004 <p>datereported: 2016-11-02
5005 </p>
5006 <p>reportedby: Agostino Sarubbo
5007 </p>
5008 <p>vulnerability: Memory allocation failure in do_decompress_zlib
5009 </p>
5010 <p>product: libdwarf
5011 </p>
5012 <p>description: In decompressing a zlib compressed section if
5013 the decompressed section size is nonsense (too large)
5014 an attempted malloc will fail and could let an exception
5015 propagate to callers.
5016 </p> <pre>
5017 ==27994==WARNING: AddressSanitizer failed to allocate 0x62696c2f7273752f
5018 bytes ==27994==AddressSanitizer's allocator is terminating the process
5019 instead of returning 0
5020 ...
5021 #6 0x4c0ab1 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1-
5022 #8 0x5b582e in _dwarf_load_section
5023 #9 0x5bb479 in dwarf_srcfiles
5024 #10 0x5145cd in print_one_die_section
5025 </pre>
5026 <p></p>
5027 <p>datefixed: 2016-11-04
5028 </p>
5029 <p>references: regressiontests/sarubbo-2/00024-libdwarf-memalloc-do_decompress_zlib
5030 </p>
5031 <p>gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
5032 </p>
5033 <p>tarrelease: libdwarf-20170416.tar.gz
5034 </p>
5035 <p> <a href="#top">[top]</a> </p>
5036 <h3 id="DW201610-003">158) DW201610-003</h3>
5037 <p>id: DW201610-003
5038 </p>
5039 <p>cve: CVE-2016-8679
5040 </p>
5041 <p>fuzzer:</p>
5042 <p>datereported: 2016-10-02
5043 </p>
5044 <p>reportedby: agostino
5045 </p>
5046 <p>vulnerability: dwarf_get_size_of_val out of bounds read
5047 </p>
5048 <p>product: libdwarf
5049 </p>
5050 <p>description: The _dwarf_get_size_of_val function in
5051 libdwarf/dwarf_util.c in Libdwarf before 20161124
5052 allows remote attackers to cause a denial of service
5053 (out-of-bounds read) by calling the dwarfdump command
5054 on a crafted file.
5055 </p> <pre>
5056 www.securityfocus.com/bid/93601
5057 blogs.gentoo.org/ago/2016/10/06/libdwarf-heap-based-
5058 buffer-overflow-in-_dwarf_get_size_of_val-dwarf_util-c/
5059 </pre>
5060 <p></p>
5061 <p>datefixed: 2016-10-04
5062 </p>
5063 <p>references:</p>
5064 <p>gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
5065 </p>
5066 <p>tarrelease:</p>
5067 <p> <a href="#top">[top]</a> </p>
5068 <h3 id="DW201610-002">159) DW201610-002</h3>
5069 <p>id: DW201610-002
5070 </p>
5071 <p>cve: CVE-2016-8680
5072 </p>
5073 <p>fuzzer:</p>
5074 <p>datereported: 2016-10-02
5075 </p>
5076 <p>reportedby: agostino
5077 </p>
5078 <p>vulnerability: Out of bounds read
5079 </p>
5080 <p>product: libdwarf
5081 </p>
5082 <p>description: The _dwarf_get_abbrev_for_code function in
5083 dwarf_util.c in libdwarf 20161001 and earlier allows remote
5084 attackers to cause a denial of service (out-of-bounds read)
5085 by calling the dwarfdump command on a crafted file.
5086 </p> <pre>
5087 bugzilla.redhat.com/show_bug.cgi?id=1385690
5088 www.securityfocus.com/bid/93592
5089 Duplicate of CVE-2016-8681
5090 </pre>
5091 <p></p>
5092 <p>datefixed: 2016-10-04
5093 </p>
5094 <p>references:</p>
5095 <p>gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
5096 </p>
5097 <p>tarrelease:</p>
5098 <p> <a href="#top">[top]</a> </p>
5099 <h3 id="DW201610-001">160) DW201610-001</h3>
5100 <p>id: DW201610-001
5101 </p>
5102 <p>cve: CVE-2016-8681
5103 </p>
5104 <p>fuzzer:</p>
5105 <p>datereported: 2016-10-02
5106 </p>
5107 <p>reportedby: agostino
5108 </p>
5109 <p>vulnerability: Out of bounds read
5110 </p>
5111 <p>product: libdwarf
5112 </p>
5113 <p>description: The _dwarf_get_abbrev_for_code function in
5114 dwarf_util.c in libdwarf 20161001 and earlier allows remote
5115 attackers to cause a denial of service (out-of-bounds read)
5116 by calling the dwarfdump command on a crafted file.
5117 </p> <pre>
5118 bugzilla.redhat.com/show_bug.cgi?id=1385690
5119 www.securityfocus.com/bid/93592
5120 Duplicate of CVE-2016-8680
5121 </pre>
5122 <p></p>
5123 <p>datefixed: 2016-10-04
5124 </p>
5125 <p>references:</p>
5126 <p>gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
5127 </p>
5128 <p>tarrelease:</p>
5129 <p> <a href="#top">[top]</a> </p>
5130 <h3 id="DW201609-004">161) DW201609-004</h3>
5131 <p>id: DW201609-004
5132 </p>
5133 <p>cve: CVE-2016-7510
5134 </p>
5135 <p>fuzzer:</p>
5136 <p>datereported: 2016-09-17
5137 </p>
5138 <p>reportedby: Puzzor
5139 </p>
5140 <p>vulnerability: libdwarf 20160613 Out-of-Bounds read
5141 </p>
5142 <p>product: libdwarf
5143 </p>
5144 <p>description: read line table program Out-of-Bounds read
5145 line_ptr in dwarf_line_table_reader_common.c:1433 Out-of-Bounds read
5146 See:
5147 </p> <pre>
5148 https://bugzilla.redhat.com/show_bug.cgi?id=1377015
5149 https://sourceforge.net/p/libdwarf/bugs/4/
5150 </pre>
5151 <p></p> <pre>
5152 # Address Sanitizer Output
5153 ==27763==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf4603f84 at pc 0x8408ede bp 0xffff6518 sp 0xffff6510
5154 READ of size 1 at 0xf4603f84 thread T0
5155 #0 0x8408edd in read_line_table_program /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line_table_reader_common.c:1433
5156 #1 0x83f716c in _dwarf_internal_srclines /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line.c:690
5157 #2 0x841436c in dwarf_srclines_b /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line.c:944
5158 #3 0x81fbc28 in print_line_numbers_this_cu /home/puzzor/test-fuzzing/code/dwarfdump/print_lines.c:763
5159 #4 0x815c191 in print_one_die_section /home/puzzor/test-fuzzing/code/dwarfdump/print_die.c:850
5160 #5 0x81565c1 in print_infos /home/puzzor/test-fuzzing/code/dwarfdump
5161 </pre>
5162 <p></p>
5163 <p>datefixed: 2016-09-23
5164 </p>
5165 <p>references: regressiontests/DW201609-004/poc
5166 </p>
5167 <p>gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
5168 </p>
5169 <p>tarrelease: libdwarf-20160923.tar.gz
5170 </p>
5171 <p> <a href="#top">[top]</a> </p>
5172 <h3 id="DW201609-003">162) DW201609-003</h3>
5173 <p>id: DW201609-003
5174 </p>
5175 <p>cve: CVE-2016-7410
5176 </p>
5177 <p>fuzzer:</p>
5178 <p>datereported: 2016-09-13
5179 </p>
5180 <p>reportedby: https://marc.info/?l=oss-security&amp;m=147391785920048&amp;w=2
5181 </p>
5182 <p>vulnerability: libdwarf 20160613 heap-buffer-overflow
5183 </p>
5184 <p>product: libdwarf
5185 </p>
5186 <p>description: With AddressSanitizer,
5187 we found a Heap-Buffer-overflow in the latest
5188 release version of dwarfdump. The crash output is as follows:
5189 </p> <pre>
5190 See also:
5191 https://marc.info/?l=oss-security&amp;m=147378394815872&amp;w=2
5192 The testcase poc is from this web page.
5193 </pre>
5194 <p></p> <pre>
5195 ==17411==ERROR: AddressSanitizer: heap-buffer-overflow on address
5196 0xf3808904 at pc 0x80a6f76 bp 0xffb95e78 sp 0xffb95a5c
5197 READ of size 4 at 0xf3808904 thread T0
5198 ==17411==WARNING: Trying to symbolize code, but external symbolizer is
5199 not initialized!
5200 #0 0x80a6f75 in __interceptor_memcpy ??:?
5201 #1 0x8426c3b in _dwarf_read_loc_section
5202 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc.c:919
5203 #2 0x84250e2 in _dwarf_get_loclist_count
5204 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc.c:970
5205 #3 0x8438826 in dwarf_get_loclist_c
5206 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc2.c:551
5207 #4 0x81a1be8 in get_location_list
5208 /home/starlab/fuzzing/dwarf-20160613/dwarfdump/print_die.c:3523
5209 #5 0x816e1a2 in print_attribute
5210 </pre>
5211 <p> _dwarf_get_loclist_header_start() is not cautious about values
5212 in the header being absurdly large.
5213 Unclear as yet if this is the problem
5214 but it is a potential problem (fixed for next release).
5215 </p> <pre>
5216 Address Sanitizer in gcc reproduces the report.
5217 In _dwarf_read_loc_section() the simple calculation of
5218 loc_section_end was wrong, so end-of section was
5219 incorrect for the local reads.
5220 With that fixed we get DW_DLE_READ_LITTLEENDIAN_ERROR when
5221 libdwarf attempts to read off end of section.
5222 </pre>
5223 <p></p>
5224 <p>datefixed: 2016-09-23
5225 </p>
5226 <p>references: regressiontests/DW201609-003/poc
5227 </p>
5228 <p>gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
5229 </p>
5230 <p>tarrelease: libdwarf-20160923.tar.gz
5231 </p>
5232 <p> <a href="#top">[top]</a> </p>
5233 <h3 id="DW201609-002">163) DW201609-002</h3>
5234 <p>id: DW201609-002
5235 </p>
5236 <p>cve: CVE-2016-7511
5237 </p>
5238 <p>fuzzer:</p>
5239 <p>datereported: 2016-09-18
5240 </p>
5241 <p>reportedby: Shi Ji (@Puzzor)
5242 </p>
5243 <p>vulnerability: libdwarf 20160613 Integer Overflow
5244 </p>
5245 <p>product: libdwarf
5246 </p>
5247 <p>description: In dwarf_get_size_of_val() with
5248 fuzzed DWARF data we get a SEGV.
5249 </p> <pre>
5250 See
5251 https://sourceforge.net/p/libdwarf/bugs/3/
5252 </pre>
5253 <p></p> <pre>
5254 ==6825== ERROR: AddressSanitizer: SEGV on unknown address 0x0583903c (pc 0xb61f1a98 sp 0xbfa388b4 bp 0xbfa38d08 T0)
5255 AddressSanitizer can not provide additional info.
5256 #1 0xb61e3c0b (/usr/lib/i386-linux-gnu/libasan.so.0+0xdc0b)
5257 #2 0x80a21b1 in _dwarf_get_size_of_val /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_util.c:210
5258 #3 0x8054214 in _dwarf_next_die_info_ptr /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1340
5259 #4 0x80557a5 in dwarf_child /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1640
5260 #5 0x804b23f in get_die_and_siblings /home/fuzzing/fuzzing/dwarf-20160613/dwarfexample/./simplereader.c:573
5261 </pre>
5262 <p> _dwarf_make_CU_Context() is insufficiently cautious about
5263 the length of a CU being absurd.
5264 Unclear as yet if this is the problem
5265 but it is a problem and is fixed for next release.
5266 </p>
5267 <p>datefixed: 2016-09-23
5268 </p>
5269 <p>references: regressiontests/DW201609-002/DW201609-002-poc
5270 </p>
5271 <p>gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
5272 </p>
5273 <p>tarrelease: libdwarf-20160923.tar.gz
5274 </p>
5275 <p> <a href="#top">[top]</a> </p>
5276 <h3 id="DW201609-001">164) DW201609-001</h3>
5277 <p>id: DW201609-001
5278 </p>
5279 <p>cve:</p>
5280 <p>fuzzer:</p>
5281 <p>datereported: 2016-09-16
5282 </p>
5283 <p>reportedby: STARLAB
5284 </p>
5285 <p>vulnerability: libdwarf 20160613 die_info_ptr in dwarf_die_deliv.c: 1533 Out-Of_bounds
5286 </p>
5287 <p>product: libdwarf
5288 </p>
5289 <p>description: At line 1533 of dwarf_die_deliv.c a
5290 pointer dereference is done with a pointer pointing
5291 past the end of the CU data.
5292 </p> <pre>
5293 see
5294 https://sourceforge.net/p/libdwarf/bugs/2/
5295 </pre>
5296 <p></p> <pre>
5297 ==8054==ERROR: AddressSanitizer: heap-buffer-overflow on
5298 address 0xf4c027ab at pc 0x819e4a4 bp 0xff88eb38 sp 0xff88eb30
5299 READ of size 1 at 0xf4c027ab thread T0
5300 #0 0x819e4a3 in dwarf_siblingof_b /home/starlab/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1533
5301 #1 0x8116201 in print_die_and_children_internal /home/starlab/fuzzing/dwarf-20160613/dwarfdump/print_die.c:1157
5302 Bug report on sourceforge.net bug list for libdwarf.
5303 The bad pointer dereference is due to libdwarf
5304 not noticing that the DWARF in that file is corrupt.
5305 In addition
5306 The code was not noticing that it could dereference
5307 a pointer that pointed out of bounds in the end-sibling-list
5308 loop.
5309 </pre>
5310 <p></p> <pre>
5311 The example from the bug report (DW201609-001-poc) has
5312 the same problem.
5313 dwarfdump now reports DW_DLE_SIBLING_LIST_IMPROPER
5314 on both test2.o and DW201609-001-poc.
5315 </pre>
5316 <p></p>
5317 <p>datefixed: 2016-09-17
5318 </p>
5319 <p>references: regressiontests/DW201609-001/test2.o
5320 regressiontests/DW201609-001/DW201609-001-poc
5321 </p>
5322 <p>gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
5323 </p>
5324 <p>tarrelease: libdwarf-20160923.tar.gz
5325 </p>
5326 <p> <a href="#top">[top]</a> </p>
5327 <h3 id="DW201605-020">165) DW201605-020</h3>
5328 <p>id: DW201605-020
5329 </p>
5330 <p>cve: CVE-2016-5027
5331 </p>
5332 <p>fuzzer:</p>
5333 <p>datereported: 2016-04-25
5334 </p>
5335 <p>reportedby: Yue Liu,lieanu
5336 </p>
5337 <p>vulnerability: NULL dereference in _dwarf_decode_s_leb128
5338 </p>
5339 <p>product: libdwarf
5340 </p>
5341 <p>description: dwarf_form.c in libdwarf 20160115 allows
5342 remote attackers to cause a denial of service (crash)
5343 via a crafted elf file
5344 Apparently no crafted object file presented.
5345 However the code fix is presented in the report
5346 at openwall.com.
5347 Discovered the CVE November 2021
5348 To attack the code just pass the argument
5349 Dwarf_Word * leb128_length as a NULL pointer (that is allowed).
5350 The code was fixed in dwarf_leb.c on 2016-04-27 20:00:06.
5351 </p> <pre>
5352 bugzilla.redhat.com/show_bug.cgi?id=1330237
5353 www.openwall.com/lists/oss-security/2016/05/24/1
5354 www.openwall.com/lists/oss-security/2016/05/25/1
5355 </pre>
5356 <p></p>
5357 <p>datefixed: 2016-05-27
5358 </p>
5359 <p>references:</p>
5360 <p>gitfixid:</p>
5361 <p>tarrelease: libdwarf-20160507.tar.gz
5362 </p>
5363 <p> <a href="#top">[top]</a> </p>
5364 <h3 id="DW201605-019">166) DW201605-019</h3>
5365 <p>id: DW201605-019
5366 </p>
5367 <p>cve: CVE-2016-5028
5368 </p>
5369 <p>fuzzer:</p>
5370 <p>datereported: 2016-05-23
5371 </p>
5372 <p>reportedby: Yue Liu
5373 </p>
5374 <p>vulnerability: Null dereference in print_frame_inst_bytes (dwarfdump)
5375 </p>
5376 <p>product: libdwarf
5377 </p>
5378 <p>description: The null dereference is due to a corrupted
5379 object file. Libdwarf was not dealing with empty (bss-like)
5380 sections since it really did not expect to see such in
5381 sections it reads! Now libdwarf catches the object error
5382 so dwarfdump sees the section as empty (as indeed it is!).
5383 </p>
5384 <p>datefixed: 2016-05-23
5385 </p>
5386 <p>references: regressiontests/liu/NULLdeference0522c.elf
5387 </p>
5388 <p>gitfixid: a55b958926cc67f89a512ed30bb5a22b0adb10f4
5389 </p>
5390 <p>tarrelease: libdwarf-20160923.tar.gz
5391 </p>
5392 <p> <a href="#top">[top]</a> </p>
5393 <h3 id="DW201605-018">167) DW201605-018</h3>
5394 <p>id: DW201605-018
5395 </p>
5396 <p>cve: CVE-2016-5029
5397 </p>
5398 <p>fuzzer:</p>
5399 <p>datereported: 2016-05-22
5400 </p>
5401 <p>reportedby: Yue Liu
5402 </p>
5403 <p>vulnerability: Null dereference in create_fullest_file_path().
5404 </p>
5405 <p>product: libdwarf
5406 </p>
5407 <p>description: The null dereference in create_fullest_file_path()
5408 causes a crash. This is due to corrupted dwarf and the fix
5409 detects this corruption and if that null string pointer
5410 happens undetected a static string is substituted so
5411 readers can notice the situation.
5412 </p> <pre>
5413 202 }
5414 203 if (dirno &gt; 0 &amp;&amp; fe-&gt;fi_dir_index &gt; 0) {
5415 204 inc_dir_name = (char *)
5416 line_context-&gt;lc_include_directories[
5417 205 fe-&gt;fi_dir_index - 1];
5418 206 incdirnamelen = strlen(inc_dir_name); &lt;- $pc
5419 207 }
5420 208 full_name = (char *) _dwarf_get_alloc(dbg,
5421 #0 create_fullest_file_path (dbg=&lt;optimized out&gt;,
5422 fe=0x68d510, line_context=0x68c4f0, name_ptr_out=&lt;optimized
5423 out&gt;, error=0x7fffffffe2b8) at ./dwarf_line.c:206
5424 #1 0x00007ffff7b6d3f9 in dwarf_filename (context=&lt;optimized
5425 out&gt;, fileno_in=&lt;optimized out&gt;, ret_filename=0x7fffffffe280,
5426 error=0x7fffffffe2b8) at ./dwarf_line.c:1418
5427 #2 dwarf_linesrc (line=&lt;optimized out&gt;,
5428 ret_linesrc=&lt;optimized out&gt;, error=&lt;optimized out&gt;) at
5429 ./dwarf_line.c:1436
5430 </pre>
5431 <p></p>
5432 <p>datefixed: 2016-05-22
5433 </p>
5434 <p>references: regressiontests/liu/NULLdereference0522.elf
5435 </p>
5436 <p>gitfixid: acae971371daa23a19358bc62204007d258fbc5e
5437 </p>
5438 <p>tarrelease: libdwarf-20160923.tar.gz
5439 </p>
5440 <p> <a href="#top">[top]</a> </p>
5441 <h3 id="DW201605-017">168) DW201605-017</h3>
5442 <p>id: DW201605-017
5443 </p>
5444 <p>cve: CVE-2016-5030
5445 </p>
5446 <p>fuzzer:</p>
5447 <p>datereported: 2016-05-19
5448 </p>
5449 <p>reportedby: Yue Liu
5450 </p>
5451 <p>vulnerability: Null dereference bug in _dwarf_calculate_info_section_end_ptr().
5452 </p>
5453 <p>product: libdwarf
5454 </p>
5455 <p>description: NULL dereference bug in _dwarf_calculate_info_section_end_ptr().
5456 </p> <pre>
5457 1742 Dwarf_Off off2 = 0;
5458 1743 Dwarf_Small *dataptr = 0;
5459 1744
5460 1745 dbg = context-&gt;cc_dbg;
5461 1746 dataptr = context-&gt;cc_is_info? dbg-&gt;de_debug_info.dss_data: &lt;- $pc
5462 1747 dbg-&gt;de_debug_types.dss_data;
5463 1748 off2 = context-&gt;cc_debug_offset;
5464 1749 info_start = dataptr + off2;
5465 1750 info_end = info_start + context-&gt;cc_length +
5466 #0 _dwarf_calculate_info_section_end_ptr
5467 (context=context@entry=0x0) at dwarf_query.c:1746
5468 #1 0x00002aaaaace307d in
5469 _dwarf_extract_string_offset_via_str_offsets
5470 (dbg=dbg@entry=0x655a70, info_data_ptr=0x6629f0
5471 &quot;&quot;, attrnum=attrnum@entry=121,
5472 attrform=attrform@entry=26, cu_context=0x0,
5473 str_sect_offset_out=str_sect_offset_out@entry=0x7fffffffd718,
5474 error=error@entry=0x7fffffffd878) at dwarf_form.c:1099
5475 #2 0x00002aaaaacf4ed7 in dwarf_get_macro_defundef
5476 (macro_context=macro_context@entry=0x65b790,
5477 op_number=op_number@entry=1,
5478 line_number=line_number@entry=0x7fffffffd858,
5479 index=index@entry=0x7fffffffd860,
5480 offset=offset@entry=0x7fffffffd868,
5481 forms_count=forms_count@entry=0x7fffffffd7ce,
5482 macro_string=macro_string@entry=0x7fffffffd870,
5483 error=error@entry=0x7fffffffd878) at dwarf_macro5.c:557
5484 ------
5485 _dwarf_calculate_info_section_end_ptr (context=context@entry=0x0) at
5486 dwarf_query.c:1746
5487 1746 dataptr = context-&gt;cc_is_info? dbg-&gt;de_debug_info.dss_data:
5488 gef&gt; p/x $rdi
5489 $4 = 0x0
5490 </pre>
5491 <p></p>
5492 <p>datefixed: 2016-05-22
5493 </p>
5494 <p>references: regressiontests/liu/NULLdereference0519.elf
5495 </p>
5496 <p>gitfixid: 6fa3f710ee6f21bba7966b963033a91d77c952bd
5497 </p>
5498 <p>tarrelease: libdwarf-20160923.tar.gz
5499 </p>
5500 <p> <a href="#top">[top]</a> </p>
5501 <h3 id="DW201605-016">169) DW201605-016</h3>
5502 <p>id: DW201605-016
5503 </p>
5504 <p>cve:</p>
5505 <p>fuzzer:</p>
5506 <p>datereported: 2016-05-19
5507 </p>
5508 <p>reportedby: Yue Liu
5509 </p>
5510 <p>vulnerability: Invalid dwarf leads to
5511 dwarfdump crash in print_frame_inst_bytes.
5512 </p>
5513 <p>product: dwarfdump
5514 </p>
5515 <p>description: Corrupted dwarf crashes dwarfdump
5516 </p> <pre>
5517 1297 }
5518 1298 len = len_in;
5519 1299 endpoint = instp + len;
5520 1300 for (; len &gt; 0;) {
5521 1301 unsigned char ibyte = *instp; &lt;- $pc
5522 1302 int top = ibyte &amp; 0xc0;
5523 1303 int bottom = ibyte &amp; 0x3f;
5524 1304 int delta = 0;
5525 1305 int reg = 0;
5526 #0 print_frame_inst_bytes (dbg=dbg@entry=0x655ca0,
5527 cie_init_inst=&lt;optimized out&gt;, len_in=&lt;optimized out&gt;,
5528 data_alignment_factor=-4, code_alignment_factor=4,
5529 addr_size=addr_size@entry=4, offset_size=4, version=3,
5530 config_data=config_data@entry=0x63cda0 &lt;g_config_file_data&gt;)
5531 at print_frames.c:1301
5532 #1 0x000000000041b70c in print_one_cie
5533 (dbg=dbg@entry=0x655ca0, cie=&lt;optimized out&gt;,
5534 cie_index=cie_index@entry=2, address_size=&lt;optimized out&gt;,
5535 config_data=config_data@entry=0x63cda0 &lt;g_config_file_data&gt;)
5536 at print_frames.c:1161
5537 #2 0x000000000041cf52 in print_frames (dbg=0x655ca0,
5538 print_debug_frame=print_debug_frame@entry=1, print_eh_frame=0,
5539 config_data=config_data@entry=0x63cda0 &lt;g_config_file_data&gt;)
5540 at print_frames.c:2229
5541 gef&gt; p/x $r13
5542 $1 = 0x4bcad8
5543 gef&gt; p/x *$r13
5544 Cannot access memory at address 0x4bcad8
5545 </pre>
5546 <p></p>
5547 <p>datefixed: 2016-05-22
5548 </p>
5549 <p>references: regressiontests/liu/OOB_READ0519.elf
5550 </p>
5551 <p>gitfixid: 6fa3f710ee6f21bba7966b963033a91d77c952bd
5552 </p>
5553 <p>tarrelease: libdwarf-20160923.tar.gz
5554 </p>
5555 <p> <a href="#top">[top]</a> </p>
5556 <h3 id="DW201605-015">170) DW201605-015</h3>
5557 <p>id: DW201605-015
5558 </p>
5559 <p>cve: CVE-2016-5031
5560 </p>
5561 <p>fuzzer:</p>
5562 <p>datereported: 2016-05-17
5563 </p>
5564 <p>reportedby: Yue Liu
5565 </p>
5566 <p>vulnerability: OOB read bug in print_frame_inst_bytes()
5567 </p>
5568 <p>product: libdwarf
5569 </p>
5570 <p>description: Test object shows
5571 an invalid read in print_frame_inst_bytes().
5572 </p> <pre>
5573 1294 for (; len &gt; 0;) {
5574 1295 unsigned char ibyte = *instp; &lt;- $pc
5575 1296 int top = ibyte &amp; 0xc0;
5576 #0 print_frame_inst_bytes (dbg=dbg@entry=0x654c80,
5577 cie_init_inst=&lt;optimized out&gt;, len=503715, data_alignment_factor=-4,
5578 code_alignment_factor=1, addr_size=addr_size@entry=4, offset_size=4,
5579 version=3, config_data=config_data@entry=0x63bda0
5580 &lt;g_config_file_data&gt;) at print_frames.c:1295
5581 #1 0x000000000041b64c in print_one_cie (dbg=dbg@entry=0x654c80,
5582 cie=&lt;optimized out&gt;, cie_index=cie_index@entry=1,
5583 address_size=&lt;optimized out&gt;, config_data=
5584 config_data@entry=0x63bda0 &lt;g_config_file_data&gt;) at print_frames.c:1161
5585 #2 0x000000000041ce92 in print_frames (dbg=0x654c80,
5586 print_debug_frame=print_debug_frame@entry=1, print_eh_frame=0,
5587 config_data=config_data@entry=0x63bda0 &lt;g_config_file_data&gt;)
5588 at print_frames.c:2209
5589 gef&gt; x/10x $r13
5590 0x5e7981: Cannot access memory at address 0x5e7981
5591 gef&gt; p/x $r13
5592 $14 = 0x5e7981
5593 </pre>
5594 <p></p>
5595 <p>datefixed: 2015-05-18
5596 </p>
5597 <p>references: regressiontests/liu/OOB0517_03.elf
5598 </p>
5599 <p>gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
5600 </p>
5601 <p>tarrelease: libdwarf-20160923.tar.gz
5602 </p>
5603 <p> <a href="#top">[top]</a> </p>
5604 <h3 id="DW201605-014">171) DW201605-014</h3>
5605 <p>id: DW201605-014
5606 </p>
5607 <p>cve: CVE-2016-5032
5608 </p>
5609 <p>fuzzer:</p>
5610 <p>datereported: 2016-05-17
5611 </p>
5612 <p>reportedby: Yue Liu
5613 </p>
5614 <p>vulnerability: OOB read bug in dwarf_get_xu_hash_entry()
5615 </p>
5616 <p>product: libdwarf
5617 </p>
5618 <p>description: Test object shows
5619 an invalid read in dwarf_get _xu_hash_entry, lin 211.
5620 </p> <pre>
5621 #0 dwarf_get_xu_hash_entry (xuhdr=xuhdr@entry=0x657360,
5622 index=index@entry=2897626028, hash_value=
5623 hash_value@entry=0x7fffffffd5b0,
5624 index_to_sections=index_to_sections@entry=0x7fffffffd5a8,
5625 err=err@entry=0x7fffffffdb08) at dwarf_xu_index.c:211
5626 #1 0x00002aaaaacfd05e in _dwarf_search_fission_for_key (
5627 dbg=0x654a50, error=0x7fffffffdb08, percu_index_out=&lt;synthetic pointer&gt;,
5628 key_in=0x7fffffffd670, xuhdr=0x657360) at dwarf_xu_index.c:363
5629 #2 dwarf_get_debugfission_for_key (dbg=dbg@entry=0x654a50,
5630 key=key@entry=0x7fffffffd670, key_type=key_type@entry=0x2aaaaad15e2a
5631 &quot;tu&quot;, percu_out=percu_out@entry=0x65a830,
5632 error=error@entry=0x7fffffffdb08) at dwarf_xu_index.c:577
5633 </pre>
5634 <p></p>
5635 <p>datefixed: 2015-05-18
5636 </p>
5637 <p>references: regressiontests/liu/OOB0517_02.elf
5638 </p>
5639 <p>gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
5640 </p>
5641 <p>tarrelease: libdwarf-20160923.tar.gz
5642 </p>
5643 <p> <a href="#top">[top]</a> </p>
5644 <h3 id="DW201605-013">172) DW201605-013</h3>
5645 <p>id: DW201605-013
5646 </p>
5647 <p>cve: CVE-2016-5033
5648 </p>
5649 <p>fuzzer:</p>
5650 <p>datereported: 2016-05-17
5651 </p>
5652 <p>reportedby: Yue Liu
5653 </p>
5654 <p>vulnerability: OOB read bug in print_exprloc_content
5655 </p>
5656 <p>product: libdwarf
5657 </p>
5658 <p>description: Test object shows
5659 an invalid write in print_exprloc_content.
5660 </p> <pre>
5661 #0 print_exprloc_content (dbg=dbg@entry=0x654ea0,
5662 die=die@entry=0x65b110, attrib=attrib@entry=0x65b590,
5663 esbp=esbp@entry=0x7fffffffcef0, showhextoo=1) at print_die.c:4182
5664 #1 0x0000000000412fb1 in get_attr_value (dbg=dbg@entry=0x654ea0,
5665 tag=&lt;optimized out&gt;, die=die@entry=0x65b110,
5666 dieprint_cu_goffset=dieprint_cu_goffset@entry=11,
5667 attrib=attrib@entry=0x65b590, srcfiles=srcfiles@entry=0x0,
5668 cnt=cnt@entry=0, esbp=esbp@entry=0x7fffffffcef0, show_form=0,
5669 local_verbose=0) at print_die.c:4972
5670 </pre>
5671 <p></p>
5672 <p>datefixed: 2015-05-18
5673 </p>
5674 <p>references: regressiontests/liu/OOB0517_01.elf
5675 </p>
5676 <p>gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
5677 </p>
5678 <p>tarrelease: libdwarf-20160923.tar.gz
5679 </p>
5680 <p> <a href="#top">[top]</a> </p>
5681 <h3 id="DW201605-012">173) DW201605-012</h3>
5682 <p>id: DW201605-012
5683 </p>
5684 <p>cve: CVE-2016-5034
5685 </p>
5686 <p>fuzzer:</p>
5687 <p>datereported: 2016-05-13
5688 </p>
5689 <p>reportedby: Yue Liu
5690 </p>
5691 <p>vulnerability: OOB write. From relocation records
5692 </p>
5693 <p>product: libdwarf
5694 </p>
5695 <p>description: Test object shows
5696 an invalid write in dwarf_elf_access.c
5697 (when doing the relocations).
5698 Adding the relocation value to anything overflowed
5699 and disguised the bad relocation record.
5700 With a 32bit kernel build the test could show
5701 a double-free and coredump due to the unchecked invalid
5702 writes from relocations.
5703 </p>
5704 <p>datefixed: 2016-05-17
5705 </p>
5706 <p>references: regressiontests/liu/HeapOverflow0513.elf
5707 </p>
5708 <p>gitfixid: 10ca310f64368dc083efacac87732c02ef560a92
5709 </p>
5710 <p>tarrelease: libdwarf-20160923.tar.gz
5711 </p>
5712 <p> <a href="#top">[top]</a> </p>
5713 <h3 id="DW201605-011">174) DW201605-011</h3>
5714 <p>id: DW201605-011
5715 </p>
5716 <p>cve: CVE-2016-5035
5717 </p>
5718 <p>fuzzer:</p>
5719 <p>datereported: 2016-05-06
5720 </p>
5721 <p>reportedby: Yue Liu
5722 </p>
5723 <p>vulnerability: OOB read bug in _dwarf_read_line_table_header
5724 </p>
5725 <p>product: libdwarf
5726 </p>
5727 <p>description: Test object shows
5728 null dereference at line 62
5729 of dwarf_line_table_reader.c.
5730 Frame code and linetable code was not noticing data corruption.
5731 </p>
5732 <p>datefixed: 2016-05-12
5733 </p>
5734 <p>references: regressiontests/liu/OOB_read4.elf
5735 </p>
5736 <p>gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
5737 </p>
5738 <p>tarrelease: libdwarf-20160923.tar.gz
5739 </p>
5740 <p> <a href="#top">[top]</a> </p>
5741 <h3 id="DW201605-010">175) DW201605-010</h3>
5742 <p>id: DW201605-010
5743 </p>
5744 <p>cve: CVE-2016-5036
5745 </p>
5746 <p>fuzzer:</p>
5747 <p>datereported: 2016-05-06
5748 </p>
5749 <p>reportedby: Yue Liu
5750 </p>
5751 <p>vulnerability: OOB read bug in dump_block
5752 </p>
5753 <p>product: libdwarf
5754 </p>
5755 <p>description: Test object shows
5756 null dereverence at line 186
5757 of dump_block() in print_sections.c
5758 Frame code was not noticing frame data corruption.
5759 </p>
5760 <p>datefixed: 2016-05-12
5761 </p>
5762 <p>references: regressiontests/liu/OOB_read3.elf
5763 regressiontests/liu/OOB_read3_02.elf
5764 </p>
5765 <p>gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
5766 </p>
5767 <p>tarrelease: libdwarf-20160923.tar.gz
5768 </p>
5769 <p> <a href="#top">[top]</a> </p>
5770 <h3 id="DW201605-009">176) DW201605-009</h3>
5771 <p>id: DW201605-009
5772 </p>
5773 <p>cve: CVE-2016-5037
5774 </p>
5775 <p>fuzzer:</p>
5776 <p>datereported: 2016-05-05
5777 </p>
5778 <p>reportedby: Yue Liu
5779 </p>
5780 <p>vulnerability: NULL dereference in _dwarf_load_section
5781 </p>
5782 <p>product: libdwarf
5783 </p>
5784 <p>description: Test object shows
5785 null dereverence at line 1010
5786 if(!strncmp(&quot;ZLIB&quot;,(const char *)src,4)) {
5787 in dwarf_init_finish.c
5788 The zlib code was not checking for
5789 a corrupted length-value.
5790 </p>
5791 <p>datefixed: 2016-05-06
5792 </p>
5793 <p>references: regressiontests/liu/NULLderefer0505_01.elf
5794 </p>
5795 <p>gitfixid: b6ec2dfd850929821626ea63fb0a752076a3c08a
5796 </p>
5797 <p>tarrelease: libdwarf-20160507.tar.gz
5798 </p>
5799 <p> <a href="#top">[top]</a> </p>
5800 <h3 id="DW201605-008">177) DW201605-008</h3>
5801 <p>id: DW201605-008
5802 </p>
5803 <p>cve: CVE-2016-5038
5804 </p>
5805 <p>fuzzer:</p>
5806 <p>datereported: 2016-05-05
5807 </p>
5808 <p>reportedby: Yue Liu
5809 </p>
5810 <p>vulnerability: OOB read in dwarf_get_macro_startend_file()
5811 </p>
5812 <p>product: libdwarf
5813 </p>
5814 <p>description: Test object shows
5815 out of bound read.
5816 OOB at:
5817 line 772 *src_file_name = macro_context-&gt;mc_srcfiles[trueindex];
5818 in dwarf_macro5.c
5819 A string offset into .debug_str is outside the bounds
5820 of the .debug_str section.
5821 </p>
5822 <p>datefixed: 2016-05-12
5823 </p>
5824 <p>references: regressiontests/liu/OOB0505_02.elf
5825 regressiontests/liu/OOB0505_02_02.elf
5826 </p>
5827 <p>gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
5828 </p>
5829 <p>tarrelease: libdwarf-20160923.tar.gz
5830 </p>
5831 <p> <a href="#top">[top]</a> </p>
5832 <h3 id="DW201605-007">178) DW201605-007</h3>
5833 <p>id: DW201605-007
5834 </p>
5835 <p>cve: CVE-2016-5039
5836 </p>
5837 <p>fuzzer:</p>
5838 <p>datereported: 2016-05-05
5839 </p>
5840 <p>reportedby: Yue Liu
5841 </p>
5842 <p>vulnerability: OOB read bug in get_attr_value()
5843 </p>
5844 <p>product: libdwarf
5845 </p>
5846 <p>description: Test object shows
5847 out of bound read.
5848 Object had data all-bits-on so
5849 the existing length check did not work
5850 due to wraparound. Added a check
5851 not susceptible to that error (DW_DLE_FORM_BLOCK_LENGTH_ERROR).
5852 </p>
5853 <p>datefixed: 2016-05-06
5854 </p>
5855 <p>references: regressiontests/liu/OOB0505_01.elf
5856 </p>
5857 <p>gitfixid: eb1472afac95031d0c9dd8c11d527b865fe7deb8
5858 </p>
5859 <p>tarrelease: libdwarf-20160507.tar.gz
5860 </p>
5861 <p> <a href="#top">[top]</a> </p>
5862 <h3 id="DW201605-006">179) DW201605-006</h3>
5863 <p>id: DW201605-006
5864 </p>
5865 <p>cve:</p>
5866 <p>fuzzer:</p>
5867 <p>datereported: 2016-05-05
5868 </p>
5869 <p>reportedby: Yue Liu
5870 </p>
5871 <p>vulnerability: Two Heap-Overflow bug
5872 </p>
5873 <p>product: libdwarf
5874 </p>
5875 <p>description: Two test objects showing
5876 a heap overflow in libdwarf when
5877 using dwarfdump.
5878 It seems that these were fixed
5879 by the previous git update.
5880 Neither gdb nor valgrind find any errors
5881 when building with yesterday's commit.
5882 </p>
5883 <p>datefixed: 2016-05-04
5884 </p>
5885 <p>references: regressiontests/liu/free_invalid_address.elf
5886 regressiontests/liu/heapoverflow01b.elf
5887 </p>
5888 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
5889 </p>
5890 <p>tarrelease: libdwarf-20160507.tar.gz
5891 </p>
5892 <p> <a href="#top">[top]</a> </p>
5893 <h3 id="DW201605-005">180) DW201605-005</h3>
5894 <p>id: DW201605-005
5895 </p>
5896 <p>cve: CVE-2016-5040
5897 </p>
5898 <p>fuzzer:</p>
5899 <p>datereported: 2016-05-02
5900 </p>
5901 <p>reportedby: Yue Liu
5902 </p>
5903 <p>vulnerability: A specially crafted DWARF section
5904 results in reading a compilation unit header
5905 that crashes the application.
5906 </p>
5907 <p>product: libdwarf
5908 </p>
5909 <p>description: If the data read for a compilation unit header
5910 contains a too large length value the library
5911 will read outside of its bounds and crash the application.
5912 </p>
5913 <p>datefixed: 2016-05-04
5914 </p>
5915 <p>references: regressiontests/liu/null02.elf
5916 </p> <pre>
5917 https://bugzilla.redhat.com/show_bug.cgi?id=1332149
5918 </pre>
5919 <p></p>
5920 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
5921 </p>
5922 <p>tarrelease: libdwarf-20160507.tar.gz
5923 </p>
5924 <p> <a href="#top">[top]</a> </p>
5925 <h3 id="DW201605-004">181) DW201605-004</h3>
5926 <p>id: DW201605-004
5927 </p>
5928 <p>cve: CVE-2016-5041
5929 </p>
5930 <p>fuzzer:</p>
5931 <p>datereported: 2016-05-02
5932 </p>
5933 <p>reportedby: Yue Liu
5934 </p>
5935 <p>vulnerability: A specially crafted DWARF section
5936 results in a null dereference reading debugging
5937 information entries which
5938 crashes the application.
5939 </p>
5940 <p>product: libdwarf
5941 </p>
5942 <p>description: If no DW_AT_name is present in a debugging
5943 information entry using DWARF5 macros
5944 a null dereference in dwarf_macro5.c will
5945 crash the application.
5946 </p>
5947 <p>datefixed: 2016-05-04
5948 </p>
5949 <p>references: regressiontests/liu/null01.elf
5950 </p> <pre>
5951 https://bugzilla.redhat.com/show_bug.cgi?id=1332148
5952 </pre>
5953 <p></p>
5954 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
5955 </p>
5956 <p>tarrelease: libdwarf-20160507.tar.gz
5957 </p>
5958 <p> <a href="#top">[top]</a> </p>
5959 <h3 id="DW201605-003">182) DW201605-003</h3>
5960 <p>id: DW201605-003
5961 </p>
5962 <p>cve: CVE-2016-5042
5963 </p>
5964 <p>fuzzer:</p>
5965 <p>datereported: 2016-05-02
5966 </p>
5967 <p>reportedby: Yue Liu
5968 </p>
5969 <p>vulnerability: A specially crafted DWARF section
5970 results in an infinite loop that eventually
5971 crashes the application.
5972 </p>
5973 <p>product: libdwarf
5974 </p>
5975 <p>description: In dwarf_get_aranges_list()
5976 an invalid count will iterate, reading from memory
5977 addresses that increase till it all fails.
5978 </p>
5979 <p>datefixed: 2016-05-04
5980 </p>
5981 <p>references: regressiontests/liu/infiniteloop.elf
5982 </p> <pre>
5983 https://bugzilla.redhat.com/show_bug.cgi?id=1332145
5984 </pre>
5985 <p></p>
5986 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
5987 </p>
5988 <p>tarrelease: libdwarf-20160507.tar.gz
5989 </p>
5990 <p> <a href="#top">[top]</a> </p>
5991 <h3 id="DW201605-002">183) DW201605-002</h3>
5992 <p>id: DW201605-002
5993 </p>
5994 <p>cve: CVE-2016-5043
5995 </p>
5996 <p>fuzzer:</p>
5997 <p>datereported: 2016-05-02
5998 </p>
5999 <p>reportedby: Yue Liu
6000 </p>
6001 <p>vulnerability: A specially crafted DWARF section
6002 results in a read outside the bounds of in memory
6003 data so the calling application can crash.
6004 </p>
6005 <p>product: libdwarf
6006 </p>
6007 <p>description: Out of bound read bug in libdwarf git code.
6008 dwarf_dealloc() did not check the Dwarf_Ptr space argument
6009 before using it. This will lead to a out-of-bound read bug.
6010 </p> <pre>
6011 backtrace:
6012 #0 dwarf_dealloc (dbg=dbg@entry=0x655f30, space=0xa0,
6013 alloc_type=alloc_type@entry=1) at dwarf_alloc.c:477
6014 #1 0x00002aaaaacf3296 in dealloc_srcfiles
6015 (dbg=0x655f30, srcfiles=0x66b8f0, srcfiles_count=17) at
6016 dwarf_macro5.c:1025 #2 0x00002aaaaacf50e6 in dealloc_srcfiles
6017 (srcfiles_count=&lt;optimized out&gt;, srcfiles=&lt;optimized out&gt;,
6018 dbg=&lt;optimized out&gt;) at dwarf_macro5.c:1021 -----
6019 gef&gt; p &amp;r-&gt;rd_dbg
6020 $14 = (void **) 0x90
6021 </pre>
6022 <p></p>
6023 <p>datefixed: 2016-05-04
6024 </p>
6025 <p>references: regressiontests/liu/outofbound01.elf
6026 </p> <pre>
6027 https://bugzilla.redhat.com/show_bug.cgi?id=1332144
6028 </pre>
6029 <p></p>
6030 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
6031 </p>
6032 <p>tarrelease: libdwarf-20160507.tar.gz
6033 </p>
6034 <p> <a href="#top">[top]</a> </p>
6035 <h3 id="DW201605-001">184) DW201605-001</h3>
6036 <p>id: DW201605-001
6037 </p>
6038 <p>cve: CVE-2016-5044
6039 </p>
6040 <p>fuzzer:</p>
6041 <p>datereported: 2016-05-02
6042 </p>
6043 <p>reportedby: Yue Liu
6044 </p>
6045 <p>vulnerability: A specially crafted DWARF section
6046 results in a duplicate free() in libdwarf and
6047 the calling application will crash.
6048 </p>
6049 <p>product: libdwarf
6050 </p>
6051 <p>description: In file dwarf_elf_access.c:1071
6052 </p> <pre>
6053 WRITE_UNALIGNED(dbg,target_section + offset,
6054 &amp;outval,sizeof(outval),reloc_size);
6055 </pre>
6056 <p> A crafted ELF file may lead to a large offset value, which
6057 bigger than the size of target_section heap chunk, then this
6058 WRITE_UNALIGNED() function will write the value of &amp;outval
6059 out of the heap chunk.
6060 offset is a 64bit unsigned int value, so this is more than
6061 a heap overflow bug, but also a Out-of-Bound write bug.
6062 So WRITE_UNALIGNED() need more strictly checking to prevent
6063 this.
6064 </p>
6065 <p>datefixed: 2016-05-04
6066 </p>
6067 <p>references: regressiontests/liu/heapoverflow01.elf
6068 </p> <pre>
6069 https://bugzilla.redhat.com/show_bug.cgi?id=1332141
6070 </pre>
6071 <p></p>
6072 <p>gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
6073 </p>
6074 <p>tarrelease: libdwarf-20160507.tar.gz
6075 </p>
6076 <p> <a href="#top">[top]</a> </p>
6077 <h3 id="DW201601-002">185) DW201601-002</h3>
6078 <p>id: DW201601-002
6079 </p>
6080 <p>cve: CVE-2016-2050
6081 </p>
6082 <p>fuzzer:</p>
6083 <p>datereported: 2016-01-19
6084 </p>
6085 <p>reportedby: Qixue Xiao
6086 </p>
6087 <p>vulnerability: Out of bound write in get_abbrev_array_info
6088 </p>
6089 <p>product: libdwarf
6090 </p>
6091 <p>description: Crashes the calling program. Requires
6092 a crafted object file.
6093 </p> <pre>
6094 valgrind ./dwarfdump -ka aw.elf
6095 ==5358== Memcheck, a memory error detector
6096 ==5358== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
6097 ==5358== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
6098 ==5358== Command: ../../llvm-codes/dwarf-20151114/dwarfdump/dwarfdump -ka aw.elf
6099 ==5358==
6100 ==5358== Invalid write of size 8
6101 ==5358== at 0x40DA25: get_abbrev_array_info (in
6102 /home/xqx/test/libdwarf-test/llvm-codes/dwarf-20151114/dwarfdump/dwarfdump)
6103 ==5358== by 0x40FD92: print_one_die_section (in
6104 /home/xqx/test/libdwarf-test/llvm-codes/dwarf-20151114/dwarfdump/dwarfdump)
6105 www.openwall.com/lists/oss-security/2016/01/19/9
6106 www.openwall.com/lists/oss-security/2016/01/25/3
6107 </pre>
6108 <p></p>
6109 <p>datefixed: 2016-01-21
6110 </p>
6111 <p>references: regressiontests/xqx-b/aw.elf
6112 </p>
6113 <p>gitfixid: d9d40e4d802e626065ce37ff384dd69c43bc499
6114 </p>
6115 <p>tarrelease: libdwarf-20160507.tar.gz
6116 </p>
6117 <p> <a href="#top">[top]</a> </p>
6118 <h3 id="DW201601-001">186) DW201601-001</h3>
6119 <p>id: DW201601-001
6120 </p>
6121 <p>cve: CVE-2016-2091
6122 </p>
6123 <p>fuzzer:</p>
6124 <p>datereported: 2016-01-12
6125 </p>
6126 <p>reportedby: Qixue Xiao
6127 </p>
6128 <p>vulnerability: Out of bound read in dwarf_read_cie_fde_prefix()
6129 </p>
6130 <p>product: libdwarf
6131 </p>
6132 <p>description: Crashes the calling program. Requires
6133 a crafted object file.
6134 </p> <pre>
6135 *** DWARF CHECK: DW_DLE_DEBUG_FRAME_LENGTH_NOT_MULTIPLE
6136 len=0x00000010, len size=0x00000004, extn size=0x00000000, totl
6137 length=0x00000014, addr size=0x00000008, mod=0x00000004 must be zero
6138 in cie, offset 0x00000000. ***
6139 7 ==53495== Invalid read of size 2
6140 1 ==53495== at 0x4C2F7E0: memcpy@@GLIBC_2.14 (in
6141 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
6142 2 ==53495== by 0x43287F: dwarf_read_cie_fde_prefix (dwarf_frame2.c:934)
6143 3 ==53495== by 0x431305: _dwarf_get_fde_list_internal (dwarf_frame2.c:268)
6144 4 ==53495== by 0x42EB5F: dwarf_get_fde_list_eh (dwarf_frame.c:1101)
6145 5 ==53495== by 0x41BABE: print_frames (print_frames.c:1835)
6146 6 ==53495== by 0x40485B: process_one_file (dwarfdump.c:1323)
6147 7 ==53495== by 0x403529: main (dwarfdump.c:630)
6148 www.openwall.com/lists/oss-security/2016/01/19/3
6149 www.openwall.com/lists/oss-security/2016/05/28/8
6150 </pre>
6151 <p></p>
6152 <p>datefixed: 2016-01-21
6153 </p>
6154 <p>references: regressiontests/xqx-b/awbug5.elf
6155 </p>
6156 <p>gitfixid: d9d40e4d802e626065ce37ff384dd69c43bc499
6157 </p>
6158 <p>tarrelease: libdwarf-20160507.tar.gz
6159 </p>
6160 <p> <a href="#top">[top]</a> </p>
6161 <h3 id="DW201512-002">187) DW201512-002</h3>
6162 <p>id: DW201512-002
6163 </p>
6164 <p>cve: CVE-2015-8538
6165 </p>
6166 <p>fuzzer:</p>
6167 <p>datereported: 2015-12-14
6168 </p>
6169 <p>reportedby: Adam Maris
6170 </p>
6171 <p>vulnerability: Out-of-bounds read in dwarf_leb.c
6172 </p>
6173 <p>product: libdwarf
6174 </p>
6175 <p>description: libdwarf 20151114 and earlier allows remote
6176 attackers to cause a denial of service (NULL pointer
6177 dereference and crash) via a debug_abbrev
6178 section marked NOBITS in an ELF file.
6179 The CVE report mentions a reproducer object file
6180 but such is not present.
6181 Due to recent tool advances (like
6182 coverity scan) we are confident this was fixed long ago.
6183 </p> <pre>
6184 bugzilla.redhat.com/show_bug.cgi?id=1291299
6185 www.openwall.com/lists/oss-security/2015/12/10/3
6186 </pre>
6187 <p></p>
6188 <p>datefixed: 2018-01-01
6189 </p>
6190 <p>references:</p>
6191 <p>gitfixid:</p>
6192 <p>tarrelease: libdwarf-20160507.tar.gz
6193 </p>
6194 <p> <a href="#top">[top]</a> </p>
6195 <h3 id="DW201512-001">188) DW201512-001</h3>
6196 <p>id: DW201512-001
6197 </p>
6198 <p>cve: CVE-2015-8750
6199 </p>
6200 <p>fuzzer:</p>
6201 <p>datereported: 2015-12-26
6202 </p>
6203 <p>reportedby: Qixue Xiao (xqx)
6204 </p>
6205 <p>vulnerability: Null pointer dereference in libdwarf
6206 </p>
6207 <p>product: libdwarf
6208 </p>
6209 <p>description: libdwarf 20151114 and earlier allows remote
6210 attackers to cause a denial of service (NULL pointer
6211 dereference and crash) via a debug_abbrev
6212 section marked NOBITS in an ELF file.
6213 </p> <pre>
6214 bugzilla.redhat.com/show_bug.cgi?id=1294264
6215 www.openwall.com/lists/oss-security/2016/01/07/11
6216 </pre>
6217 <p></p>
6218 <p>datefixed: 2015-12-31
6219 </p>
6220 <p>references: regressiontests/xqx-c/awbug6.elf
6221 </p>
6222 <p>gitfixid:</p>
6223 <p>tarrelease: libdwarf-20160507.tar.gz
6224 </p>
6225 <p> <a href="#top">[top]</a> </p>
6226 <h3 id="DW201412-001">189) DW201412-001</h3>
6227 <p>id: DW201412-001
6228 </p>
6229 <p>cve: CVE-2014-9482
6230 </p>
6231 <p>fuzzer:</p>
6232 <p>datereported: 2014-12-31
6233 </p>
6234 <p>reportedby: Adam Maris
6235 </p>
6236 <p>vulnerability: Use after free vulnerability in Dwarfdump
6237 </p>
6238 <p>product: dwarfdump
6239 </p>
6240 <p>description: The use-after-free has no attached testcase
6241 anywhere. Due to recent tool advances (like
6242 coverity scan) we are confident this was fixed long ago.
6243 </p> <pre>
6244 bugzilla.redhat.com/show_bug.cgi?id=1177758
6245 www.openwall.com/lists/oss-security/2014/12/31/3
6246 www.openwall.com/lists/oss-security/2015/01/03/14
6247 </pre>
6248 <p></p>
6249 <p>datefixed: 2018-01-01
6250 </p>
6251 <p>references:</p>
6252 <p>gitfixid:</p>
6253 <p>tarrelease: libdwarf-20160507.tar.gz
6254 </p>
6255 <p> <a href="#top">[top]</a> </p>
6256 <p> <a href="#top">[top]</a> </p>
6257 </body>
6258 </html>