Debian Codegraph @

bugxml/data.txt

raw
1
2 id: DW202407-012
3 fuzzer: ossfuzz id: 70763
4 datereported: 2024-07-28
5 reportedby: David Korczynski
6 vulnerability: InfiniteRecursion reading CUs leads to crash
7 product: libdwarf
8 description: The code added in git fix id
9 6b40a0ed378826273080a7b11e7274c2b61d018b
10 two days ago involved adding code setting up
11 compilation unit data and in find_cu_die_base_fields()
12 we called dwarf_global_formref() whereas we must
13 call _dwarf_internal_global_formref_b() to avoid
14 an infinite recursion.
15 A crash was only possible when reading corrupt DWARF.
16 datefixed: 2024-07-28
17 references: regressiontests/ossfuzz70763/fuzz_macro_dwarf5-5161075908083712
18 gitfixid: 1b79d618bf5aab2bda9be495c531b13e94ae056a
19 tarrelease:
20 endrec: DW202407-012
21
22 id: DW202407-011
23 fuzzer: ossfuzz id: 70753
24 datereported: 2024-07-28
25 reportedby: David Korczynski
26 vulnerability: InfiniteRecursion reading CUs leads to crash
27 product: libdwarf
28 description: The code added in git fix id
29 6b40a0ed378826273080a7b11e7274c2b61d018b
30 two days ago involved adding code setting up
31 compilation unit data and in find_cu_die_base_fields()
32 we called dwarf_global_formref() whereas we must
33 call _dwarf_internal_global_formref_b() to avoid
34 an infinite recursion.
35 A crash was only possible when reading corrupt DWARF.
36 datefixed: 2024-07-28
37 references: regressiontests/ossfuzz70753/fuzz_die_cu_offset-6598270743281664
38 gitfixid: 1b79d618bf5aab2bda9be495c531b13e94ae056a
39 tarrelease:
40 endrec: DW202407-011
41
42 id: DW202407-010
43 fuzzer: ossfuzz id: 70721
44 datereported: 2024-07-27
45 reportedby: David Korczynski
46 vulnerability: Heap Use After Free
47 product: libdwarf
48 description: Libdwarf was referencing freed space
49 attempting to free up a compilation-unit DIE
50 in the process of creating a context for a
51 compilation-unit DIE, given a particular
52 corruption of the DWARF data being read.
53 This bug has been present for several years.
54 datefixed: 2024-07-27
55 references: regressiontests/ossfuzz70721/fuzz_macro_dwarf5-4907954017468416
56 gitfixid: 6fa96f95e043bac9b98ca6f7a9a542dae8f46cd
57 tarrelease:
58 endrec: DW202407-010
59
60
61 id: DW202407-009
62 fuzzer: ossfuzz id: 70287
63 datereported: 2024-07-10
64 reportedby: David Korczynski
65 vulnerability: Huge malloc request could crash caller
66 product: libdwarf
67 description: Libdwarf was not checking a field in
68 a .debug_rnglists header for sanity before doing
69 a malloc based on the field value.
70 This bug has been present for a week or so.
71 datefixed: 2024-07-10
72 references: regressiontests/ossfuzz70287/
73 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
74 tarrelease:
75 endrec: DW202407-009
76
77
78
79 id: DW202407-008
80 fuzzer: ossfuzz id: 70282
81 datereported: 2024-07-10
82 reportedby: David Korczynski
83 vulnerability: Huge malloc request could crash caller
84 product: libdwarf
85 description: Libdwarf was not checking a field in
86 a .debug_rnglists header for sanity before doing
87 a malloc based on the field value.
88 This bug has been present for a week or so.
89 datefixed: 2024-07-10
90 references: regressiontests/ossfuzz70282/
91 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
92 tarrelease:
93 endrec: DW202407-008
94
95 id: DW202407-007
96 fuzzer: ossfuzz id: 70278
97 datereported: 2024-07-10
98 reportedby: David Korczynski
99 vulnerability: Huge malloc request could crash caller
100 product: libdwarf
101 description: Libdwarf was not checking a field in
102 a .debug_rnglists header for sanity before doing
103 a malloc based on the field value.
104 This bug has been present for a week or so.
105 datefixed: 2024-07-10
106 references: regressiontests/ossfuzz70278/
107 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
108 tarrelease:
109 endrec: DW202407-007
110
111
112 id: DW202407-006
113 fuzzer: ossfuzz id: 70277
114 datereported: 2024-07-10
115 reportedby: David Korczynski
116 vulnerability: Huge malloc request could crash caller
117 product: libdwarf
118 description: Libdwarf was not checking a field in
119 a .debug_rnglists header for sanity before doing
120 a malloc based on the field value.
121 This bug has been present for a week or so.
122 datefixed: 2024-07-10
123 references: regressiontests/ossfuzz70277/
124 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
125 tarrelease:
126 endrec: DW202407-006
127
128
129 id: DW202407-005
130 fuzzer: ossfuzz id: 70266
131 datereported: 2024-07-10
132 reportedby: David Korczynski
133 vulnerability: Huge malloc request could crash caller
134 product: libdwarf
135 description: Libdwarf was not checking a field in
136 a .debug_rnglists header for sanity before doing
137 a malloc based on the field value.
138 This bug has been present for a week or so.
139 datefixed: 2024-07-10
140 references: regressiontests/ossfuzz70266/fuzz_findfuncbypc-6093996460408832
141 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
142 tarrelease:
143 endrec: DW202407-005
144
145
146 id: DW202407-004
147 fuzzer: ossfuzz id: 70263
148 datereported: 2024-07-10
149 reportedby: David Korczynski
150 vulnerability: Huge malloc request could crash caller
151 product: libdwarf
152 description: Libdwarf was not checking a field in
153 a .debug_rnglists header for sanity before doing
154 a malloc based on the field value.
155 This bug has been present for a week or so.
156 datefixed: 2024-07-10
157 references: regressiontests/ossfuzz70263/fuzz_die_cu-4960441042796544
158 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
159 tarrelease:
160 endrec: DW202407-004
161
162 id: DW202407-003
163 fuzzer: ossfuzz id: 70256
164 datereported: 2024-07-10
165 reportedby: David Korczynski
166 vulnerability: Huge malloc request could crash caller
167 product: libdwarf
168 description: Libdwarf was not checking a field in
169 a .debug_rnglists header for sanity before doing
170 a malloc based on the field value.
171 This bug has been present for a week or so.
172 datefixed: 2024-07-10
173 references: regressiontests/ossfuzz70256/fuzz_rng-483822291655065
174 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
175 tarrelease:
176 endrec: DW202407-003
177
178 id: DW202407-002
179 fuzzer: ossfuzz id: 70246
180 datereported: 2024-07-09
181 reportedby: David Korczynski
182 vulnerability: Huge malloc request could crash caller
183 product: libdwarf
184 description: Libdwarf was not checking a field in
185 a .debug_rnglists header for sanity before doing
186 a malloc based on the field value.
187 This bug has been present for a week or so.
188 datefixed: 2024-07-10
189 references: regressiontests/ossfuzz70246/fuzz_macro_dwarf5-5128935898152960
190 gitfixid: d7c4efdcc7952b38a237a36ccedf364018e0fb1c
191 tarrelease:
192 endrec: DW202407-002
193
194 id: DW202407-001
195 fuzzer: ossfuzz id: 70244
196 datereported: 2024-07-09
197 reportedby: David Korczynski
198 vulnerability: Memory leaks reading rnglists
199 product: libdwarf
200 description: Libdwarf was failing to free()
201 some allocations in reading .debug_rnglists.
202 This bug has been present for a week or so.
203 datefixed: 2024-07-09
204 references: regressiontests/ossfuzz70244/fuzz_die_cu_attrs_loclist-4958134427254784
205 gitfixid: 906a4428a5d92e17948da4249cfccbe8f5ae8005
206 tarrelease:
207 endrec: DW202407-001
208
209
210 id: DW202406-002
211 fuzzer: ossfuzz id: 69641
212 datereported: 2024-06-14
213 reportedby: David Korczynski
214 vulnerability: Memory Leak reading .debug_loclists
215 product: libdwarf
216 description: During startup (reading
217 initial fields from .debug_loclists)
218 libdwarf was allocating
219 an array of integers but in the normal
220 case was failing to free the array.
221 This bug in DWARF5 handling
222 has been in the code for a week or so.
223 See also DW202406-001.
224 datefixed: 2024-06-15
225 references: regressiontests/ossfuzz69641/fuzz_die_cu_attrs_loclist-6271271030030336
226 gitfixid: 32d832900ebe2e61ec07e82625a561415be05424
227 tarrelease: libdwarf-0.10.1.tar.xz
228 endrec: DW202406-002
229
230 id: DW202406-001
231 fuzzer: ossfuzz id: 69639
232 datereported: 2024-06-14
233 reportedby: David Korczynski
234 vulnerability: Memory Leak reading .debug_loclists
235 product: libdwarf
236 description: During startup (reading
237 initial fields from .debug_loclists)
238 libdwarf was allocating
239 an array of integers but in the normal
240 case was failing to free the array.
241 This bug in DWARF5 handling
242 has been in the code for a week or so.
243 See also DW202406-002.
244 datefixed: 2024-06-15
245 references: regressiontests/ossfuzz69639/fuzz_die_cu_offset-6001910176350208
246 gitfixid: 32d832900ebe2e61ec07e82625a561415be05424
247 tarrelease: libdwarf-0.10.1.tar.xz
248 endrec: DW202406-001
249
250
251 id: DW202403-001
252 fuzzer: ossfuzz id: 67490
253 datereported: 2024-03-18
254 reportedby: David Korczynski
255 vulnerability: Reads past end of line table
256 product: libdwarf
257 description: A carefully corrupted line table
258 header can cause libdwarf to read outside of its
259 allowed areas in a .debug_line section reading
260 the file names part of the header.
261 The failure to check for end-of-section before reading
262 past end-of-section at the very last byte in section
263 (at a very few specific
264 points in the line table reader code where a
265 valid line table header would not require a test)
266 has been present for many years.
267 datefixed: 2024-02-19
268 references: regressiontests/ossfuzz67490/fuzz_srcfiles-5195296927711232
269 gitfixid: 2930f3121ee6b07da405103934c329bbeca0382f
270 tarrelease: libdwarf-0.9.2.tar.xz
271 endrec: DW202403-001
272
273
274 id: DW202402-003
275 fuzzer: hongg
276 datereported: 2024-02-18
277 reportedby: ifygecko
278 vulnerability: crashes randomly reading fuzzed locllist
279 product: libdwarf
280 description: A carefully corrupted loclists entry
281 can cause libdwarf to read outside of its
282 allowed areas in dwarf_loclists.c due to lack of a
283 sanity check.
284 A segmentation error and libdwarf crash is likely.
285 Similar code in dwarf_rnglists.c and that now
286 has the additional checks.
287 The bugs have been present in both since the code was created
288 in June 2020.
289 datefixed: 2024-02-18
290 references: regressiontests/hongg2024-02-18/SIGSEGV-m.fuzz
291 gitfixid: 5cfbd87dff4fc3c3b595bb92ed886934945b372c
292 tarrelease: libdwarf-0.9.2.tar.xz
293 endrec: DW202402-003
294
295
296 id: DW202402-002
297 cve: CVE-2024-2002
298 fuzzer: hongg
299 datereported: 2024-02-16
300 reportedby: ifygecko
301 vulnerability: crashes randomly on fuzzed object
302 product: libdwarf
303 description: In a multiply-corrupted DWARF object
304 libdwarf may try to dealloc(free) an allocation twice.
305 Results are unpredictable and various.
306 This has been a possibility since we added code
307 to prevent leaks when generating 'unattached'
308 Dwarf_Error records (where there is no
309 Dwarf_Debug available at the point of error).
310 The problem was introduced in libdwarf-0.1.0
311 in 2021.
312 datefixed: 2024-02-17
313 references: regressiontests/hongg2024-02-16/SIGABRT-a.fuzz
314 SIGABRT-b.fuzz SIGABRT-c.fuzz SIGSEGV-d.fuzz
315 SIGSEGV-e.fuzz SIGSEGV-f.fuzz SIGSEGV-g.fuzz
316 SIGSEGV-h.fuzz SIGSEGV-i.fuzz SIGSEGV-k.fuzz
317 gitfixid: 404e6b1b14f60c81388d50b4239f81d461b3c3ad
318 tarrelease: libdwarf-0.9.2.tar.xz
319 endrec: DW202402-002
320
321
322
323
324 id: DW202402-001
325 fuzzer: ossfuzz id: 66646
326 datereported: 2024-02-12
327 reportedby: David Korczynski
328 vulnerability: Reference memory outside of section.
329 product: libdwarf
330 description: The data pointer for DW_FORM_ref1
331 was not being validated as pointing into the section before
332 being dereferenced. Here reading a corrupted
333 DWARF section. A library crash is likely.
334 This test failure happened to be on a
335 DW_AT_abstract_origin attribute,
336 but the problem applies in many other situations.
337 Nearly the other forms had checks.
338 This check has been missing for many years.
339 Similarly the requisite check was missing from
340 DW_FORM_block1 for many years and that too
341 was fixed so all the FORMs have checks now.
342 datefixed: 2024-02-13
343 references: regressiontests/ossfuzz66646/fuzz_findfuncbypc-5178544143532032
344 gitfixid: f21e2f7687f3dca183026a1fb72ca1f0dcf8befa
345 tarrelease: libdwarf-0.9.2.tar.xz
346 endrec: DW202402-001
347
348
349
350 id: DW202311-002
351 fuzzer: ossfuzz id: 64496
352 datereported: 2023-02-28
353 reportedby: David Korczynski
354 vulnerability: Null dereference from dwarf_gnu_debuglink()
355 product: libdwarf
356 description: If the Dwarf_Debug was opened with
357 dwarf_init_object_b() there is no pathname known to libdwarf
358 and the library was dereferencing a null pointer as a result.
359 With the library bug fixed
360 the fuzz/fuzz_debuglink.c test case was violating the
361 rules of use of the function resulting in memory
362 leakage. The documentation has been improved on this
363 function.
364 datefixed: 2023-11-25
365 references: regressiontests/ossfuzz64496/fuzz_debuglink-615437663823462
366 gitfixid: d76cce559b898f7059ce5ffd82f3cfd58cb392fe
367 tarrelease: libdwarf-0.9.0.tar.xz
368 endrec: DW202311-002
369
370 id: DW202311-001
371 fuzzer: ossfuzz id: 56452
372 datereported: 2023-11-24
373 reportedby: David Korczynski
374 vulnerability: Null dereference
375 product: libdwarf
376 description: Passing a null Dwarf_Debug to
377 dwarf_add_debuglink_global_path() lead to library crash.
378 The code was not checking for a valid Dwarf_Debug Argument.
379 The bug was present when the function was created in 2021
380 Moreover, oss fuzz originally noted the bug
381 on 02 March 2023 but
382 I can find no trace of a notification of the bug arriving
383 before 24 November 2023.
384 Fixing this sort of thing for all functions, here is
385 the last commit id...
386 ef77596af000719c04bd3e40b97139247ff3efb4
387 datefixed: 2023-11-25
388 references: regressiontests/ossfuzz56452/fuzz_debuglink-cs4231a-5927365017731072
389 gitfixid: 1f6988307748f427566e3266695bb72d5384bf3d
390 tarrelease: libdwarf-0.9.0.tar.xz
391 endrec: DW202311-001
392
393
394 id: DW202310-002
395 fuzzer: ossfuzz id: 63024
396 datereported: 2023-10-06
397 reportedby: David Korczynski
398 vulnerability: Heap buffer overflow
399 product: libdwarf
400 description: A copy-paste error lead to
401 a heap buffer overflow. Named the wrong struct
402 in calling calloc().
403 The function with the bug was added seven days ago.
404 datefixed: 2023-10-07
405 references: regressiontests/ossfuzz63024/fuzz_init_path-5486726493372416
406 gitfixid: 3a658bd1dd7437948cecbf82bb9b24f5f6122a7d
407 tarrelease: libdwarf-0.9.0.tar.xz
408 endrec: DW202310-002
409
410 id: DW202310-001
411 fuzzer: ossfuzz id: 62943
412 datereported: 2023-10-02
413 reportedby: David Korczynski
414 vulnerability: Heap buffer overflow
415 product: libdwarf
416 description: The heap buffer overflow was due
417 to a failure to do initial sanity checks on a
418 universal object. The object involved was
419 not large enough to have a complete universal
420 header.
421 This bug was in the public repository
422 for three days (in all-new code, for Apple
423 Universal Binary objects).
424 datefixed: 2023-10-03
425 references: regressiontests/ossfuzz62943/fuzz_init_path-5486726493372416
426 gitfixid: aea77dad8745d9aad5275c3226e4e3156effa71f
427 tarrelease: libdwarf-0.9.0.tar.xz
428 endrec: DW202310-001
429
430 id: DW202309-004
431 fuzzer: ossfuzz id: 62842
432 datereported: 2023-09-30
433 reportedby: David Korczynski
434 vulnerability: Heap buffer overflow
435 product: libdwarf
436 description: The heap buffer overflow in
437 _dwarf_memcpy_swap_bytes was due a failure to check
438 for a valid size field (a fuzzed value) in a count
439 of array elements..
440 Now we check for a sensible count.
441 This bug was in the public repository
442 for two days (in all-new code, for Apple
443 Universal Binary objects).
444 datefixed: 2023-10-01
445 references: regressiontests/ossfuzz62842/fuzz_findfuncbypc-4964619766333440.fuzz
446 gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
447 tarrelease: libdwarf-0.9.0.tar.xz
448 endrec: DW202309-004
449
450 id: DW202309-003
451 fuzzer: ossfuzz id: 62834
452 datereported: 2023-09-30
453 reportedby: David Korczynski
454 vulnerability: Memory leak in _dwarf_macho_setup()
455 product: libdwarf
456 description: The September 29 addition of Mach-O
457 universal binary support
458 resulted in memory leaks due to revising memory alloc/free
459 incompletely when fuzzed object files were encountered..
460 This bug was in the public repository
461 for two days (in all-new code, for Apple
462 Universal Binary objects).
463 datefixed: 2023-10-01
464 references: regressiontests/ossfuzz62834/fuzz_init_path-4573857635500032
465 gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
466 tarrelease: libdwarf-0.9.0.tar.xz
467 endrec: DW202309-003
468
469 id: DW202309-002
470 fuzzer: ossfuzz id: 62833
471 datereported: 2023-09-30
472 reportedby: David Korczynski
473 vulnerability: Memory leak in _dwarf_macho_setup()
474 product: libdwarf
475 description: The September 29 addition of Mach-O
476 universal binary support
477 resulted in memory leaks due to revising memory alloc/free
478 incompletely when fuzzed object files were encountered..
479 This bug was in the public repository
480 for two days (in all-new code, for Apple
481 Universal Binary objects).
482 datefixed: 2023-10-01
483 references: regressiontests/ossfuzz62833/fuzz_set_frame_all-4521858130903040
484 gitfixid: gitfixid: f7c7e84e5a77915bb6570215887118d8e7759122
485 tarrelease: libdwarf-0.9.0.tar.xz
486 endrec: DW202309-002
487
488
489
490 id: DW202309-001
491 fuzzer: ossfuzz id: 62547
492 datereported: 2023-09-22
493 reportedby: David Korczynski
494 vulnerability: Heap use after free
495 product: libdwarf
496 description: Calling dwarf_get_fde_for_die() causes the
497 problem as its special handling in a user calling
498 for fde destruction is wrong when dwarf_finish()
499 is calling for fde destruction.
500 dwarf_finish() can refer to freed memory
501 in trying to delete a CIE twice.
502 The use after free has a dependence on the order nodes are seen
503 in the de_alloc_tree tdestroy() walk of the table
504 (the order is not predictable).
505 Broken in release 0.8.0 and all previous releases.
506 datefixed: 2023-09-23
507 references: regressiontests/ossfuzz62547/fuzz_stack_frame_access-5263709637050368
508 gitfixid: cd741379bd0203a0875b413542d5f982606ae637
509 tarrelease: libdwarf-0.9.0.tar.xz
510 endrec: DW202309-001
511
512 id: DW202308-001
513 fuzzer: ossfuzz id: 59576
514 datereported: 2023-06-04
515 reportedby: David Korczynski
516 vulnerability: Read from outside frame section
517 product: libdwarf
518 description: A fuzzed object results in
519 reading outside a frame section due to a comparison
520 being > when it should have bin >= at about
521 line 1615 in dwarf_frame2.
522 Could result in crash or incorrect frame data returned.
523 Somehow we lost track of this open bug.
524 The bug has been in the code since the augmentation
525 was first implemented in the library.
526 datefixed: 2023-08-26
527 references: regressiontests/ossfuzz59576/fuzz_set_frame_all-5867083595120640
528 gitfixid: e53adc90ffd6d5d0fad61546b0041990aefd970b
529 tarrelease: libdwarf-0.8.0.tar.xz
530 endrec: DW202308-001
531
532 id: DW202307-001
533 fuzzer: ossfuzz id: 60506
534 datereported: 2023-07-09
535 reportedby: David Korczynski
536 vulnerability: Read from outside section
537 product: libdwarf
538 description: A fuzzed object results in
539 reading outside a line table due to a corruption
540 in a non-standard (experimental) line table format.
541 A corrupted offset was not checked for sanity.
542 The bug has been in the code since the experimental
543 line table support was added in 2015.
544 datefixed: 2023-07-11
545 references: regressiontests/ossfuzz60506/fuzz_srcfiles-6494439909228544.fuzz
546 gitfixid: c8c5073f35b1efdcc610ecf369c78f87fdd34714
547 tarrelease: libdwarf-0.8.0.tar.xz
548 endrec: DW202307-001
549
550 id: DW202306-011
551 fuzzer: ossfuzz id: 60090
552 datereported: 2023-06-24
553 reportedby: David Korczynski
554 vulnerability: Read from invalid memory address
555 product: libdwarf
556 description: A fuzzed object results in
557 an addition overflow in reading CIE data
558 leading to a read from an invalid address.
559 An almost-correct check for an overflow
560 in case of a fuzzed aug_irix_exception_table
561 augmentation leads to a crash.
562 The bug was incorrect coding of a test
563 (for an absurd value) written a few weeks ago.
564 datefixed: 2023-06-26
565 references: regressiontests/ossfuzz60090/fuzz_set_frame_all-5757752673435648
566 gitfixid: 6f75899f1f90fa87e52da0df09ddaa2e5be778f9
567 tarrelease: libdwarf-0.8.0.tar.xz
568 endrec: DW202306-011
569
570 id: DW202306-010
571 fuzzer: ossfuzz id: 59950
572 datereported: 2023-06-18
573 reportedby: David Korczynski
574 vulnerability:library reads outside frame section
575 product: libdwarf
576 description: A fuzzed object results in
577 adding a too large value (from CIE
578 frame augmentation data) to a pointer,
579 having failed to check the value for
580 reasonableness. That add overflows
581 so dereferencing the
582 pointer in dwarf_frame.c could lead to a crash
583 in the library or getting nonsense information
584 returned to the caller.
585 This bug has been present for many years.
586 datefixed: 2023-06-19
587 references: regressiontests/ossfuzz59950/fuzz_set_frame_all-6613067367317504
588 gitfixid: b7437c9e4923906e9b3f3860a0c8a8289cff0a91
589 tarrelease: libdwarf-0.8.0.tar.xz
590 endrec: DW202306-010
591
592 id: DW202306-009
593 fuzzer: ossfuzz id: 59775
594 datereported: 2023-06-11
595 reportedby: David Korczynski
596 vulnerability: Fuzzed object results in read past end of section.
597 product: libdwarf
598 description: A fuzzed object results in reading one byte
599 past the end of a .eh_frame section
600 in internal function _dwarf_read_loc_expr-op().
601 Now we check for that before we dereference a pointer
602 (to read the particular single-byte field).
603 datefixed: 2023-06-13
604 references: regressiontests/ossfuzz59775/fuzz_die_cu_attrs_loclist-4504718844755968
605 gitfixid: 9cae1be75ec333d2b8ab8800df4850ed77a8b025
606 tarrelease: libdwarf-0.8.0.tar.xz
607 endrec: DW202306-009
608
609 id: DW202306-008
610 fuzzer: ossfuzz id: 59699
611 datereported: 2023-06-08
612 reportedby: David Korczynski
613 vulnerability: Read past end of section
614 product: libdwarf
615 description: In reading a CIE prefix
616 of a fuzzed object we read past the end
617 of the section due to a failure
618 to check a byte pointer before we dereference it
619 in _dwarf_read_cie_fde_prefix().
620 datefixed: 2023-05-10
621 references: regressiontests/ossfuzz59699/fuzz_stack_frame_access-6523659305746432
622 gitfixid: c5b909630bb566cdbf68fae4091f049f3b22ff11
623 tarrelease: libdwarf-0.8.0.tar.xz
624 endrec: DW202306-008
625
626 id: DW202306-007
627 fuzzer: ossfuzz id: 59602
628 datereported: 2023-06-04
629 reportedby: David Korczynski
630 vulnerability: Buffer overflow read
631 product: libdwarf
632 description: In _dwarf_read_loc_expr_op()
633 we read one byte past available data
634 as the required check for past-end
635 was missing.
636 datefixed: 2023-06-10
637 references: regressiontests/ossfuzz59602/fuzz_die_cu_attrs_loclist-6737086749999104
638 gitfixid: c8c54ba5c79b0a2687f0fa2ac331479506c3210f
639 tarrelease: libdwarf-0.8.0.tar.xz
640 endrec: DW202306-007
641
642 id: DW202306-006
643 fuzzer: ossfuzz id: 59727
644 datereported: 2023-06-01
645 reportedby: David Korczynski
646 vulnerability: Integer Overflow
647 product: libdwarf
648 description: Integer Overflow in
649 _dwarf_exec_frame_instr() called by
650 dwarf_expand_frame_instructions.
651 We now check for overflows in add and
652 multiply here.
653 Similar to ossfuzz 59517
654 datefixed: 2023-06-08
655 references:
656 gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
657 tarrelease: libdwarf-0.8.0.tar.xz
658 endrec: DW202306-006
659
660 id: DW202306-005
661 fuzzer: ossfuzz id: 59717
662 datereported: 2023-06-01
663 reportedby: David Korczynski
664 vulnerability: Integer Overflow
665 product: libdwarf
666 description: Integer Overflow in
667 _dwarf_exec_frame_instr() called by
668 dwarf_expand_frame_instructions.
669 We now check for overflows in add and
670 multiply here.
671 Similar to ossfuzz 59517
672 datefixed: 2023-06-08
673 references:
674 gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
675 tarrelease: libdwarf-0.8.0.tar.xz
676 endrec: DW202306-005
677
678 id: DW202306-004
679 fuzzer: ossfuzz id: 59595
680 datereported: 2023-06-09
681 reportedby: shinibufa (github)
682 vulnerability: Signed Integer overflow
683 product: libdwarf
684 description: Signed Integer Overflow.
685 In _dwarf_exec_frame_instr(),
686 called by dwarf_expand_frame_instructions(),
687 there was a DW_CFA_LLVM_def_aspace_cfa_sf
688 and we failed to check for overflow.
689 The test case had a overflow.
690 Now we do that check.
691 datefixed: 2023-06-10
692 references: regressiontests/ossfuzz59595/fuzz_set_frame_all-5319697747542016
693 gitfixid: e8c726e2be644df2706342b7a80633d07ecd7fb4
694 tarrelease: libdwarf-0.8.0.tar.xz
695 endrec: DW202306-004
696
697 id: DW202306-003
698 fuzzer: shinibufa
699 datereported: 2023-06-09
700 reportedby: shinibufa (github)
701 vulnerability: use after free
702 product: libdwarf
703 description: Heap use-after-free dwarf_query.c
704 datefixed: 2023-05-19
705 references: regressiontests/shinibufa/fuzzed_input_file
706 gitfixid: 4017ab8b92195641e6876b388cebe2d3307634f5
707 tarrelease: libdwarf-0.7.0.tar.xz
708 endrec: DW202306-003
709
710 id: DW202306-002
711 fuzzer: ossfuzz id: 59519
712 datereported: 2023-06-01
713 reportedby: David Korczynski
714 vulnerability: Integer Overflow
715 product: libdwarf
716 description: Integer Overflow in
717 _dwarf_exec_frame_instr() called by
718 dwarf_expand_frame_instructions.
719 We now check for overflows in add and
720 multiply here.
721 Similar to ossfuzz 59517
722 datefixed: 2023-06-08
723 references: regressiontests/ossfuzz59519/fuzz_set_frame_all-4670829255065600
724 gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
725 tarrelease: libdwarf-0.8.0.tar.xz
726 endrec: DW202306-002
727
728 id: DW202306-001
729 fuzzer: ossfuzz id: 59517
730 datereported: 2023-06-01
731 reportedby: David Korczynski
732 vulnerability: Signed Integer Overflow
733 product: libdwarf
734 description: Nine different places in dwarf_frame.c
735 multiplied a factored value by a (usually) small integer
736 without checking if the factored value read from
737 the object could possibly be real. So the
738 factored value when multiplied by the factor
739 could overflow. In some of the cases the factored value
740 is signed, some it is unsigned.
741 This sanity checking of factored frame offset
742 values never existed before in the library.
743 datefixed: 2023-06-08
744 references: regressiontests/ossfuzz59517/fuzz_set_frame_all-5741671019839488
745 gitfixid: f664f93d456284130afbd3c2e35b39e5f2740366
746 tarrelease: libdwarf-0.8.0.tar.xz
747 endrec: DW202306-001
748
749 id: DW202305-010
750 fuzzer: ossfuzz id: 59478
751 datereported: 2023-05-31
752 reportedby: David Korczynski
753 vulnerability: Memory leak in dwarf_expand_frame_instructions()
754 product: libdwarf
755 description: Fuzzing provoked one of four error cases that
756 could leak locally allocated memory from _dwarf_exec_frame_instructor()
757 (called by dwarf_expand_frame_instructions).
758 The code did free(localregtab) but
759 needed to do FREELOCALMALLOC, a macro specific
760 to this function which cleans up all local allocations.
761 All four places have been corrected.
762 Called enough times with fuzzed data could result
763 in filling memory leading to the library being unable
764 to work for the caller and instead just returning errors.
765 This bug has been present in the code for many years.
766 datefixed: 2023-05-31
767 references: regressiontests/ossfuzz59478/fuzz_set_frame_all-5300774457180160
768 gitfixid: 8ef9c8fb613e59f534e789e91a73088eaa5b8a5a
769 tarrelease: libdwarf-0.8.0.tar.xz
770 endrec: DW202305-010
771
772 id: DW202305-009
773 fuzzer: ossfuzz id: 56451
774 datereported: 2023-02-28
775 reportedby: David Korczynski
776 vulnerability: Write to memory fails
777 product: libdwarf
778 description: One problem is a bug in the test source:
779 fuzz/fuzz_dnames.c. It calls dwarf_dnames_abbrevtable()
780 incorrectly. The caller is required to provide arrays
781 dw_idxattr_array and dw_form_array and pass a pointer to such.
782 The code was just passing in a pointer to nothing.
783 The library code has no possible way to determine the passed
784 in pointers are usable.
785 In addition, dwarf_dnames_abbrevtable() did not
786 check that pointers passed in were non-null before
787 use, but now it does.
788 datefixed: 2023-05-30
789 references: regressiontests/ossfuzz56451/fuzz_dnames-4986494365597696
790 gitfixid: 12a612fc8db38fc26cd5e6064f09a6f825891c7c
791 tarrelease: libdwarf-0.8.0.tar.xz
792 endrec: DW202305-009
793
794 id: DW202305-008
795 fuzzer: ossfuzz id: 56492
796 datereported: 2023-02-28
797 reportedby: David Korczynski
798 vulnerability: Timeout (exceeds 50 seconds)
799 product: fuzz testing
800 description: The problem is a bug in the test source:
801 fuzz/fuzz_macro_dwarf5.c. One must not blame the
802 fuzzer author for examplep5(),
803 the code was based on doc/checkexamples.c
804 and there examplep() was really just a sketch.
805 The testcase here no longer specifies an infinite loop.
806 datefixed: 2023-05-23
807 references: regressiontests/ossfuzz56492/fuzz_macro_dwarf5-6497277180248064
808 gitfixid: 97a78122268c9a74701f2dd3115f902309e9a484
809 tarrelease: libdwarf-0.8.0.tar.xz
810 endrec: DW202305-008
811
812 id: DW202305-007
813 fuzzer: ossfuzz id: 56474
814 datereported: 2023-02-28
815 reportedby: David Korczynski
816 vulnerability: Null pointer dereference.
817 product: libdwarf
818 description: Calling dwarf_highpc_b() lead to crash.
819 The function was dereferencing an argument before
820 the argument was checked. Now it is checked
821 for null before any dereference.
822
823 In addition, the test code, fuzz/fuzz_die_cu_attrs_loclist.c,
824 called dwarf_highpc_b() with a Dwarf_Die that is
825 uninitialized local variable (hence contents unpredictable).
826 C code has no way to catch such a caller error.
827 This is a bug in the test code.
828 We are changed the test code local data pointer variable
829 to be initialized with the value 0.
830 datefixed: 2023-05-23
831 references: regressiontests/ossfuzz56474/fuzz_die_cu_attrs_loclist-4719938125561856
832 gitfixid: b3df2530732ea515cda5a85438871e15c6723ead
833 tarrelease: libdwarf-0.8.0.tar.xz
834 endrec: DW202305-007
835
836 id: DW202305-006
837 fuzzer: ossfuzz id: 56472
838 datereported: 2023-02-27
839 reportedby: David Korczynski
840 vulnerability: Crash on null pointer argument.
841 product: libdwarf
842 description: A call to any dwarf_get_fission
843 or any API entry with _xu_ in the name
844 (functions for DWARF5 Debug Fission, called Split Dwarf
845 in DWARF5) would crash the caller if any relevant argument
846 was null. The problem has existed since the code
847 was written in 2021.
848 Once that is fixed valgrind complains about using
849 an uninitialized value.
850 fuzz/fuzz_simplereader_tu.c calls libdwarf with
851 the declation being Dwarf_Die die; no initializer
852 present. Bad behavior, even a library crash is
853 likely.
854 datefixed: 2023-05-30
855 references: regressiontests/ossfuzz56472/fuzz_simplereader_tu-6614412934119424
856 gitfixid: 8b17d41a31c33e0b3b9727a8044e0093a754d6d7
857 tarrelease: libdwarf-0.8.0.tar.xz
858 endrec: DW202305-006
859
860 id: DW202305-005
861 cve:
862 fuzzer: ossfuzz id: 56462
863 datereported: 2023-02-28
864 reportedby: David Korczynski
865 vulnerability: Unpredictable crash or erroneous data returned
866 product: libdwarf
867 description: A call to dwarf_set_frame_undefined_value()
868 dwarf_set_frame_rule_initial_value() dwarf_set_frame_same_value()
869 dwarf_set_frame_cfa_value() dwarf_set_frame_rule_table_size()
870 with unusable values was not being caught.
871 Now if the set of values violates the required
872 relationships an error is returned on requesting
873 actual frame data.
874 The problem has existed for many years (fixed May 23).
875 Once that is fixed valgrind shows leaks. That is because
876 fuzz/fuzz_set_frame_all.c fails to call dwarf_finish() and,
877 instead, simple exit()s at several places. Updated the
878 test source to return from its functions and only
879 exit() from main() after the dwarf_finish() call.
880 datefixed: 2023-05-30
881 references: regressiontests/ossfuzz56462/fuzz_set_frame_all-5424385441005568
882 gitfixid: 21b33d13024d18b09e32914ca5718a5c81d1ad67
883 tarrelease: libdwarf-0.8.0.tar.xz
884 endrec: DW202305-005
885
886 id: DW202305-004
887 cve:
888 fuzzer: ossfuzz id: 56446
889 datereported: 2023-02-28
890 reportedby: David Korczynski
891 vulnerability: Incorrect section bound check
892 product: libdwarf test code
893 description: The test program fuzz_dnames.c passed
894 a non-null pointer containing garbage content.
895 The fix is to initialize (in fuzz_dnames.c)
896 the local variable to null (0).
897 datefixed: 2023-05-23
898 references: regressiontests/ossfuzz56446/fuzz_dnames-4784811358420992
899 gitfixid: 6fac1021c67d72da6b65f99ad815978d40b4c1e8
900 tarrelease: libdwarf-0.8.0.tar.xz
901 endrec: DW202305-004
902
903 id: DW202305-003
904 cve:
905 fuzzer: ossfuzz id: 59091
906 datereported: 2023-05-19
907 reportedby: David Korczynski
908 vulnerability: Incorrect section bound check
909 product: libdwarf
910 description: A fuzzed line table in the non-standard
911 (experimental) two-level line table format
912 exposed a failure as the test was v > sectionend
913 whereas it has to be v >= sectionend as end pointers
914 are always one-past the end of the area.
915 This was incorrect since the experimental table support
916 was added in 2021.
917 datefixed: 2023-05-19
918 references: regressiontests/ossfuzz59091/fuzz_macro_dwarf5-5135813562990592
919 gitfixid: 4017ab8b92195641e6876b388cebe2d3307634f5
920 tarrelease: libdwarf-0.7.0.tar.xz
921 endrec: DW202305-003
922
923 id: DW202305-002
924 cve:
925 fuzzer: ossfuzz id: 58797
926 datereported: 2023-05-10
927 reportedby: David Korczynski
928 vulnerability: Memory Leak reading experimental line table
929 product: libdwarf
930 description: A fuzzed line table in the non-standard
931 (experimental) two-level line table format had
932 several unchecked values and one was larger than
933 made any sense, and detecting the error revealed
934 a memory leak. Caused by the incomplete fix to
935 DW202305-001 (yesterday).
936 This is was a failure to run some crucial tests,
937 which would have exposed the problem before
938 DW202305-001 was completed. Incomplete testing.
939 datefixed: 2023-05-10
940 references: regressiontests/ossfuzz58797/fuzz_macro_dwarf5-4872686367801344
941 gitfixid: eeb935200f78b8509e6b1837f6825b9d551b9f7d
942 tarrelease: libdwarf-0.7.0.tar.xz
943 endrec: DW202305-002
944
945 id: DW202305-001
946 cve:
947 fuzzer: ossfuzz id: 58769
948 datereported: 2023-05-09
949 reportedby: David Korczynski
950 vulnerability: Excessive malloc reading experimental line table
951 product: libdwarf
952 description: A fuzzed line table in the non-standard
953 (experimental) two-level line table format had
954 several unchecked values and one was larger than
955 made any sense.
956 The failure was due to oss-fuzz limiting malloc to 3GB.
957 The failure was appropriate as the fuzzed values were
958 inappropriate. We now check for sensible values.
959 See libdwarf/dwarf_line_table_reader_common.h
960 The code was in libdwarf starting in 2021.
961 datefixed: 2023-05-09
962 references: regressiontests/ossfuzz58769/fuzz_macro_dwarf5-5460713058205696
963 gitfixid: edc241bd0bf22c94d2d496f3cb761e60f066cd14
964 tarrelease: libdwarf-0.7.0.tar.xz
965 endrec: DW202305-001
966
967 id: DW202304-004
968 cve:
969 fuzzer: ossfuzz id: 58026
970 datereported: 2023-04-15
971 reportedby: David Korczynski
972 vulnerability: Segv on unknown address reading frame data.
973 product: libdwarf
974 description: On reading a corrupt frame register number
975 the library could crash with a segmentation violation.
976 This bug has been present in the code for 25 years.
977 The conversion of an impossibly large
978 (carefully constructed) register number
979 to a Dwarf_Half or unsigned int the result looked
980 reasonable, invalidating some tests for
981 reasonableness. Now we do all the tests
982 on the full Dwarf_Unsigned register number(s)
983 and retain the value in the long form everywhere.
984 Fixed 2023-04-15.
985 Once that is fixed there is still a leak found by valgrind.
986 Tht test code fuzz/fuzz_set_frame_all.c does a local
987 malloc and in some cases returned without free-ing it
988 locally. Now that local malloc has the necessary
989 local free.
990 datefixed: 2023-05-30
991 references: regressiontests/ossfuzz58026/fuzz_set_frame_all-4582976972521472.fuzz
992 gitfixid: 21b33d13024d18b09e32914ca5718a5c81d1ad67
993 tarrelease: libdwarf-0.8.0.tar.xz
994 endrec: DW202304-004
995
996 id: DW202304-003
997 cve:
998 fuzzer: ossfuzz id: 57887
999 datereported: 2023-04-10
1000 reportedby: David Korczynski
1001 vulnerability: Reading outside the intended section data.
1002 product: libdwarf
1003 description: Crash in libdwarf on reading
1004 .debug_addr given a bogus index entry.
1005 Due to failing to correctly check that the index is
1006 out of range.
1007 The index was close to overflowing Dwarf_Unsigned
1008 so testing values *after* arithmetic done on the
1009 incoming index was too late:
1010 so we read outside the .debug_addr table.
1011 The checks have been incomplete since this DWARF5 section
1012 code was written. libdwarf/dwarf_query.c
1013 datefixed: 2023-04-11
1014 references: regressiontests/ossfuzz57887/fuzz_die_cu-4866423964172288
1015 gitfixid: 1729d9af3f690bece912ae0f625b312566d0ae25
1016 tarrelease: libdwarf-0.7.0.tar.xz
1017 endrec: DW202304-003
1018
1019 id: DW202304-002
1020 cve:
1021 fuzzer: ossfuzz id: 57766
1022 datereported: 2023-04-07
1023 reportedby: David Korczynski
1024 vulnerability: Heap Buffer Overflow
1025 product: libdwarf
1026 description: Crash in libdwarf on reading an attribute
1027 due to failing to check that an index into .debug_str_offsets
1028 is sane. So we read far outside the relevant table.
1029 The checks have been incomplete since this DWARF5 section
1030 code was written. Two functions in libdwarf
1031 dwarf_form.c had the same problem.
1032 datefixed: 2023-04-09
1033 references: regressiontests/ossfuzz57766/fuzz_die_cu_print-5295062170075136
1034 gitfixid: 761da806fc950c6b26c1763e8989a814e9b16a59
1035 tarrelease: libdwarf-0.7.0.tar.xz
1036 endrec: DW202304-002
1037
1038 id: DW202304-001
1039 cve:
1040 fuzzer: ossfuzz id: 57711
1041 datereported: 2023-04-04
1042 reportedby: David Korczynski
1043 vulnerability: dereference null pointer
1044 product: libdwarf
1045 description: Crash in libdwarf on dwarf_srcfiles() call.
1046 A dereference off a null pointer due to corrupt
1047 file numbers not being noticed. Any such crash left an
1048 incomplete and misleading stack trace.
1049 The large numbers treated as Dwarf_Signed were part of the problem.
1050 Now in libdwarf we check Dwarf_Signed for negative values and issue
1051 an error if the value less than 0. So later casts to
1052 Dwarf_Unsigned work as intended.
1053 The libdwarf problems have been in the library for a very
1054 long time.
1055 datefixed: 2023-04-06
1056 references: regressiontests/ossfuzz57711/fuzz_srcfiles-4695324781576192
1057 gitfixid: da0d1efbeddcff23c25704bd9672e98314928b19
1058 tarrelease: libdwarf-0.7.0.tar.xz
1059 endrec: DW202304-001
1060
1061 id: DW202303-059
1062 cve:
1063 fuzzer: ossfuzz id: 57562
1064 datereported: 2023-03-30
1065 reportedby: David Korczynski
1066 vulnerability: Infinite loop reading DIEs
1067 product: libdwarf
1068 description: Caller looping on dwarf_siblingof_b()
1069 (wanting to touch all siblings)
1070 could be put in an infinite loop.
1071 A DW_AT_sibling attribute with a corrupted
1072 attribute value meant the caller never sees
1073 the DW_DLV_NO_ENTRY return signalling all siblings
1074 have been seen.
1075 datefixed: 2023-04-01
1076 references: regressiontests/ossfuzz57562/fuzz_findfuncbypc-6681114772373504
1077 gitfixid: 21b076f652992c03f145f6edeb623918e17693f8
1078 tarrelease: libdwarf-0.7.0.tar.xz
1079 endrec: DW202303-059
1080
1081 id: DW202303-058
1082 cve:
1083 fuzzer: ossfuzz id: 57527
1084 datereported: 2023-03-29
1085 reportedby: David Korczynski
1086 vulnerability: reading off end of valid data can crash library
1087 product: libdwarf
1088 description: A line table header truncated by a fuzzer
1089 to just the right length (anywhere within a 12 byte area)
1090 would cause memory references outside of valid data.
1091 Now we check there is object data present
1092 before referring to that area and if not, return
1093 an error.
1094 datefixed: 2023-03-30
1095 references: regressiontests/ossfuzz57527/fuzz_srcfiles-4599045397282816
1096 gitfixid: 36e4063ade31c9ea6ea5df973d2045b36877885b
1097 tarrelease: libdwarf-0.7.0.tar.xz
1098 endrec: DW202303-058
1099
1100 id: DW202303-057
1101 cve:
1102 fuzzer:
1103 datereported: 2023-03-26
1104 reportedby: Pedro Navarro
1105 vulnerability: Unable to read large object sections
1106 product: libdwarf
1107 description: A section 2GB+ in size could not be
1108 read by libdwarf. Such is a Denial of Service.
1109 Simply turning the big read
1110 into however many are needed (each below 2GB)
1111 was simple to do. The limitation in the 'read'
1112 libc function (really a Linux kernel
1113 limitation) is well documented but
1114 we had not noticed before now.
1115 Few object files are so large.
1116 datefixed: 2023-03-28
1117 references:
1118 gitfixid: 8bf96199a0e130483cceca6bfacfbe4127441ab1
1119 tarrelease: libdwarf-0.7.0.tar.xz
1120 endrec: DW202303-057
1121
1122 id: DW202303-056
1123 cve:
1124 fuzzer: ossfuzz id: 57516
1125 datereported: 2023-03-28
1126 reportedby: David Korczynski
1127 vulnerability: Null dereference in dwarf_hasattr()
1128 product: libdwarf
1129 description: With a corrupted attribute
1130 dwarf_hasattr() could try to access
1131 an implicit_const abbrev value indexing
1132 off of a NULL library internal pointer.
1133
1134 Because the abbrev section had no actual implicit
1135 const value due to the corruption, so the internal
1136 array for holding such was not present.
1137 The pointer abl_implicit_const was NULL.
1138 Now we test the pointer for NULL and if NULL
1139 report an error.
1140 This lack of a NULL check has existed
1141 for many years.
1142 datefixed: 2023-03-29
1143 references: regressiontests/ossfuzz57516/fuzz_die_cu_attrs-6171488289161216
1144 gitfixid: 5dc3de5ce70331692a2700b218fb79e0d4d81c23
1145 tarrelease: libdwarf-0.7.0.tar.xz
1146 endrec: DW202303-056
1147
1148 id: DW202303-055
1149 cve:
1150 fuzzer: ossfuzz id: 57485
1151 datereported: 2023-03-27
1152 reportedby: David Korczynski
1153 vulnerability:
1154 product: None, test code bug
1155 description: Abort in fuzz_die_cu_attrs.c
1156 The fault was in test code.
1157 Since fixed (earlier today). No code change here.
1158 datefixed: 2023-03-28
1159 references: regressiontests/ossfuzz57485/
1160 gitfixid: 2b19bc239f3cedd1b2461e4265d90633277ce704
1161 tarrelease: libdwarf-0.7.0.tar.xz
1162 endrec: DW202303-055
1163
1164 id: DW202303-054
1165 cve:
1166 fuzzer: ossfuzz id: 57463
1167 datereported: 2023-03-24
1168 reportedby: David Korczynski
1169 vulnerability: dereference null in test code
1170 product: none, test code bug
1171 description: The fault was in test code.
1172 fuzz_die_cu_attrs.c
1173 Since fixed (earlier today). No code change here.
1174 datefixed: 2023-03-24
1175 references: regressiontests/ossfuzz57463/fuzz_die_cu_attrs-5158380196200448
1176 gitfixid: e4053c9a0f25db0bed28372d9b77a50a0307dc10
1177 tarrelease: libdwarf-0.7.0.tar.xz
1178 endrec: DW202303-054
1179
1180 id: DW202303-053
1181 cve:
1182 fuzzer: ossfuzz id: 57443
1183 datereported: 2023-03-24
1184 reportedby: David Korczynski
1185 vulnerability: Double free in _dwarf_read_line_table_header
1186 product: libdwarf
1187 description: The same bug seen earlier
1188 A double free when a particular error is
1189 in the line table header.
1190 Fixed already.
1191 gitfixid is more recent than truly required.
1192 datefixed: 2023-03-28
1193 references: regressiontests/ossfuzz57443/fuzz_srcfiles-6015429578719232
1194 gitfixid: c25a14c3fd5522aff0b1d2a77d7ee66b7c529779
1195 tarrelease: libdwarf-0.7.0.tar.xz
1196 endrec: DW202303-053
1197
1198 id: DW202303-052
1199 cve:
1200 fuzzer: ossfuzz id: 57442
1201 datereported: 2023-03-24
1202 reportedby: David Korczynski
1203 vulnerability: Heap buffer overflow
1204 product: libdwarf
1205 description: Corrupt .debug_rngslists leads to crash
1206 when a rnglists header has a length indicating
1207 a longer section than we really have.
1208 Now we check more carefully for that situation.
1209 The bug existed from 2017, when DWARF5 support
1210 was added to the library.
1211 datefixed: 2023-03-28
1212 references: regressiontests/ossfuzz57442/fuzz_rng-5974595378479104
1213 gitfixid: 271b9b8367a8151fcd98723d73382ec56f05c810
1214 tarrelease: libdwarf-0.7.0.tar.xz
1215 endrec: DW202303-052
1216
1217 id: DW202303-051
1218 cve:
1219 fuzzer: ossfuzz id: 57437
1220 datereported: 2023-03-24
1221 reportedby: David Korczynski
1222 vulnerability: Heap double free
1223 product: libdwarf
1224 description: In a specific error case
1225 reading a fuzzed object and calling
1226 dwarf_srcfiles local data was
1227 freed twice. The bug was
1228 fixed earlier, and involved
1229 src/lib/libdwarf/dwarf_line_table_reader_common.h.
1230 datefixed: 2023-03-28
1231 references: regressiontests/ossfuzz57437/fuzz_srcfiles-5281689109921792
1232 gitfixid: c25a14c3fd5522aff0b1d2a77d7ee66b7c529779
1233 tarrelease: libdwarf-0.7.0.tar.xz
1234 endrec: DW202303-051
1235
1236 id: DW202303-050
1237 cve:
1238 fuzzer: ossfuzz id: 57429
1239 datereported: 2023-03-24
1240 reportedby: David Korczynski
1241 vulnerability: invalid free() in test source
1242 product: libdwarf
1243 description: The test source violates libdwarf requirements.
1244 fuzz/fuzz_die_cu_attrs.c was doing free on a name pointer
1245 returned from dwarf_diename. The documentation clearly
1246 states that pointer should not have a free() done.
1247 fix id below is fixing the test source.
1248 datefixed: 3023-03-28
1249 references: regressiontests/ossfuzz57429/fuzz_die_cu_attrs-4845537731149824
1250 gitfixid: 2b19bc239f3cedd1b2461e4265d90633277ce704
1251 tarrelease: libdwarf-0.7.0.tar.xz
1252 endrec: DW202303-050
1253
1254 id: DW202303-049
1255 cve:
1256 fuzzer: ossfuzz id: 57408
1257 datereported: 2023-03-24
1258 reportedby: David Korczynski
1259 vulnerability: Stack Overflow, _dwarf_create_a_new_cu_context...
1260 product: libdwarf
1261 description: involves find_sig8_target_as_global_offset()
1262 and is the same problem as seen in other guises earlier.
1263 The case becomes an infinite loop, so eventually the
1264 stack gets exhausted. Fixed.
1265 See also ossfuzz id 56540. ossfuzz id 56487. ossfuzz id 56497.
1266 ossfuzz 57480
1267 datefixed: 2023-03-26
1268 references: regressiontests/ossfuzz57408/fuzz_die_cu-4702098356043776
1269 gitfixid: 24f5697aecd77092de20f0f7e7d91fbc1f2b3da0
1270 tarrelease: libdwarf-0.7.0.tar.xz
1271 endrec: DW202303-049
1272
1273 id: DW202303-048
1274 cve:
1275 fuzzer: ossfuzz
1276 datereported: 2023-03-08
1277 reportedby: Youngseok Choi
1278 vulnerability: Memory leak (was double free).
1279 product: dwarfdump
1280 description: The command:
1281 dwarfdump --file-name=<file> -kG -ka <objectfile>
1282 results in a a memory leak.
1283 In certain error cases we failed to fclose()
1284 a FILE * used to read dwarfdump.conf.
1285 Earlier changes fixed the double free, this
1286 fixes the memory leak..
1287 datefixed: 2023-03-24
1288 references: regressiontests/choi015/poc_file_03
1289 gitfixid: 24f5697aecd77092de20f0f7e7d91fbc1f2b3da0
1290 tarrelease: libdwarf-0.7.0.tar.xz
1291 endrec: DW202303-048
1292
1293 id: DW202303-047
1294 cve:
1295 fuzzer: ossfuzz
1296 datereported: 2023-03-08
1297 reportedby: Youngseok Choi
1298 vulnerability: Double Free
1299 product: dwarfdump
1300 description: The command:
1301 dwarfdump --check-unique --check-abbrev
1302 results in a double free.
1303 The table of unique errors contained
1304 makename() data, so that aspect caused
1305 a double free as makename gets destructed
1306 independently. Fixed now,letting makename
1307 destructor do the work.
1308 datefixed: 2023-03-24
1309 references: regressiontests/choi015/poc_file_04
1310 gitfixid: df64db4740f1b480e602b1112107d51f0d269828
1311 tarrelease: libdwarf-0.7.0.tar.xz
1312 endrec: DW202303-047
1313
1314 id: DW202303-046
1315 cve:
1316 fuzzer: ossfuzz
1317 datereported: 2023-03-08
1318 reportedby: Youngseok Choi
1319 vulnerability: global buffer overflow
1320 product: dwarfdump
1321 description: The command:
1322 dwarfdump --search-regex=t[Ä…--]e
1323 Note the non-ascii character.
1324 The dwarfdump regex only allows ascii
1325 in search patterns, not the rest of UTF-8.
1326 datefixed: 2023-03-26
1327 references: regressiontests/choi012/poc_file_10
1328 gitfixid: 9eac0c8bbae3fadb2be3d5ee15b9c44f42d2f966
1329 tarrelease: libdwarf-0.7.0.tar.xz
1330 endrec: DW202303-046
1331
1332 id: DW202303-045
1333 cve:
1334 fuzzer: ossfuzz
1335 datereported: 2023-03-08
1336 reportedby: Youngseok Choi
1337 vulnerability: Heap buffer overflow, regex
1338 product: dwarfdump
1339 description: The command:
1340 dwarfdump --search-regex=
1341 with a simple, really long, string.
1342 (with no file named)
1343 resulted in a buffer overflow in a buffer
1344 in dd_regex.c.
1345 No object file is required for the test.
1346 The code now checks stores to the internal array
1347 holding the non-deterministic finite automata (nfa)
1348 datefixed: 2023-03-25
1349 references: regressiontests/baselines/choi014.base
1350 gitfixid: bb8fab9e5e4e40b1268b31d90882c2ab93653eaf
1351 tarrelease: libdwarf-0.7.0.tar.xz
1352 endrec: DW202303-045
1353
1354 id: DW202303-044
1355 cve:
1356 fuzzer: ossfuzz
1357 datereported: 2023-03-08
1358 reportedby: Youngseok Choi
1359 vulnerability: Heap buffer overflow
1360 product: dwarfdump
1361 description: The command:
1362 dwarfdump --search-regex=\\
1363 (with no file named)
1364 resulted in a heap use after free.
1365 No object file is required for the test.
1366 The dd_regex.c regex compiler failed
1367 to notice when a trailing backslash
1368 caused the pattern compiler to step
1369 past the pattern string.
1370 Now we notice and issue an error.
1371 datefixed: 2023-03-25
1372 references: regressiontests/baselines/choi013.base
1373 gitfixid: 3269f43d2a044bfcce71d30ce214a305473d1ea3
1374 tarrelease: libdwarf-0.7.0.tar.xz
1375 endrec: DW202303-044
1376
1377 id: DW202303-043
1378 cve:
1379 fuzzer: ossfuzz
1380 datereported: 2023-03-08
1381 reportedby: Youngseok Choi
1382 vulnerability: Heap Use After Free
1383 product: libdwarf
1384 description: The command:
1385 dwarfdump choi012/poc_file_08
1386 was resulting in a heap use after free.
1387 It no longer does, due to earlier
1388 libdwarf fixes.
1389 datefixed: 2023-03-25
1390 references: regressiontests/choi012/poc_file_08
1391 gitfixid: 4a8a201cdb3408a2cfdc2946418b51b884140a2c
1392 tarrelease: libdwarf-0.7.0.tar.xz
1393 endrec: DW202303-043
1394
1395 id: DW202303-042
1396 cve:
1397 fuzzer: ossfuzz
1398 datereported: 2023-03-08
1399 reportedby: Youngseok Choi
1400 vulnerability: Memory Leak
1401 product: dwarfdump
1402 description: The command:
1403 dwarfdump --check-all choi012/poc_file_07
1404 leaked memory in dwarfdump.
1405 A single instance of print_error_and_continue()
1406 failed to return DW_DLV_ERROR when libdwarf
1407 reported an error.
1408 Before recent fixes to libdwarf this would
1409 also generate heap-use-after-free.
1410 datefixed: 2023-03-25
1411 references: regressiontests/choi012/poc_file_07
1412 gitfixid: 4a8a201cdb3408a2cfdc2946418b51b884140a2c
1413 tarrelease: libdwarf-0.7.0.tar.xz
1414 endrec: DW202303-042
1415
1416 id: DW202303-041
1417 cve:
1418 fuzzer: ossfuzz
1419 datereported: 2023-03-08
1420 reportedby: Youngseok Choi
1421 vulnerability: Heap Use after Free
1422 product: dwarfdump
1423 description: The command:
1424 dwarfdump --check-frame-extended choi012/poc_file_06
1425 is now working, apparently fixed by earlier
1426 bug fixes in libdwarf.
1427 datefixed: 2023-03-25
1428 references: regressiontests/choi012/poc_file_06
1429 gitfixid: fd92b647e5e3a524be94b3b06c9efd14a8292946
1430 tarrelease: libdwarf-0.7.0.tar.xz
1431 endrec: DW202303-041
1432
1433 id: DW202303-040
1434 cve:
1435 fuzzer: ossfuzz
1436 datereported: 2023-03-07
1437 reportedby: Youngseok Choi
1438 vulnerability: Reading from zero page
1439 product: dwarfdump
1440 description: The command: dwarfdump --file-abi=
1441 causes big problems. Denial of service.
1442 For many of such commands with an '=' and nothing
1443 following the
1444 dwoptarg variable is not set at all, leading
1445 to a segmentation violation.
1446 datefixed: 2023-03-25
1447 references: regressiontests/choi011/README
1448 gitfixid: fd92b647e5e3a524be94b3b06c9efd14a8292946
1449 tarrelease: libdwarf-0.7.0.tar.xz
1450 endrec: DW202303-040
1451
1452 id: DW202303-039
1453 cve:
1454 fuzzer: ossfuzz id: 56480
1455 datereported: 2023-02-28
1456 reportedby: David Korczynski
1457 vulnerability: Reading a compilation unit never finishes
1458 product: libdwarf
1459 description: Reading a DWARF compilation unit header
1460 in a corrupted object
1461 caused an infinite loop of repeated calls (growing the stack
1462 at each call) in libdwarf. Now the library properly reflects
1463 a NO ENTRY case avoiding the loop and the test case returns
1464 an unrelated error due to other corruption.
1465 Arguably the loop was due to corruption too, but it should
1466 not have gotten stuck in the loop (and now it will not
1467 get stuck).
1468 See also ossfuzz id 56540. ossfuzz id 56487. ossfuzz id 56497.
1469 ossfuzz 57408
1470 datefixed: 2023-03-20
1471 references: regressiontests/ossfuzz56480/fuzz_die_cu_print-5264022485467136
1472 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1473 tarrelease: libdwarf-0.7.0.tar.xz
1474 endrec: DW202303-039
1475
1476 id: DW202303-038
1477 cve:
1478 fuzzer: ossfuzz id: 57335
1479 datereported: 2023-03-22
1480 reportedby: David Korczynski
1481 vulnerability: Null dereference in dwarf_hasform()
1482 product: libdwarf
1483 description: Passing a null dw_return_bool pointer dereferenced
1484 zero, but now, instead we return DW_DLV_ERROR with error code
1485 DW_DLE_INVALID_NULL_ARGUMENT
1486 The test driver fuzz_die_cu_attrs.c passed in a NULL
1487 argument (the test was not modified except for adding
1488 a comment) but libdwarf now checks for a null argument.
1489 datefixed: 2023-03-24
1490 references: regressiontests/ossfuzz57335/fuzz_die_cu_attrs-6235345560928256.fuzz
1491 gitfixid: e4053c9a0f25db0bed28372d9b77a50a0307dc10
1492 tarrelease: libdwarf-0.7.0.tar.xz
1493 endrec: DW202303-038
1494
1495 id: DW202303-037
1496 cve:
1497 fuzzer: ossfuzz id: 57300
1498 datereported: 2023-03-21
1499 reportedby: David Korczynski
1500 vulnerability: Out of Memory
1501 product: libdwarf
1502 description: Another case of the infinite loop
1503 due to _dwarf_find_CU_Context_given_sig().
1504 See DW202303-034 57193 and others listed here.
1505 datefixed: 2023-03-24
1506 references: regressiontests/ossfuzz57300/fuzz_die_cu-4752724662288384
1507 gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
1508 tarrelease: libdwarf-0.7.0.tar.xz
1509 endrec: DW202303-037
1510
1511 id: DW202303-036
1512 cve:
1513 fuzzer: ossfuzz id: 57300
1514 datereported: 2023-03-15
1515 reportedby: David Korczynski
1516 vulnerability: Out of Memory
1517 product: libdwarf
1518 description: Another case of the infinite loop
1519 due to _dwarf_find_CU_Context_given_sig().
1520 See DW202303-034 57193
1521 See DW202303-034 57149
1522 See DW202303-034 57193
1523 See DW202303-034 57292
1524 datefixed: 2023-03-24
1525 references: regressiontests/ossfuzz57300/fuzz_die_cu-4752724662288384
1526 gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
1527 tarrelease: libdwarf-0.7.0.tar.xz
1528 endrec: DW202303-036
1529
1530 id: DW202303-035
1531 cve:
1532 fuzzer: ossfuzz id: 57292
1533 datereported: 2023-03-15
1534 reportedby: David Korczynski
1535 vulnerability: Out of Memory
1536 product: libdwarf
1537 description: Another case of the infinite loop
1538 due to _dwarf_find_CU_Context_given_sig().
1539 See DW202303-034 57193 and others listed here.
1540 datefixed: 2023-03-24
1541 references: regressiontests/ossfuzz57292/fuzz_die_cu_print-5412313393135616
1542 gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
1543 tarrelease: libdwarf-0.7.0.tar.xz
1544 endrec: DW202303-035
1545
1546 id: DW202303-034
1547 cve:
1548 fuzzer: ossfuzz id: 57193
1549 datereported: 2023-03-15
1550 reportedby: David Korczynski
1551 vulnerability: Infinite loop till out of memory.
1552 product: libdwarf
1553 description: The infinite loop reading a fuzzed object file
1554 was caused by letting internal function
1555 _dwarf_find_CU_Context_given_sig()
1556 unconditionally do too much in the middle
1557 of setting up a CU_Context (by letting
1558 it start more CU_contexts().
1559 The implicit infinite loop has been there
1560 a few years, depending on the correctness
1561 of object files DWARF4/DWARF5 being read.
1562 Same bug as ossfuzz 57107, ossfuzz 57149.
1563 datefixed: 2023-03-24
1564 references: regressiontests/ossfuzz57193/fuzz_die_cu_offset-5215024489824256
1565 gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
1566 tarrelease: libdwarf-0.7.0.tar.xz
1567 endrec: DW202303-034
1568
1569 id: DW202303-033
1570 cve:
1571 fuzzer: ossfuzz id: 57149
1572 datereported: 2023-03-15
1573 reportedby: David Korczynski
1574 vulnerability: Stack overflow
1575 product: libdwarf
1576 description: Infinite loop till out of memory
1577 Similar to 57107 DW202303-032 but revealed
1578 there were more places in find_cu_die_base_fields that
1579 needed to call the internal _dwarf_internal_global_formref_b()
1580 function.
1581 The bug was present since 2017, when DWARF5 support for
1582 new 'base' fields was created.
1583 datefixed: 2023-03-24
1584 references: regressiontests/ossfuzz57149/fuzz_srcfiles-6213793811398656
1585 gitfixid: 7165918c8594061c3f5ba7dd4df7c4555c68ec78
1586 tarrelease: libdwarf-0.7.0.tar.xz
1587 endrec: DW202303-033
1588
1589 id: DW202303-032
1590 cve:
1591 fuzzer: ossfuzz id: 57107
1592 datereported: 2023-03-14
1593 reportedby: David Korczynski
1594 vulnerability: Infinite loop till out of memory.
1595 product: libdwarf
1596 description: The infinite loop reading a fuzzed object file
1597 was caused by letting internal function
1598 _dwarf_find_CU_Context_given_sig()
1599 unconditionally do too much in the middle
1600 of setting up a CU_Context (by letting
1601 it start more CU_contexts().
1602 The implicit infinite loop has been there
1603 a few years, depending on the correctness
1604 of object files DWARF4/DWARF5 being read.
1605 datefixed: 2023-03-23
1606 references: regressiontests/ossfuzz57107/fuzz_die_cu_attrs_loclist-4991396240293888
1607 gitfixid: 0c92ef5b66c5bbcacae03fbf355b12713151c098
1608 tarrelease: libdwarf-0.7.0.tar.xz
1609 endrec: DW202303-032
1610
1611 id: DW202303-031
1612 cve:
1613 fuzzer: ossfuzz id: 57048
1614 datereported: 2023-03-14
1615 reportedby: David Korczynski
1616 vulnerability:
1617 product: libdwarf
1618 description: Calling dwarf_next_cu_header_d() on a corrupted
1619 object file results in an infinite loop
1620 and (eventually) a crash in dwarf_xu_index.c attempting
1621 to resolve an 8 byte hash key.
1622 The bug existed from the first version of this source file.
1623 The same bug as DW202303-030.
1624 datefixed: 2023-03-22
1625 references: regressiontests/ossfuzz57048/fuzz_findfuncbypc-4647942385696768
1626 gitfixid: 774f98e596df9dd8f3cb92ec76243caaa4287039
1627 tarrelease: libdwarf-0.7.0.tar.xz
1628 endrec: DW202303-031
1629
1630 id: DW202303-030
1631 cve:
1632 fuzzer: ossfuzz id: 57027
1633 datereported: 2023-03-12
1634 reportedby: David Korczynski
1635 vulnerability: Infinite loop reading a gnu index section.
1636 product: libdwarf
1637 description: Calling dwarf_next_cu_header_d() on a corrupted
1638 object file results in an infinite loop
1639 and (eventually) a crash in dwarf_xu_index.c attempting
1640 to resolve an 8 byte hash key.
1641 The bug existed from the first version of this source file,
1642 which was in 2017 as the data involved DWARF5, new in 2017.
1643 datefixed: 2023-03-22
1644 references: regressiontests/ossfuzz57027/fuzz_stack_frame_access-5123569972805632
1645 gitfixid: 774f98e596df9dd8f3cb92ec76243caaa4287039
1646 tarrelease: libdwarf-0.7.0.tar.xz
1647 endrec: DW202303-030
1648
1649 id: DW202303-029
1650 cve:
1651 fuzzer: ossfuzz id: 56993
1652 datereported: 2023-03-12
1653 reportedby: David Korczynski
1654 vulnerability: Leaked Memory
1655 product: libdwarf
1656 description: Calling dwarf_get_macro_context on a particular
1657 fuzzed object file results in a memory leak when
1658 a particular error in the corrupted section is detected.
1659 The malloc was done by the line table reader code.
1660 The bug was there for many years
1661 datefixed: 2023-03-22
1662 references: regressiontests/ossfuzz56993/fuzz_macro_dwarf5-5770464300761088
1663 gitfixid: 5fde5e404a98c6727889cf14d8f93ec2138a6fa
1664 tarrelease: libdwarf-0.7.0.tar.xz
1665 endrec: DW202303-029
1666
1667 id: DW202303-028
1668 cve:
1669 fuzzer: ossfuzz id: 56958
1670 datereported: 2023-03-12
1671 reportedby: David Korczynski
1672 vulnerability: Out of memory crash.
1673 product: libdwarf
1674 description: Failing to check for error conditions
1675 in a fuzzed object correctly lead to a giant malloc
1676 that could not succeed.
1677 datefixed: 2023-03-22
1678 references: regressiontests/ossfuzz56958/fuzz_stack_frame_access-6097292873826304
1679 gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
1680 tarrelease: libdwarf-0.7.0.tar.xz
1681 endrec: DW202303-028
1682
1683 id: DW202303-027
1684 cve:
1685 fuzzer: ossfuzz id: 56906
1686 datereported: 2023-03-09
1687 reportedby: David Korczynski
1688 vulnerability: Heap Buffer overflow reading rnglists section.
1689 product: libdwarf
1690 description: Calling dwarf_get_rnglist_rle() on a corrupted
1691 object file could result in a library crash.
1692 datefixed: 2023-03-22
1693 references: regressiontests/ossfuzz56906/fuzz_rng-6031783801257984.fuzz
1694 gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
1695 tarrelease: libdwarf-0.7.0.tar.xz
1696 endrec: DW202303-027
1697
1698 id: DW202303-026
1699 cve:
1700 fuzzer: ossfuzz id: 56897
1701 datereported: 2023-02-28
1702 reportedby: David Korczynski
1703 vulnerability: Heap buffer overflow reading the rnglists section
1704 product: libdwarf
1705 description: dwarf_get_rnglist_offset_index_value() could fail
1706 on a corrupt object due to imprecise calculations of
1707 entry offsets. Fixed by a major update of the code
1708 in dwarf_rnglists.c
1709 datefixed: 2023-03-22
1710 references: regressiontests/ossfuzz56897/fuzz_rng-5105415777288192
1711 gitfixid: b9393bb9b6399a34f8616a272d030bdd004a5ef5
1712 tarrelease: libdwarf-0.7.0.tar.xz
1713 endrec: DW202303-026
1714
1715 id: DW202303-025
1716 cve:
1717 fuzzer: ossfuzz id: 56895
1718 datereported: 2023-02-28
1719 reportedby: David Korczynski
1720 vulnerability: Heap buffer overflow reading compilation unit header.
1721 product: libdwarf
1722 description: Calling dwarf_next_cu_header_d() on the fuzzed test
1723 object results in a library crash in fuzz_die_cu_attrs_loclist.c
1724 due to a failure to
1725 precisely test for a too-short Compilation Unit header.
1726 Now a DW_DLV_ERROR is returned.
1727 A very old bug.
1728 datefixed: 2023-03-24
1729 references: regressiontests/ossfuzz56895/fuzz_macro_dwarf5-5080340952907776
1730 gitfixid: 771cfcca1ef6a4a7eb9595d700fc72020d0ed72e
1731 tarrelease: libdwarf-0.7.0.tar.xz
1732 endrec: DW202303-025
1733
1734 id: DW202303-024
1735 cve:
1736 fuzzer: ossfuzz id: 56807
1737 datereported: 2023-02-28
1738 reportedby: David Korczynski
1739 vulnerability: Memory Leak in dwarf_check_lineheader_b()
1740 product: libdwarf
1741 description: The fuzzed test object file resulted
1742 in a memory leak calling dwarf_check_lineheader_b()
1743 as called from fuzz_srcfiles.c
1744 Two error conditions in dwarf_line_table_reader_common.h
1745 were missing a required free().
1746 datefixed: 2023-03-24
1747 references: regressiontests/ossfuzz56807/fuzz_srcfiles-4626047380619264
1748 gitfixid: 484f50ef8be0506be2e4b5fbad489868db5c7985
1749 tarrelease: libdwarf-0.7.0.tar.xz
1750 endrec: DW202303-024
1751
1752 id: DW202303-023
1753 cve:
1754 fuzzer: ossfuzz id: 56568
1755 datereported: 2023-02-28
1756 reportedby: David Korczynski
1757 vulnerability: Test build failure
1758 product: Test harness
1759 description: The fuzz_dnames.c testcase build failed.
1760 A result of removing two functions from the API,
1761 dwarf_dnames_abbrev_by_code() and
1762 dwarf_dnames_abbrev_form_by_index().
1763 Removed 2023-02-23.
1764 The test source no longer uses those two functions.
1765 The first was slow and hard to use. The second
1766 was unusable and never worked. The documentation
1767 (libdwarf.pdf) gives alternates in the library that work.
1768 datefixed: 2023-03-20
1769 references:
1770 gitfixid: 2eced75af9903ab778c3b237ec7be3ddc93ea6ec
1771 tarrelease: libdwarf-0.7.0.tar.xz
1772 endrec: DW202303-023
1773
1774 id: DW202303-022
1775 cve:
1776 fuzzer: ossfuzz id: 56497
1777 datereported: 2023-02-28
1778 reportedby: David Korczynski
1779 vulnerability: Memory Leak
1780 product: test harness
1781 description: The leak was due to the test driver fuzz/fuzz_rng.c
1782 failing to call dwarf_finish at the point of returning as a result
1783 of the corrupted binary returning an error condition.
1784 datefixed: 2023-03-20
1785 references: regressiontests/ossfuzz56497/
1786 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1787 tarrelease: libdwarf-0.7.0.tar.xz
1788 endrec: DW202303-022
1789
1790 id: DW202303-021
1791 cve:
1792 fuzzer: ossfuzz id: 56487
1793 datereported: 2023-02-28
1794 reportedby: David Korczynski
1795 vulnerability: Memory Leak
1796 product: testing harness
1797 description: The leak was due to the test driver fuzz/fuzz_rng.c
1798 failing to call dwarf_finish at the point of returning as a result
1799 of the corrupted binary returning an error condition.
1800 datefixed: 2023-03-20
1801 references: regressiontests/ossfuzz56487/clusterfuzz-testcase-fuzz_rng-6655451078197248
1802 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1803 tarrelease: libdwarf-0.7.0.tar.xz
1804 endrec: DW202303-021
1805
1806 id: DW202303-020
1807 cve:
1808 fuzzer: ossfuzz id: 56458
1809 datereported: 2023-02-28
1810 reportedby: David Korczynski
1811 vulnerability: Heap buffer overflow
1812 product: libdwarf
1813 description: The overflow encountered when
1814 reading a corrupted line table header in read_a_name_table_header in
1815 dwarf_debugnames.c
1816 There was insufficient checking for out of bounds
1817 values.
1818 datefixed: 2023-03-20
1819 references: regressiontests/ossfuzz56458/fuzz_findfuncbypc-5073632331431936
1820 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1821 tarrelease: libdwarf-0.7.0.tar.xz
1822 endrec: DW202303-020
1823
1824 id: DW202303-019
1825 cve:
1826 fuzzer: ossfuzz id: 56454
1827 datereported: 2023-02-28
1828 reportedby: David Korczynski
1829 vulnerability: Stack buffer overflow
1830 product: libdwarf
1831 description: The overflow was in dwarf_get_version_of_die()
1832 One return failed to free a local malloc due to the
1833 particular corruption in the text object DWARF.
1834 datefixed: 2023-03-20
1835 references: regressiontests/ossfuzz56454/
1836 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1837 tarrelease: libdwarf-0.7.0.tar.xz
1838 endrec: DW202303-019
1839
1840 id: DW202303-018
1841 cve:
1842 fuzzer: ossfuzz id: 56807
1843 datereported: 2023-02-28
1844 reportedby: David Korczynski
1845 vulnerability: Memory leak reading line table
1846 product: libdwarf
1847 description: A memory leak in _dwarf_read_line_table()
1848 reading a particular corrupted object.
1849 One return failed to free a local malloc.
1850 An very old bug, encountered reading corrupted
1851 DWARF line tables.
1852 datefixed: 2023-03-20
1853 references: regressiontests/ossfuzz56807fuzz_srcfiles-4626047380619264
1854 gitfixid: 1ff4365bd64a4e4f9ab717b3f62589c2ba6637a5
1855 tarrelease: libdwarf-0.7.0.tar.xz
1856 endrec: DW202303-018
1857
1858 id: DW202303-017
1859 cve:
1860 fuzzer: ossfuzz id: 56450
1861 datereported: 2023-02-28
1862 reportedby: David Korczynski
1863 vulnerability: Stack Buffer Overflow
1864 product: libdwarf
1865 description: Stack buffer overflow in dwarf_dietype_offset.
1866 Reading a corrupted object file.
1867 The bug was in the test code, not libdwarf.
1868 Having fixed that, valgrind finds that some memory is not
1869 freed by dwarf_finish(). In dwarf_alloc.c March 20
1870 _dwarf_free_all_of_one_debug() if the Dwarf_Debug was normal
1871 we failed to call _dwarf_free_static_errlist() and that
1872 left memory allocated from a bogus earlier call to the
1873 library (a situation libdwarf should handle and now does).
1874 datefixed: 2023-05-30
1875 references: regressiontests/ossfuzz56450/fuzz_die_cu_attrs-4953133005799424
1876 gitfixid:
1877 tarrelease: libdwarf-0.8.0.tar.xz
1878 endrec: DW202303-017
1879
1880 id: DW202303-016
1881 cve:
1882 fuzzer: ossfuzz id: 56476
1883 datereported: 2023-02-28
1884 reportedby: David Korczynski
1885 vulnerability: Heap Buffer Overflow in dwarf_get_rnglist_offset_value
1886 product: libdwarf
1887 description: A heap buffer overflow reading
1888 a fuzzed object file
1889 A revision of dwarf_str_offsets (which was
1890 new in DWARF5) affected several source files
1891 datefixed: 2023-03-12
1892 references: regressiontests/ossfuzz56476/fuzz_rng-5008229349588992/
1893 gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
1894 tarrelease: libdwarf-0.7.0.tar.xz
1895 endrec: DW202303-016
1896
1897 id: DW202303-015
1898 cve:
1899 fuzzer: ossfuzz id: 56489
1900 datereported: 2023-02-28
1901 reportedby: David Korczynski
1902 vulnerability: Heap Buffer Overflow in read_single_rle_entry
1903 product: libdwarf
1904 description: A heap buffer overflow reading
1905 a fuzzed object file
1906 A revision of dwarf_str_offsets (which was
1907 new in DWARF5) affected several source files
1908 datefixed: 2023-03-12
1909 references: regressiontests/ossfuzz56489/fuzz_srcfiles-5091530466787328
1910 gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
1911 tarrelease: libdwarf-0.7.0.tar.xz
1912 endrec: DW202303-015
1913
1914 id: DW202303-014
1915 cve:
1916 fuzzer: ossfuzz id: 56478
1917 datereported: 2023-02-28
1918 reportedby: David Korczynski
1919 vulnerability: Heap Buffer Overflow in read_single_rle_entry
1920 product: libdwarf
1921 description: A heap buffer overflow reading
1922 a fuzzed object file
1923 A revision of dwarf_str_offsets (which was
1924 new in DWARF5) affected several source files
1925 datefixed: 2023-03-12
1926 references: regressiontests/ossfuzz56478/fuzz_rng-5030515398017024
1927 gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
1928 tarrelease: libdwarf-0.7.0.tar.xz
1929 endrec: DW202303-014
1930
1931 id: DW202303-013
1932 cve:
1933 fuzzer: ossfuzz id: 56460
1934 datereported: 2023-02-28
1935 reportedby: David Korczynski
1936 vulnerability: Heap Buffer Overflow
1937 product: libdwarf
1938 description: A heap buffer overflow reading
1939 a fuzzed object file
1940 A revision of dwarf_str_offsets (which was
1941 new in DWARF5) affected several source files
1942 datefixed: 2023-03-12
1943 references: regressiontests/ossfuzz56460/fuzz_str_offsets-5376904040677376-5240324382654464
1944 gitfixid: 0343c63bd04d387924974e6da60d8471fdf945a9
1945 tarrelease: libdwarf-0.7.0.tar.xz
1946 endrec: DW202303-013
1947
1948 id: DW202303-012
1949 cve:
1950 fuzzer: ossfuzz id: 56456
1951 datereported: 2023-02-28
1952 reportedby: David Korczynski
1953 vulnerability: Heap Buffer Overflow
1954 product: libdwarf
1955 description: A heap buffer overflow reading
1956 a fuzzed object file
1957 Code reading the gdbindex section was not
1958 fully checking for valid offsets and pointers
1959 Duplicate of DW202303-006
1960 datefixed: 2023-03-14
1961 references: regressiontests/ossfuzz56456/fuzz_gdbindex-5240324382654464
1962 gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
1963 tarrelease: libdwarf-0.7.0.tar.xz
1964 endrec: DW202303-012
1965
1966 id: DW202303-011
1967 cve:
1968 fuzzer: ossfuzz id: 56453
1969 datereported: 2023-02-28
1970 reportedby: David Korczynski
1971 vulnerability: Null pointer dereference
1972 product: libdwarf
1973 description: A null pointer dereference in
1974 reading a fuzzed object file.
1975 This is related to checks for a correct
1976 value from the READ_AREA_LENGTH macro.
1977 The missing checks have been missing a very
1978 long time.
1979 datefixed: 2023-03-07
1980 references: regressiontests/ossfuzz56453
1981 gitfixid: 86671059c1c240ae56433fa94993dcd28df2ae7d
1982 tarrelease: libdwarf-0.7.0.tar.xz
1983 endrec: DW202303-011
1984
1985 id: DW202303-010
1986 cve:
1987 fuzzer: ossfuzz
1988 datereported: 2023-03-07
1989 reportedby: Youngseok Choi
1990 vulnerability: Stack overflow dwarfdump
1991 product: dwarfdump
1992 description: A wholly corrupted speically constructed
1993 dwarfdump.conf which is entirely inappropriate ascii
1994 really made a mess of one's screen.
1995 Now after a couple lines of garbage we
1996 give up on that conf file. And we print the garbage
1997 sanitized to avoid messing up one's screen.
1998 The fix also avoids buffer overflow.
1999 datefixed: 2023-03-25
2000 references: regressiontests/choi010/poc_file
2001 gitfixid: cb8dd45770f2e1f440aab60adac0256f268fc16e
2002 tarrelease: libdwarf-0.7.0.tar.xz
2003 endrec: DW202303-010
2004
2005 id: DW202303-009
2006 cve:
2007 fuzzer: oss-fuzz id: 56443
2008 datereported: 2023-03-01
2009 reportedby: David Korczynski
2010 vulnerability: Denial of service with corrupt line table header
2011 product: libdwarf
2012 description: With any one of a small set of corrupted data
2013 fields in a line table header that were not checked
2014 for sanity the library could try to malloc a giant space,
2015 which could take a long time to succeed or fail.
2016 After that almost anything could happen.
2017 Same as ossfuzz 56548.
2018 With the bug in 56548 fixed, now we still have a bug,
2019 there is a leak from _dwarf_special_no_dbg_error_malloc()
2020 -fsanitize does not show the bug here, but valgrind does
2021 datefixed: 2023-05-29
2022 references: regressiontests/ossfuzz56443/fuzz_crc_32-4750941179215872
2023 gitfixid: 241fe0cb415569975c451d1f2d62fb2b2147cd72
2024 tarrelease: libdwarf-0.8.0.tar.xz
2025 endrec: DW202303-009
2026
2027 id: DW202303-008
2028 cve:
2029 fuzzer: oss-fuzz id: 56530
2030 datereported: 2023-03-01
2031 reportedby: David Korczynski
2032 vulnerability: Denial of Service with corrupt attribute
2033 product: libdwarf
2034 description: With a particular data corruption
2035 dwarf_attrlist() failed to return an error and
2036 the library would dereference a stale pointer.
2037 This also provoked a memory leak.
2038 Same bug as DW202303-001
2039 datefixed: 2023-03-02
2040 references: ossfuzz56530/fuzz_findfuncbypc-6272642689925120
2041 gitfixid: 948352178dc791796ed574a961191844d8322493
2042 tarrelease: libdwarf-0.7.0.tar.xz
2043 endrec: DW202303-008
2044
2045 id: DW202303-007
2046 cve:
2047 fuzzer: oss-fuzz id: 56735
2048 datereported: 2023-03-04
2049 reportedby: David Korczynski
2050 vulnerability: Denial of service with corrupt debug_macro section.
2051 product: libdwarf
2052 description: We were not checking .debug macro data for a
2053 corrupted internal macro length field. Now we check.
2054 datefixed: 2023-03-08
2055 references: regressiontests/ossfuzz56735/fuzz_macro_dwarf5-6718585377783808
2056 gitfixid: bb99fe7ddb2bc6601bcb0ee30ced6a8cc8cb0564
2057 tarrelease: libdwarf-0.7.0.tar.xz
2058 endrec: DW202303-007
2059
2060 id: DW202303-006
2061 cve:
2062 fuzzer: oss-fuzz id: 56456
2063 datereported: 2023-03-04
2064 reportedby: David Korczynski
2065 vulnerability: Denial of service (crash) looking for gdbindex section.
2066 product: libdwarf
2067 description: The logic was wrong in a couple places (fixed now)
2068 and almost nothing was checked for validity. Now we check,
2069 so to libdwarf do not result in a crash of the library.
2070 The bugs have been there since the code was written
2071 in 2014.
2072 datefixed: 2023-03-14
2073 references: regressiontests/ossfuzz56456/fuzz_gdbindex-5240324382654464
2074 gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
2075 tarrelease: libdwarf-0.7.0.tar.xz
2076 endrec: DW202303-006
2077
2078 id: DW202303-005
2079 cve:
2080 fuzzer: oss-fuzz id: 56676
2081 datereported: 2023-03-04
2082 reportedby: David Korczynski
2083 vulnerability: Denial of service with corrupt frame section.
2084 product: libdwarf
2085 description: A call to dwarf_expand_frame_instructions()
2086 with corrupt data gets a segmentation violation.
2087 datefixed: 2023-03-14
2088 references: regressiontests/ossfuzz56676/fuzz_set_frame_all-5081006119190528.fuzz
2089 gitfixid: e564c9350c104f16eb2223d7b29082e3deb5d2fb
2090 tarrelease: libdwarf-0.7.0.tar.xz
2091 endrec: DW202303-005
2092
2093 id: DW202303-004
2094 cve:
2095 fuzzer: oss-fuzz id: 56666
2096 datereported: 2023-03-04
2097 reportedby: David Korczynski
2098 vulnerability: Denial of service with corrupt gnu_index section
2099 product: libdwarf
2100 description: A corrupted .debug_gnu_index header was not
2101 properly checked, and the calculation setting
2102 up the table in memory was not correctly set up.
2103 datefixed: 2023-03-08
2104 references: regressiontests/ossfuzz56666/fuzz_gnu_index-4803574417981440
2105 gitfixid: 64eaaa58703258cab02896e798664a1bb11a3d5c
2106 tarrelease: libdwarf-0.7.0.tar.xz
2107 endrec: DW202303-004
2108
2109 id: DW202303-003
2110 cve:
2111 fuzzer: oss-fuzz id: 56636
2112 datereported: 2023-03-03
2113 reportedby: David Korczynski
2114 vulnerability: Denial of service with corrupt .debug_addr section
2115 product: libdwarf
2116 description: A corrupted .debug_addr header was not
2117 properly checked, and the calculation setting
2118 up the table in memory was not correctly set up.
2119 Calling dwarf_debug_addr_by_index() could crash the calling
2120 application.
2121 datefixed: 2023-03-03
2122 references: regressiontests/ossfuzz56636/fuzz_debug_addr_access-4801779658522624.fuzz
2123 gitfixid: a3ab3f16ab67f4d976561fe0d863e1ed8b71f3c6
2124 tarrelease: libdwarf-0.7.0.tar.xz
2125 endrec: DW202303-003
2126
2127 id: DW202303-002
2128 cve:
2129 fuzzer: oss-fuzz id: 56548
2130 datereported: 2023-03-01
2131 reportedby: David Korczynski
2132 vulnerability: Denial of service with corrupt line table header
2133 product: libdwarf
2134 description: With any one of a small set of corrupted data
2135 fields in a line table header that were not checked
2136 for sanity the library could try to malloc a giant space,
2137 which could take a long time to succeed or fail.
2138 After that almost anything could happen.
2139 Same bug fix as 56443
2140 datefixed: 2023-03-03
2141 references: regressiontests/ossfuzz56548/fuzz_findfuncbypc-5073632331431936
2142 gitfixid: 89d3beccd161657760585967255bbabf67e5b4c9
2143 tarrelease: libdwarf-0.7.0.tar.xz
2144 endrec: DW202303-002
2145
2146 id: DW202303-001
2147 cve:
2148 fuzzer: oss-fuzz id: 56465
2149 datereported: 2023-03-01
2150 reportedby: David Korczynski
2151 vulnerability: Denial of Service with corrupt attribute
2152 product: libdwarf
2153 description: With a particular data corruption
2154 dwarf_attrlist() failed to return an error and
2155 the library would dereference a stale pointer.
2156 This also provoked a memory leak.
2157 datefixed: 2023-03-02
2158 references: regressiontests/ossfuzz56465/fuzz_die_cu_offset-5866690199289856
2159 gitfixid: 948352178dc791796ed574a961191844d8322493
2160 tarrelease: libdwarf-0.7.0.tar.xz
2161 endrec: DW202303-001
2162
2163 id: DW202301-001
2164 cve:
2165 fuzzer:
2166 datereported: 2023-01-24
2167 reportedby: Steve Kaufmann
2168 vulnerability: Denial of Service with DW_FORM_strx3
2169 product: libdwarf
2170 description: Any use of DW_FORM_strx3 or
2171 DW_FORM_addrx3 would get libdwarf very confused
2172 and incorrect return values
2173 and or a library crash might result.
2174 datefixed: 2023-01-24
2175 references: regressiontests/kaufmann2/ct-bad.o
2176 gitfixid: 97e90eb7ab98df60b8da0bdc2ac855711c4db804
2177 tarrelease: libdwarf-0.6.0.tar.xz
2178 endrec: DW202301-001
2179
2180 id: DW202212-001
2181 cve:
2182 fuzzer: oss-fuzz
2183 datereported: 2022-12-28
2184 reportedby: David Korczynski
2185 vulnerability: Denial of Service with fuzzed object.
2186 product: libdwarf
2187 description: The fuzzed testcase has at least four major
2188 errors which libdwarf did not catch, leading
2189 to unpredictable library behavior, possibly
2190 including crashing the calling program.
2191 Things not noticed before the fix (and now resulting
2192 in error being reported):
2193 A) The object has just 2 sections,
2194 too few to be real. at least 3 sections are needed
2195 to contain DWARF information of any kind.
2196 B) Section zero has non-zero contents, in violation
2197 of the Elf object specification.
2198 C) The header says section strings are in section
2199 zero (a violation of the Elf specification).
2200 D) Section 1 masquerades as .note.gnu.debug-id
2201 and the description size is gigantic (as is
2202 the section, which fits the description field
2203 length).
2204 datefixed: 2023-01-09
2205 references: regressiontests/ossfuzz54724/clusterfuzz-54724-poc
2206 gitfixid: 45f6d778811553a835916b60845933e6dda63b7f
2207 tarrelease: libdwarf-0.6.0.tar.xz
2208 endrec: DW202212-001
2209
2210 id: DW202208-001
2211 cve:
2212 fuzzer: unspecified
2213 datereported: 2022-08-27
2214 reportedby: Han Zheng
2215 vulnerability: Double free on corrupted frame data.
2216 product: libdwarf
2217 description: A carefully corrupted object file
2218 would cause libdwarf to do a double free in
2219 handling an error condition in
2220 dwarf_expand_frame_instructions().
2221 (in libdwarf/dwarf_frame.c)
2222 That could cause a segmentation violation or other
2223 major error, terminating the calling application and
2224 resulting in Denial Of Service.
2225 datefixed: 2022-08-27
2226 references: regressiontests/hanzheng/fuzzedobject
2227 gitfixid: 428235e3d132fb62faf7732735fdbb034d6264b4
2228 tarrelease: libdwarf-0.5.0.tar.xz
2229 endrec: DW202208-001
2230
2231 id: DW202207-001
2232 cve:
2233 fuzzer: ossfuzz
2234 datereported: 2022-05-01
2235 reportedby: David Korczynski
2236 vulnerability: buffer overflow in dwarf_form.c
2237 product: libdwarf
2238 description: A carefully corrupted string
2239 would cause libdwarf to read outside of a buffer containing
2240 the string (one past the end) when checking the string
2241 to determine if it is a full path in processing
2242 a .gnu.debuglink section.
2243 That could cause a segmentation violation or other
2244 major error, terminating the calling application and
2245 resulting in Denial Of Service.
2246 datefixed: 2022-07-23
2247 references: regressiontests/ossfuzz47150/clusterfuzz-testcase-minimized-fuzz_init_path-6727387238236160.fuzz
2248 gitfixid: 24dff940cc4c71a9c3cb5475aee231b19163a12c
2249 tarrelease: libdwarf-0.5.0.tar.xz
2250 endrec: DW202207-001
2251
2252 id: DW202206-001
2253 cve:
2254 fuzzer:
2255 datereported: 2022-06-15
2256 reportedby: Casper Sun
2257 vulnerability: buffer overflow in dwarf_form.c
2258 product: libdwarf
2259 description: A carefully corrupted .debug_info section
2260 would cause libdwarf to read outside of a buffer containing
2261 a Dwarf_Sig8 symbolic reference.
2262 That could cause a segmentation violation or other
2263 major error, terminating the calling application and
2264 resulting in Denial Of Service.
2265 This failure to check for buffer overflow has been present
2266 since DWARF4 when DW_FORM_ref_sig8 was added to libdwarf.
2267 datefixed: 2022-06-15
2268 references: regressiontests/sleicasper2/buffer-overflow-dwarf-form
2269 gitfixid: 7ef09e1fc9ba07653dd078edb2408631c7969162
2270 tarrelease: libdwarf-0.4.1.tar.xz
2271 endrec: DW202206-001
2272
2273 id: DW202205-001
2274 cve:
2275 fuzzer:
2276 datereported: 2022-05-26
2277 reportedby: Casper Sun
2278 vulnerability: buffer overflow in dwarf_globals.c
2279 product: libdwarf
2280 description: A carefully corrupted .debug_pubnames section
2281 would cause libdwarf to read outside of a buffer containing
2282 the section contents.
2283 That could cause a segmentation violation or other
2284 major error, terminating the calling application and
2285 resulting in Denial Of Service.
2286 The bug has been present for many years.
2287 datefixed: 2022-05-29
2288 references: regressiontests/sleicasper/bufferoverflow
2289 gitfixid: 8151575a6ace77d005ca5bb5d71c1bfdba3f7069
2290 tarrelease: libdwarf-0.4.1.tar.xz
2291 endrec: DW202205-001
2292
2293 id: DW202111-016
2294 cve:
2295 fuzzer: oss-fuzz-41240
2296 datereported: 2021-11-20
2297 reportedby: David Korczynski
2298 vulnerability: Out-of-memory in fuzz_init_path
2299 product: libdwarf
2300 description: A corrupted object.
2301 The PE object section header for
2302 section .gnu_debuglink is corrupted. A very
2303 large number is in the VirtualSize field.
2304 Attempting a malloc for the section could
2305 succeed or might fail, resulting in
2306 Denial Of Service.
2307 <pre>
2308 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41240
2309 </pre>
2310 datefixed: 2021-11-21
2311 references: regressiontests/ ossfuzz41240/clusterfuzz-testcase-minimized-fuzz_init_path-5929343686148096
2312 gitfixid: a120c808234060c3c9b1872ab9a059aa1ac70b1d
2313 tarrelease: libdwarf-0.4.1.tar.xz
2314 endrec: DW202111-016
2315
2316 id: DW202111-015
2317 cve:
2318 fuzzer: oss-fuzz-40896
2319 datereported: 2021-11-10
2320 reportedby: David Korczynski
2321 vulnerability: Out-of-memory in fuzz_init_path
2322 product: libdwarf
2323 description: A corrupted object.
2324 Several Elf section sizes and section offsets are larger than
2325 the file size.
2326 <pre>
2327 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40896
2328 </pre>
2329 datefixed: 2021-11-12
2330 references: regressiontests/ossfuzz40896/clusterfuzz-testcase-fuzz_init_path-5337872492789760
2331 regressiontests/ossfuzz40896/clusterfuzz-testcase-minimized-fuzz_init_path-5337872492789760
2332 gitfixid: b7a119dc07c502c1334bcbf8dd04ca0e4d5f6ab6
2333 tarrelease: libdwarf-0.4.1.tar.xz
2334 endrec: DW202111-015
2335
2336 id: DW202111-014
2337 cve:
2338 fuzzer: oss-fuzz-40895
2339 datereported: 2021-11-10
2340 reportedby: David Korczynski
2341 vulnerability: Out-of-memory in fuzz_init_binary
2342 product: libdwarf
2343 description: A corrupted object.
2344 Some Elf section sizes are larger than the file size.
2345 <pre>
2346 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40895
2347 </pre>
2348 datefixed: 2021-11-12
2349 references: regressiontests/ossfuzz40895/clusterfuzz-testcase-fuzz_init_binary-4805508242997248
2350 regressiontests/ossfuzz40895/clusterfuzz-testcase-minimized-fuzz_init_binary-4805508242997248
2351 gitfixid: b7a119dc07c502c1334bcbf8dd04ca0e4d5f6ab6
2352 tarrelease: libdwarf-0.4.1.tar.xz
2353 endrec: DW202111-014
2354
2355 id: DW201907-001
2356 cve: CVE-2019-14249
2357 fuzzer:
2358 datereported: 2019-07-23
2359 reportedby: unknown
2360 vulnerability: Denial of service with zero size section group
2361 product: libdwarf
2362 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.
2363 datefixed: 2019-07-05
2364 references:
2365 gitfixid: cb7198abde46c2ae29957ad460da6886eaa606ba
2366 tarrelease: libdwarf-0.4.1.tar.xz
2367 endrec: DW201907-001
2368
2369 id: DW202111-013
2370 cve:
2371 fuzzer: oss-fuzz-40802
2372 datereported: 2021-11-07
2373 reportedby: David Korczynski
2374 vulnerability: Null-dereference READ in dwarf_object_init_b
2375 product: libdwarf
2376 description: A corrupted object.
2377 The error handling code in dwarf_object_init_b
2378 was not properly dealing with a NULL pointer
2379 Dwarf_Error *errp in the test code.
2380 <pre>
2381 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40802
2382 </pre>
2383 datefixed: 2021-11-19
2384 references: regressiontests/ossfuzz40802/ clusterfuzz-testcase-fuzz_init_binary-5538015955517440.fuzz
2385 regressiontests/ossfuzz40802/clusterfuzz-testcase-minimized-fuzz_init_binary-5538015955517440.fuzz
2386
2387 gitfixid: adf4dae25b39039f1821b095688c00f3010e1d37
2388 tarrelease: libdwarf-0.4.1.tar.xz
2389 endrec: DW202111-013
2390
2391 id: DW202111-012
2392 cve:
2393 fuzzer: oss-fuzz-40801
2394 datereported: 2021-11-07
2395 reportedby: David Korczynski
2396 vulnerability: Timeout in fuzz_init_path
2397 product: libdwarf
2398 description: A corrupted object. libdwarf detects it quickly now.
2399 <pre>
2400 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40801
2401 </pre>
2402 datefixed: 2021-11-07
2403 references: regressiontests/ossfuzz801/clusterfuzz-testcase-fuzz_init_path-5443517279764480
2404 regressiontests/ossfuzz40801/clusterfuzz-testcase-minimized-fuzz_init_path-5443517279764480
2405 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2406 tarrelease: libdwarf-0.4.1.tar.xz
2407 endrec: DW202111-012
2408
2409 id: DW202111-011
2410 cve:
2411 fuzzer: oss-fuzz-40799
2412 datereported: 2021-11-02
2413 reportedby: David Korczynski
2414 vulnerability: Out-of-memory in fuzz_init_path
2415 product: libdwarf
2416 description: A corrupted object.
2417 Gigantic section sizes or offsets were provoking
2418 a large malloc. Now these are detected and
2419 no malloc is attempted (an error is returned).
2420 <pre>
2421 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40799
2422 </pre>
2423 datefixed: 2021-11-07
2424 references: regressiontests/ossfuzz40799/clusterfuzz-testcase-fuzz_init_path-5245778948390912
2425 regressiontests/ossfuzz40799/clusterfuzz-testcase-minimized-fuzz_init_path-5245778948390912
2426 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2427 tarrelease: libdwarf-0.4.1.tar.xz
2428 endrec: DW202111-011
2429
2430 id: DW202111-010
2431 cve:
2432 fuzzer: oss-fuzz-40627
2433 datereported: 2021-11-02
2434 reportedby: David Korczynski
2435 vulnerability: Abrt in _dwarf_error_string
2436 product: libdwarf
2437 description: The Elf object file has some corruption. The
2438 read now stops with an error.
2439 <pre>
2440 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40627
2441 </pre>
2442 datefixed: 2021-11-07
2443 references: regressiontests/ossfuzz40627/clusterfuzz-testcase-fuzz_init_path-5186858573758464
2444 regressiontests/ossfuzz40627/clusterfuzz-testcase-minimized-fuzz_init_path-5186858573758464
2445 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2446 tarrelease: libdwarf-0.4.1.tar.xz
2447 endrec: DW202111-010
2448
2449 id: DW202111-009
2450 cve:
2451 fuzzer: oss-fuzz-40729
2452 datereported: 2021-11-05
2453 reportedby: David Korczynski
2454 vulnerability: Timeout - fuzz_init_binary
2455 product: libdwarf
2456 description: The object file (macho 64 bit) has some
2457 header fuzzing that was not caught reading
2458 the object until the macho reader
2459 tried a gigantic malloc..
2460 Now the library code catches the error before malloc and
2461 returns an error code.
2462 <pre>
2463 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40729
2464 </pre>
2465 datefixed: 2021-11-07
2466 references: regressiontests/ossfuzz40729/clusterfuzz-testcase-minimized-fuzz_init_binary-4791627277795328
2467 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2468 tarrelease: libdwarf-0.4.1.tar.xz
2469 endrec: DW202111-009
2470
2471 id: DW202111-008
2472 cve:
2473 fuzzer: oss-fuzz-40731
2474 datereported: 2021-11-03
2475 reportedby: David Korczynski
2476 vulnerability: Out-of-memory in fuzz_init_binary
2477 product: libdwarf
2478 description: The fuzzed macho64 object has corrupted
2479 headers. The library notices and reports an error.
2480 <pre>
2481 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40731
2482 </pre>
2483 datefixed: 2021-11-07
2484 references: regressiontests/ossfuzz40731/clusterfuzz-testcase-fuzz_init_binary-5983147574034432
2485 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2486 tarrelease: libdwarf-0.4.1.tar.xz
2487 endrec: DW202111-008
2488
2489 id: DW202111-005
2490 cve:
2491 fuzzer: oss-fuzz-40674
2492 datereported: 2021-11-03
2493 reportedby: David Korczynski
2494 vulnerability: Heap-buffer-overflow in _dwarf_elf_setup_all_section_groups
2495 product: libdwarf
2496 description: Object file has corrupt section group information.
2497 Results in buffer overflow.
2498 <pre>
2499 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40674#c6
2500 </pre>
2501 datefixed: 2021-11-07
2502 references: regressiontests/ossfuzz40674/clusterfuzz-testcase-minimized-fuzz_init_path-6557751518560256
2503 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2504 tarrelease: libdwarf-0.4.1.tar.xz
2505 endrec: DW202111-005
2506
2507 id: DW202111-004
2508 cve:
2509 fuzzer: oss-fuzz-40673
2510 datereported: 2021-11-03
2511 reportedby: David Korczynski
2512 vulnerability: Null-dereference READ in dwarf_object_init_b
2513 product: libdwarf
2514 description: The macho object has corrupted headers
2515 and now mentions that and stops.
2516 Verified as fixed by oss-fuzz 2021-11-03
2517 <pre>
2518 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40673
2519 </pre>
2520 datefixed: 2021-11-05
2521 references: regressiontests/ossfuzz40673/clusterfuzz-testcase-minimized-fuzz_init_path-6240961391362048.fuzz
2522 gitfixid: 94dece3ce0f030d06da442a103bd6a5301410b25
2523 tarrelease: libdwarf-0.4.1.tar.xz
2524 endrec: DW202111-004
2525
2526 id: DW202111-003
2527 cve:
2528 fuzzer: oss-fuzz-40671
2529 datereported: 2021-11-03
2530 reportedby: David Korczynski
2531 vulnerability: Direct-leak in _dwarf_get_debug
2532 product: libdwarf
2533 description: The test code is calling a libdwarf-internal
2534 function (which is against the rules, only libdwarf
2535 function names beginning with dwarf_ are callable.
2536 When building libdwarf as an archive there is no
2537 means to enforce this rule)
2538 doc/libdwarf.mm/pdf now documents this rule.
2539 <pre>
2540 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40671
2541 </pre>
2542 datefixed: 2021-11-05
2543 references: regressiontests/oss40671/clusterfuzz-testcase-fuzz_init_path-5455557297831936
2544 regressiontests/oss40671/clusterfuzz-testcase-minimized-fuzz_init_path-5455557297831936
2545 gitfixid: b40f7e291216e771185f62292dd6304b5a662926
2546 tarrelease: libdwarf-0.4.1.tar.xz
2547 endrec: DW202111-003
2548
2549 id: DW202111-002
2550 cve:
2551 fuzzer: oss-fuzz-40669
2552 datereported: 2021-11-03
2553 reportedby: David Korczynski
2554 vulnerability: Out-of-memory in fuzz_init_path
2555 product: libdwarf
2556 description: Corrupted MachO object can crash caller.b
2557 Two fields in the MachO file header
2558 were not checked for sanity so nonsense large values
2559 could lead to excessive malloc and or a caller
2560 segmentation violation. Fixed by DW202111-001.
2561 Verified as fixed by oss-fuzz
2562 <pre>
2563 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40669
2564 </pre>
2565 datefixed: 2021-11-04
2566 references: regressiontests/ossfuzz40669/clusterfuzz-testcase-minimized-fuzz_init_path-5399726397194240
2567 regressiontests/clusterfuzz-testcase-fuzz_init_path-5399726397194240
2568 gitfixid: b40f7e291216e771185f62292dd6304b5a662926
2569 tarrelease: libdwarf-0.4.1.tar.xz
2570 endrec: DW202111-002
2571
2572 id: DW202111-001
2573 cve:
2574 fuzzer: oss-fuzz-40663
2575 datereported: 2021-11-03
2576 reportedby: David Korczynski
2577 vulnerability: Timeout in fuzz_init_path
2578 product: libdwarf
2579 description: Corrupted MachO object can crash caller
2580 Two fields in the MachO file header
2581 were not checked for sanity so nonsense large values
2582 could lead to excessive malloc and or a caller
2583 segmentation violation.
2584 Verified by oss-fuzz as fixed.
2585 The testcase has illegal libdwarf call
2586 and improper include statements.
2587 <pre>
2588 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40663
2589 </pre>
2590 datefixed: 2021-11-04
2591 references: regressiontests/ossfuzz40663/clusterfuzz-testcase-minimized-fuzz_init_path-6122542432124928
2592 gitfixid: b40f7e291216e771185f62292dd6304b5a662926
2593 tarrelease: libdwarf-0.4.1.tar.xz
2594 endrec: DW202111-001
2595
2596 id: DW202010-003
2597 cve: CVE-2020-28163
2598 datereported: 2020-10-27
2599 reportedby: Casper Sun
2600 vulnerability: Passing null to %s due to corrupt line table header.
2601 product: libdwarf
2602 description: If a DWARF5 line table header has an invalid
2603 FORM for a pathname, the fi_file_name field may be null
2604 and printing it via %s can result in referencing memory
2605 at address 0, possibly generating segmentation
2606 violation or application crash. Now in case of null
2607 we provide a fixed string of <no file name>
2608 and for the form code we print the value and <unknown form>
2609 so there are no unpredictable effects.
2610 <pre>
2611
2612 This should be visible after redhat makes it public.
2613 Filed on bugzilla.redhat 23 November 2021.
2614 bugzilla.redhat.com/show_bug.cgi?id=2026000
2615 </pre>
2616 datefixed: 2020-10-28
2617 references: regressiontests/c-sun2/nullpointer
2618 gitfixid: faf99408e3f9f706fc3809dd400e831f989778d3
2619 tarrelease: libdwarf-0.4.1.tar.xz
2620 endrec: DW202010-003
2621
2622 id: DW202010-002
2623 cve: CVE-2020-28162
2624 datereported: 2020-10-27
2625 reportedby: Casper Sun
2626 vulnerability: dwarfdump crashes if the nest of C scopes is too deep
2627 product: dwarfdump
2628 description: An object file where the DIEs depth of
2629 nesting exceeds the limit of 800 levels
2630 due to corruption or a compiler bug
2631 can result in exhausting the die stack array and
2632 writing past its end.
2633 A segmentation fault is possible.
2634 The code at the point of error was not adjusting
2635 the array index properly
2636 so an invalid dereference could occur.
2637 Now the test code is correct and the array overflow
2638 is detected resulting in a normal error return.
2639 Additional places where this could occur were
2640 identified and the proper test added.
2641 <pre>
2642 Unable to enter in bugzilla.redhat.com
2643 so CVE can be completed by Fedora (as CNA)
2644 as dwarfdump is not part of Fedora
2645 </pre>
2646 datefixed: 2020-10-28
2647 references: regressiontests/c-sun2/globaloverflow
2648 gitfixid: a7fa8edd640b74daf8e7a442dcec96640875b4fb
2649 tarrelease: libdwarf-0.4.1.tar.xz
2650 endrec: DW202010-002
2651
2652 id: DW202010-001
2653 cve: CVE-2020-27545
2654 datereported: 2020-10-10
2655 reportedby: Casper Sun
2656 vulnerability: A carefully corrupted line table can crash calling app
2657 product: libdwarf
2658 description: A carefully crafted object with an
2659 invalid line table could cause libdwarf
2660 to dereference a pointer reading a single byte outside of
2661 the intended .debug_line section and potentially
2662 outside of memory visible to the library.
2663 A segmentation fault is possible.
2664 The code testing for the error was coded incorrectly
2665 so an invalid dereference could occur.
2666 Now the test code is correct and the error
2667 is detected resulting in a normal error return.
2668 <pre>
2669 This should be visible after redhat makes it public.
2670 Filed on bugzilla.redhat 22 November 2021.
2671 bugzilla.redhat.com/show_bug.cgi?id=2025694
2672 </pre>
2673 datefixed: 2020-10-17
2674 references: regressiontests/c-sun/poc
2675 gitfixid: 95f634808c01f1c61bbec56ed2395af997f397ea
2676 tarrelease: libdwarf-0.4.1.tar.xz
2677 endrec: DW202010-001
2678
2679 id: DW201801-001
2680 cve:
2681 datereported: 2018-01-28
2682 reportedby: Agostino Sarubbo
2683 vulnerability: Incorrect frame section can crash dwarfdump
2684 product: dwarfdump
2685 description: A carefully crafted object with an
2686 invalid frame section set of initial-instructions
2687 can crash the frame-instructions decode in
2688 dwarfdump. In addition, a couple places in libdwarf
2689 are not as careful in checking frame data as
2690 they should be.
2691 A segmentation-fault/core-dump is possible.
2692 datefixed: 2018-01-29
2693 references: sarubbo-11/testcase{1,2,3,4,5}.bin
2694 gitfixid: 7af0ecddfafed88446969cbf8c888356ad485d99
2695 tarrelease: libdwarf-20180129.tar.gz
2696 endrec: DW201801-001
2697
2698 id: DW201712-001
2699 cve:
2700 datereported: 2017-12-01
2701 reportedby: Agostino Sarubbo
2702 vulnerability: Incorrect frame section could let caller crash
2703 product: libdwarf
2704 description: A carefully crafted object with an
2705 invalid frame section
2706 can result in passing back data to a caller of
2707 dwarf_get_fde_augmentation_data()
2708 is erroneous and will result in the
2709 caller reference off the end of the frame
2710 section.
2711 A segmentation-fault/core-dump is possible.
2712 datefixed: 2017-12-01
2713 references: sarubbo-10/1.crashes.bin
2714 gitfixid: 329ea8e56bc9550260cae6e2e9756bfbe7e2ff6d
2715 tarrelease: libdwarf-20180129.tar.gz
2716 endrec: DW201712-001
2717
2718 id: DW201711-002
2719 cve:
2720 datereported: 2017-11-08
2721 reportedby: Agostino Sarubbo
2722 vulnerability: Incorrect line table section could crash caller
2723 product: libdwarf
2724 description: An carefully crafted object with a
2725 invalid line table section crafted to
2726 end early at a particular point resulted in
2727 dereferencing outside the line table from
2728 libdwarf/dwarf_line_table_reader_common.c .
2729 A segmentation-fault/core-dump is possible.
2730 datefixed: 2017-11-08
2731 references: regressiontests/sarubbo-9/3.crashes.bin
2732 gitfixid: a1644f4dde7dd5990537ff7ad22a9e94b8723186
2733 tarrelease: libdwarf-20180129.tar.gz
2734 endrec: DW201711-002
2735
2736 id: DW201711-001
2737 cve:
2738 datereported: 2017-11-01
2739 reportedby: Agostino Sarubbo
2740 vulnerability: Incorrect frame section could crash caller
2741 product: libdwarf
2742 description: A carefully crafted object with a
2743 resulting invalid frame section
2744 with DW_CFA_advance_loc1 implying
2745 data off-the-end-of-section
2746 will dereference an invalid pointer.
2747 A segmentation fault and core dump is possible.
2748 Corrected code checks now.
2749 datefixed: 2017-11-02
2750 references: regressiontests/sarubbo-8/1.crashes.bin
2751 gitfixid: 44349d7991e44dd3751794f76537cabcf65ee28d
2752 tarrelease: libdwarf-20180129.tar.gz
2753 endrec: DW201711-001
2754
2755 id: DW201709-001
2756 cve:
2757 datereported: 2017-09-19
2758 reportedby: Agostino Sarubbo
2759 vulnerability: Incorrect abbrev section could crash caller.
2760 product: libdwarf
2761 description: A fuzzed object with a
2762 resulting invalid abbrev section where
2763 the end of section follows an abbrev tag
2764 would dereference a non-existent has-child byte.
2765
2766 datefixed: 2017-09-26
2767 references: regressiontests/sarubbo-3/1.crashes.bin
2768 gitfixid: bcc2e33908e669bacd397e3c941ffd1db3005d17
2769 tarrelease: libdwarf-20180129.tar.gz
2770 endrec: DW201709-001
2771
2772 id: DW201706-001
2773 cve: CVE-2017-9998
2774 datereported: 2017-06-28
2775 reportedby: team OWL337
2776 vulnerability: Addition overflow in libdwarf leads to segmentation violation
2777 product: libdwarf
2778 description: A fuzzed object with a
2779 resulting invalid value can overflow
2780 when added to a valid pointer
2781 (depending on how the runtime memory is laid out)
2782 and thereafter a dereference results in a
2783 segmentation violation).
2784
2785 <pre> see
2786 https://bugzilla.redhat.com/show_bug.cgi?id=1465756
2787 for contact information of those finding the bug.
2788 Fabian Wolff sent email and provided
2789 the link to the web page.
2790 </pre>
2791 datefixed: 2017-07-06
2792 references: regressiontests/wolff/POC1
2793 gitfixid: e91681e8841291f57386f26a90897fd1dcf92a6e
2794 tarrelease: libdwarf-20180129.tar.gz
2795 endrec: DW201706-001
2796
2797 id: DW201703-007
2798 cve:
2799 datereported: 2017-03-21
2800 reportedby: Marcel Bohme and Van-Thuan Pham
2801 vulnerability: Heap overflow in strncmp (libelf bug)
2802 product: libdwarf (libelf)
2803 description: 7/7. A heap overflow in
2804 strncmp() is due to libelf failing to check arguments
2805 to elf_ strptr.
2806 This is not a bug in libdwarf, it is a libelf bug.
2807 A pointer for being in bounds (in a few places in this
2808 function) and a failure in a check in dwarf_attr_list().
2809 The test object is intentionally corrupted (fuzzed).
2810
2811 <pre>
2812 A portion of sanitizer output with Ubuntu 14.04:
2813 ==180133==ERROR: AddressSanitizer: heap-buffer-overflow
2814 on address 0x60d00000cff1 at pc 0x0000004476f4
2815 bp 0x7fff87dd7dd0 sp 0x7fff87dd7590
2816 READ of size 8 at 0x60d00000cff1 thread T0
2817 #0 0x4476f3 in __interceptor_strncmp (/home/ubuntu/subjects/
2818 build-asan/libdwarf/dwarfdump/dwarfdump+0x4476f3)
2819 #1 0x7992ae in this_section_dwarf_relevant /home/ubuntu/subjects/
2820 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:608:13
2821 #2 0x781064 in _dwarf_setup /home/ubuntu/subjects/
2822 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:722:14
2823 #3 0x77d59c in dwarf_object_init /home/ubuntu/subjects/
2824 build-asan/libdwarf/libdwarf/dwarf_init_finish.c:922:20
2825
2826 With Ubuntu 16.04 libelf dwarfdump gets:
2827 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
2828 a call to elf_strptr() failed trying to get a section name
2829 </pre>
2830 Fix date is irrelevant, libdwarf no longer uses libelf.
2831 datefixed: 2017-07-06
2832 references: regressiontests/marcel/crash7
2833 gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
2834 tarrelease: libdwarf-20180129.tar.gz
2835 endrec: DW201703-007
2836
2837 id: DW201703-006
2838 cve: CVE-2017-9052
2839 datereported: 2017-03-21
2840 reportedby: Marcel Bohme and Van-Thuan Pham
2841 vulnerability: Heap overflow in dwarf_formsdata
2842 product: libdwarf
2843 description: 6/7. A heap overflow in
2844 dwarf_formsdata() is due to a failure to check
2845 a pointer for being in bounds (in a few places in this
2846 function) and a failure in a check in dwarf_attr_list().
2847 The test object is intentionally corrupted (fuzzed).
2848
2849 <pre>
2850 A portion of sanitizer output with Ubuntu 14.04:
2851 ==180130==ERROR: AddressSanitizer: heap-buffer-overflow
2852 on address 0x61100000589c at pc 0x0000006cab95
2853 bp 0x7fff749aab10 sp 0x7fff749aab08
2854 READ of size 1 at 0x61100000589c thread T0
2855 #0 0x6cab94 in dwarf_formsdata /home/ubuntu/subjects/
2856 build-asan/libdwarf/libdwarf/dwarf_form.c:937:9
2857 #1 0x567daf in get_small_encoding_integer_and_name /home/ubuntu/subjects/
2858 build-asan/libdwarf/dwarfdump/print_die.c:1533:16
2859 #2 0x562f28 in get_attr_value /home/ubuntu/subjects/
2860 build-asan/libdwarf/dwarfdump/print_die.c:5030:24
2861 #3 0x555f86 in print_attribute /home/ubuntu/subjects/
2862 build-asan/libdwarf/dwarfdump/print_die.c:3357:13
2863
2864 After fixes applied dwarfdump says:
2865 ERROR: dwarf_attrlist: DW_DLE_DW_DLE_ATTR_OUTSIDE_SECTION(281)
2866 </pre>
2867
2868 datefixed: 2017-03-21
2869 references: regressiontests/marcel/crash6
2870 gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
2871 tarrelease: libdwarf-20180129.tar.gz
2872 endrec: DW201703-006
2873
2874 id: DW201703-005
2875 cve: CVE-2017-9053
2876 datereported: 2017-03-21
2877 reportedby: Marcel Bohme and Van-Thuan Pham
2878 vulnerability: Heap overflow in _dwarf_read_loc_expr_op()
2879 product: libdwarf
2880 description: 5/7. A heap overflow in
2881 _dwarf_read_loc_expr_op() is due to a failure to check
2882 a pointer for being in bounds (in a few places in this
2883 function).
2884 The test object is intentionally corrupted (fuzzed).
2885
2886 <pre>
2887 A portion of sanitizer output with Ubuntu 14.04:
2888 ==180112==ERROR: AddressSanitizer: heap-buffer-overflow
2889 on address 0x60800000bf72 at pc 0x00000084dd52
2890 bp 0x7ffc12136fd0 sp 0x7ffc12136fc8
2891 READ of size 1 at 0x60800000bf72 thread T0
2892 #0 0x84dd51 in _dwarf_read_loc_expr_op /home/ubuntu/subjects/
2893 build-asan/libdwarf/libdwarf/./dwarf_loc.c:250:9
2894 #1 0x841f16 in _dwarf_get_locdesc_c /home/ubuntu/subjects/
2895 build-asan/libdwarf/libdwarf/./dwarf_loc2.c:109:15
2896 #2 0x837d08 in dwarf_get_loclist_c /home/ubuntu/subjects/
2897 build-asan/libdwarf/libdwarf/./dwarf_loc2.c:685:18
2898 #3 0x57dff2 in get_location_list /home/ubuntu/subjects/
2899 build-asan/libdwarf/dwarfdump/print_die.c:3812:16
2900
2901 After fixes applied dwarfdump says:
2902 ERROR: dwarf_get_loclist_c: DW_DLE_LOCEXPR_OFF_SECTION_END
2903 (343) Corrupt dwarf
2904 </pre>
2905
2906 datefixed: 2017-03-21
2907 references: regressiontests/marcel/crash5
2908 gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
2909 tarrelease: libdwarf-20180129.tar.gz
2910 endrec: DW201703-005
2911
2912 id: DW201703-004
2913 cve:
2914 datereported: 2017-03-21
2915 reportedby: Marcel Bohme and Van-Thuan Pham
2916 vulnerability: Heap overflow in set_up_section strlen
2917 product: libdwarf (libelf)
2918 description: 4/7. An apparent heap overflow that
2919 gives the appearance of being in libdwarf is due to
2920 libelf call elf_strptr() failing to fully check
2921 that its arguments make sense.
2922 This is not a bug in libdwarf, it is a libelf bug.
2923 The test object is intentionally corrupted (fuzzed).
2924 The submission was with Ubuntu 14.04. With Ubuntu
2925 16.04 there is no sanitizer error report.
2926 As of 2023 libdwarf no longer calls or references libelf.
2927 <pre>
2928 A portion of sanitizer output with Ubuntu 14.04:
2929 ==180109==ERROR: AddressSanitizer: heap-buffer-overflow
2930 on address 0x60b00000b000 at pc 0x00000048fd12
2931 bp 0x7fff4ad31ef0 sp 0x7fff4ad316b0
2932 READ of size 16 at 0x60b00000b000 thread T0
2933 #0 0x48fd11 in __interceptor_strlen (/home/ubuntu/
2934 subjects/build-asan/libdwarf/dwarfdump/dwarfdump+0x48fd11)
2935 #1 0x7a84a4 in set_up_section /home/ubuntu/
2936 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:285:27
2937 #2 0x79aaa5 in enter_section_in_de_debug_sections_array /home/ubuntu/
2938 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:355:5
2939 #3 0x78170b in _dwarf_setup /home/ubuntu/
2940 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:746:19
2941
2942 With Ubuntu 16.04 libelf one gets:
2943 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
2944 a call to elf_strptr() failed trying to get a section name
2945 </pre>
2946 datefixed:
2947 references: regressiontests/marcel/crash4
2948 gitfixid:
2949 tarrelease: libdwarf-20180129.tar.gz
2950 endrec: DW201703-004
2951
2952 id: DW201703-003
2953 cve:
2954 datereported: 2017-03-21
2955 reportedby: Marcel Bohme and Van-Thuan Pham
2956 vulnerability: Heap overflow in strcmp
2957 product: libdwarf (libelf)
2958 description: 3/7. An apparent heap overflow that
2959 gives the appearance of being in libdwarf is due to
2960 libelf call elf_strptr() failing to fully check
2961 that its arguments make sense.
2962 This is not a bug in libdwarf, it is a libelf bug.
2963 The test object is intentionally corrupted (fuzzed).
2964 The submission was with Ubuntu 14.04. With Ubuntu
2965 16.04 there is no sanitizer error report.
2966
2967
2968 A portion of sanitizer output with Ubuntu 14.04:
2969 <pre>
2970 ==180106==ERROR: AddressSanitizer: heap-buffer-overflow
2971 on address 0x60f00000ef09 at pc 0x000000447300
2972 bp 0x7ffc667dce10 sp 0x7ffc667dc5d0
2973 READ of size 4 at 0x60f00000ef09 thread T0
2974 #0 0x4472ff in __interceptor_strcmp (/home/ubuntu/
2975 subjects/build-asan/libdwarf/dwarfdump/dwarfdump+0x4472ff)
2976 #1 0x79938f in this_section_dwarf_relevant /home/ubuntu/
2977 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:612:12
2978 #2 0x781064 in _dwarf_setup /home/ubuntu/
2979 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:722:14
2980 #3 0x77d59c in dwarf_object_init /home/ubuntu/
2981 subjects/build-asan/libdwarf/libdwarf/dwarf_init_finish.c:922:20
2982 #4 0x899d4f in dwarf_elf_init_file_ownership /
2983 </pre>
2984 With Ubuntu 16.04 libelf one gets:
2985 ERROR: dwarf_elf_init: DW_DLE_ELF_STRPTR_ERROR (30)
2986 a call to elf_strptr() failed trying to get a section name
2987
2988 Fix date is irrelevant, libdwarf no longer uses libelf.
2989 datefixed:
2990 references: regressiontests/marcel/crash3
2991 gitfixid:
2992 tarrelease: libdwarf-20180129.tar.gz
2993 endrec: DW201703-003
2994
2995 id: DW201703-002
2996 cve: CVE-2017-9054
2997 datereported: 2017-03-21
2998 reportedby: Marcel Bohme and Van-Thuan Pham
2999 vulnerability: Heap overflow in _dwarf_decode_s_leb128_chk()
3000 product: libdwarf
3001 description: 2/7. In _dwarf_decode_s_leb128_chk()
3002 a byte pointer was dereferenced just before was checked
3003 as being in bounds.
3004 The test object is intentionally corrupted (fuzzed).
3005 <pre>
3006
3007 A portion of sanitizer output:
3008 .debug_line: line number info for a single cu
3009 ==180103==ERROR: AddressSanitizer: heap-buffer-overflow
3010 on address 0x610000007ffc at pc 0x0000007b0f5b
3011 bp 0x7ffe06bbf510 sp 0x7ffe06bbf508
3012 READ of size 1 at 0x610000007ffc thread T0
3013 #0 0x7b0f5a in _dwarf_decode_s_leb128_chk /home/ubuntu/
3014 subjects/build-asan/libdwarf/libdwarf/dwarf_leb.c:304:9
3015 #1 0x7e753e in read_line_table_program /home/ubuntu/
3016 subjects/build-asan/libdwarf/libdwarf/./
3017 dwarf_line_table_reader_common.c:1167:17
3018 #2 0x7d7fe3 in _dwarf_internal_srclines /home/ubuntu/
3019 subjects/build-asan/libdwarf/libdwarf/./dwarf_line.c:690:15
3020 #3 0x7f9dbb in dwarf_srclines_b /home/ubuntu/
3021 subjects/build-asan/libdwarf/libdwarf/./dwarf_line.c:944:12
3022 #4 0x5caaa5 in print_line_numbers_this_cu /home/ubuntu/
3023 subjects/build-asan/libdwarf/dwarfdump/print_lines.c:762:16
3024
3025 After fix applied one gets:
3026 ERROR: dwarf_srclines: DW_DLE_LEB_IMPROPER (329)
3027 Runs off end of section or CU
3028 </pre>
3029
3030 datefixed: 2017-03-21
3031 references: regressiontests/marcel/crash2
3032 gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
3033 tarrelease: libdwarf-20180129.tar.gz
3034 endrec: DW201703-002
3035
3036 id: DW201703-001
3037 cve: CVE-2017-9055
3038 datereported: 2017-03-21
3039 reportedby: Marcel Bohme and Van-Thuan Pham
3040 vulnerability: Heap overflow in dwarf_formsdata
3041 product: libdwarf
3042 description: 1/7. In dwarf_formsdata() a few
3043 data types were not checked as being in bounds.
3044 The test object is intentionally corrupted (fuzzed).
3045 <pre>
3046
3047 A portion of sanitizer output:
3048 LOCAL_SYMBOLS:
3049 < 1><0x0000002f> DW_TAG_subprogram
3050
3051 ==180088==ERROR: AddressSanitizer: heap-buffer-overflow on
3052 address 0x60800000bf72 at pc 0x0000006cab95 bp
3053 0x7fff31425830 sp 0x7fff31425828
3054 READ of size 1 at 0x60800000bf72 thread T0
3055 #0 0x6cab94 in dwarf_formsdata /home/ubuntu/subjects/
3056 build-asan/libdwarf/libdwarf/dwarf_form.c:937:9
3057 #1 0x567daf in get_small_encoding_integer_and_name /home/
3058 ubuntu/subjects/build-asan/libdwarf/dwarfdump/print_die.c:1533:16
3059 #2 0x576f38 in check_for_type_unsigned /home/ubuntu/
3060 subjects/build-asan/libdwarf/dwarfdump/print_die.c:4301:11
3061 #3 0x56ad8c in formxdata_print_value /home/ubuntu/
3062 subjects/build-asan/libdwarf/dwarfdump/print_die.c:4374:39
3063 #4 0x5643be in get_attr_value /home/ubuntu/
3064 subjects/build-asan/libdwarf/dwarfdump/print_die.c:5140:24
3065 #5 0x555f86 in print_attribute /home/ubuntu/subjects/build
3066 ...
3067
3068 After fixes applied dwarfdump gets:
3069 ERROR: dwarf_attrlist: DW_DLE_DW_DLE_ATTR_OUTSIDE_SECTION(281)
3070 </pre>
3071 datefixed: 2017-03-21
3072 references: regressiontests/marcel/crash1
3073 gitfixid: cc37d6917011733d776ae228af4e5d6abe9613c1
3074 tarrelease: libdwarf-20180129.tar.gz
3075 endrec: DW201703-001
3076
3077 id: DW201611-008
3078 cve: CVE-2016-10254
3079 datereported: 2016-11-04
3080 reportedby: Agostino Sarubbo
3081 vulnerability: Crash libelf reading fuzzed object.
3082 product: libdwarf
3083 description: This is a weakness in libelf checking.
3084 Testing that current libdwarf deals with it properly,
3085 though it was never a bug in libdwarf.
3086 The CVE mentions libdwarf.
3087 <pre>
3088 blogs.gentoo.org/ago/2016/11/04/elfutils-memory-allocation-failure-in-allocate_elf-common-h/
3089 www.openwall.com/lists/oss-security/2017/03/22/2
3090 </pre>
3091 Fixed in gentoo libelf by Agostino Sarubbo.
3092 datefixed: 2016-11-04
3093 references: regressiontests/sarubbo-b/00011-elfutils-memalloc-allocate_elf
3094 gitfixid:
3095 tarrelease: libdwarf-20180129.tar.gz
3096 endrec: DW201611-008
3097
3098 id: DW201611-007
3099 cve: CVE-2016-10255
3100 datereported: 2016-11-04
3101 reportedby: Agostino Sarubbo
3102 vulnerability: Crash libelf reading fuzzed object.
3103 product: libdwarf
3104 description: This is a weakness in libelf checking.
3105 Testing that current libdwarf deals with it properly,
3106 though it was never a bug in libdwarf.
3107 The CVE mentions libdwarf.
3108 <pre>
3109 bugzilla.redhat.com/show_bug.cgi?id=1387584
3110 www.openwall.com/lists/oss-security/2017/03/22/1
3111 blogs.gentoo.org/ago/2016/11/04/elfutils-memory-allocation-failure-in-__libelf_set_rawdata_wrlock-elf_getdata-c/
3112 </pre>
3113 Fixed in gentoo libelf by Agostino Sarubbo.
3114 datefixed: 2016-11-04
3115 references: regressiontests/sarubbo-a/00031-elfutils-memalloc-__libelf_set_rawdata_wrlock
3116 gitfixid:
3117 tarrelease: libdwarf-20180129.tar.gz
3118 endrec: DW201611-007
3119
3120 id: DW201611-006
3121 cve: CVE-2016-9480
3122 datereported: 2016-11-14
3123 reportedby: Puzzor (Shi Ji)
3124 vulnerability: Heap buffer overflow
3125 product: libdwarf
3126 description: An object with corrupt contents causes a memory reference
3127 out of bounds, a heap buffer overflow reference.
3128 <pre>
3129 heap-buffer-overflow in dwarf_util.c:208 for val_ptr
3130
3131 # Version
3132 bb9a3492ac5713bed9cf3ae58ddb7afa6e9e98f8
3133 (in regression tests here named heap_buf_overflow.o)
3134
3135 # ASAN Output
3136 <0> tag: 17 DW_TAG_compile_unit name: "strstrnocase.c" FORM 0xe "DW_FORM_strp"
3137 <1> tag: 46 DW_TAG_subprogram name: "is_strstrnocase" FORM 0xe "DW_FORM_strp"
3138 =================
3139 ==1666==ERROR: AddressSanitizer: heap-buffer-overflow on address
3140 0xb5846db9 at p
3141 c 0x080b3a1b bp 0xbfa75d18 sp 0xbfa75d08
3142 READ of size 1 at 0xb5846db9 thread T0
3143 #0 0x80b3a1a in _dwarf_get_size_of_val /home/puzzor/libdwarf-code/
3144 libdwarf/dwarf_util.c:208
3145 #1 0x8056602 in _dwarf_next_die_info_ptr /home/puzzor/libdwarf-code/
3146 libdwarf/dwarf_die_deliv.c:1353
3147 #2 0x8057f4b in dwarf_child /home/puzzor/libdwarf-code/libdwarf/
3148 dwarf_die_de liv.c:1688
3149 #3 0x804b5fa in get_die_and_siblings simplereader.c:637
3150 #4 0x804b65c in get_die_and_siblings simplereader.c:643
3151 #5 0x804b3f3 in read_cu_list simplereader.c:611
3152 #6 0x804aeae in main simplereader.c:533
3153 #7 0xb6ffe275 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x18275)
3154 #8 0x80491c0 (/home/puzzor/libdwarf-code/dwarfexample/simplereader+
3155 0x80491c 0)
3156
3157 0xb5846db9 is located 0 bytes to the right of 249-byte region
3158 [0xb5846cc0,0xb5846db9)
3159 allocated by thread T0 here:
3160 #0 0xb727fae4 in __interceptor_malloc (/usr/lib/i386-linux-gnu/libasan.so.
3161 3+ 0xc3ae4)
3162 #1 0xb71a9b98 (/usr/lib/i386-linux-gnu/libelf.so.1+0x9b98)
3163 </pre>
3164 For the orignal bug report see
3165 <pre>
3166 https://sourceforge.net/p/libdwarf/bugs/5/
3167 </pre>
3168 datefixed: 2016-11-16
3169 references: regressiontests/puzzor/heap_buf_overflow.o
3170 gitfixid: 5dd64de047cd5ec479fb11fe7ff2692fd819e5e5
3171 tarrelease: libdwarf-20180129.tar.gz
3172 endrec:
3173
3174 id: DW201611-005
3175 cve: CVE-2016-9558
3176 datereported: 2016-11-11
3177 reportedby: Agostino Sarubbo
3178 vulnerability: negation of -9223372036854775808 cannot be represented in type
3179 product: libdwarf
3180 description: With the right bit pattern in a signed leb number
3181 the signed leb decode would execute an unary minus with undefined
3182 effect. This is not known to generate an incorrect value,
3183 but it could, one supposes.
3184 datefixed: 2016-11-11
3185 references: regressiontests/sarubbo-2/00050-libdwarf-negate-itself
3186 gitfixid: 4f19e1050cd8e9ddf2cb6caa061ff2fec4c9b5f9
3187 tarrelease: libdwarf-20180129.tar.gz
3188 endrec:
3189
3190 id: DW201611-004
3191 cve: CVE-2016-9275
3192 datereported: 2016-11-02
3193 reportedby: Agostino Sarubbo
3194 vulnerability: Heap overflow in dwarf_skim_forms()
3195 product: libdwarf
3196 description: If a non-terminated string
3197 in a DWARF5 macro section
3198 ends a section it can result in accessing memory not
3199 in the application (out of bounds read).
3200 dwarf_macro5.c(in _dwarf_skim_forms()).
3201 datefixed: 2016-11-04
3202 references: regressiontests/sarubbo-2/00027-libdwarf-heapoverflow-_dwarf_skim_forms
3203 gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
3204 tarrelease: libdwarf-20180129.tar.gz
3205 endrec:
3206
3207 id: DW201611-003
3208 cve: CVE-2016-9276
3209 datereported: 2016-11-02
3210 reportedby: Agostino Sarubbo
3211 vulnerability: Bad aranges length leads to overflow and bad pointer
3212 product: libdwarf
3213 description: in dwarf_arange.c(dwarf_get_aranges_list) an aranges
3214 header with corrupt data could, with an overflowing calculation,
3215 result in pointers to invalid or inappropriate memory being
3216 dereferenced.
3217 datefixed: 2016-11-04
3218 references: regressiontests/sarubbo-2/00026-libdwarf-heapoverflow-dwarf_get_aranges_list
3219 gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
3220 tarrelease: libdwarf-20180129.tar.gz
3221 endrec:
3222
3223 id: DW201611-002
3224 cve:
3225 datereported: 2016-11-02
3226 reportedby: Agostino Sarubbo
3227 vulnerability: heap overflow in get_attr_value
3228 product: libdwarf
3229 description: Libdwarf failed to check for a bogus
3230 length in dwarf_form.c (dwarf_formblock()) resulting
3231 in a pointer pointing outside of the intended memory
3232 region. Anything could happen in the subsequent
3233 use of the bogus pointer.
3234 <pre>
3235 0x61300000de1c is located 0 bytes to the right of 348-byte region
3236 [0x61300000dcc0,0x61300000de1c)
3237 allocated by thread T0 here:
3238 #0 0x4c0ad8 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1-
3239 r2/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52
3240 #1 0x7f883cfc6206 in __libelf_set_rawdata_wrlock /tmp/portage/dev-
3241 libs/elfutils-0.166/work/elfutils-0.166/libelf/elf_getdata.c:318
3242 </pre>
3243 datefixed: 2016-11-04
3244 references: regressiontests/sarubbo-2/00025-libdwarf-heapoverflow-get_attr_value
3245 gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
3246 tarrelease: libdwarf-20170416.tar.gz
3247 endrec:
3248
3249 id: DW201611-001
3250 cve:
3251 datereported: 2016-11-02
3252 reportedby: Agostino Sarubbo
3253 vulnerability: Memory allocation failure in do_decompress_zlib
3254 product: libdwarf
3255 description: In decompressing a zlib compressed section if
3256 the decompressed section size is nonsense (too large)
3257 an attempted malloc will fail and could let an exception
3258 propagate to callers.
3259 <pre>
3260 ==27994==WARNING: AddressSanitizer failed to allocate 0x62696c2f7273752f
3261 bytes ==27994==AddressSanitizer's allocator is terminating the process
3262 instead of returning 0
3263 ...
3264 #6 0x4c0ab1 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1-
3265 r2/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:53
3266 #7 0x5b582e in do_decompress_zlib
3267 /tmp/dwarf-20161021/libdwarf/dwarf_init_finish.c:1085:12
3268 #8 0x5b582e in _dwarf_load_section
3269 /tmp/dwarf-20161021/libdwarf/dwarf_init_finish.c:1159
3270 #9 0x5bb479 in dwarf_srcfiles
3271 /tmp/dwarf-20161021/libdwarf/./dwarf_line.c:336:11
3272 #10 0x5145cd in print_one_die_section
3273 </pre>
3274 datefixed: 2016-11-04
3275 references: regressiontests/sarubbo-2/00024-libdwarf-memalloc-do_decompress_zlib
3276 gitfixid: 583f8834083b5ef834c497f5b47797e16101a9a6
3277 tarrelease: libdwarf-20170416.tar.gz
3278 endrec: DW201611-001
3279
3280 id: DW201610-003
3281 cve: CVE-2016-8679
3282 datereported: 2016-10-02
3283 reportedby: agostino
3284 vulnerability: dwarf_get_size_of_val out of bounds read
3285 product: libdwarf
3286 description: The _dwarf_get_size_of_val function in
3287 libdwarf/dwarf_util.c in Libdwarf before 20161124
3288 allows remote attackers to cause a denial of service
3289 (out-of-bounds read) by calling the dwarfdump command
3290 on a crafted file.
3291 <pre>
3292 www.securityfocus.com/bid/93601
3293 blogs.gentoo.org/ago/2016/10/06/libdwarf-heap-based-
3294 buffer-overflow-in-_dwarf_get_size_of_val-dwarf_util-c/
3295 </pre>
3296 datefixed: 2016-10-04
3297 references:
3298 gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
3299 endrec: DW201610-003
3300
3301 id: DW201610-002
3302 cve: CVE-2016-8680
3303 datereported: 2016-10-02
3304 reportedby: agostino
3305 vulnerability: Out of bounds read
3306 product: libdwarf
3307 description: The _dwarf_get_abbrev_for_code function in
3308 dwarf_util.c in libdwarf 20161001 and earlier allows remote
3309 attackers to cause a denial of service (out-of-bounds read)
3310 by calling the dwarfdump command on a crafted file.
3311 <pre>
3312 bugzilla.redhat.com/show_bug.cgi?id=1385690
3313 www.securityfocus.com/bid/93592
3314 Duplicate of CVE-2016-8681
3315 </pre>
3316 datefixed: 2016-10-04
3317 references:
3318 gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
3319 endrec: DW201610-002
3320
3321 id: DW201610-001
3322 cve: CVE-2016-8681
3323 datereported: 2016-10-02
3324 reportedby: agostino
3325 vulnerability: Out of bounds read
3326 product: libdwarf
3327 description: The _dwarf_get_abbrev_for_code function in
3328 dwarf_util.c in libdwarf 20161001 and earlier allows remote
3329 attackers to cause a denial of service (out-of-bounds read)
3330 by calling the dwarfdump command on a crafted file.
3331 <pre>
3332 bugzilla.redhat.com/show_bug.cgi?id=1385690
3333 www.securityfocus.com/bid/93592
3334 Duplicate of CVE-2016-8680
3335 </pre>
3336 datefixed: 2016-10-04
3337 references:
3338 gitfixid: efe48cad0693d6994d9a7b561e1c3833b073a624
3339 endrec: DW201610-001
3340
3341 id: DW201609-004
3342 cve: CVE-2016-7510
3343 datereported: 2016-09-17
3344 reportedby: Puzzor
3345 vulnerability: libdwarf 20160613 Out-of-Bounds read
3346 product: libdwarf
3347 description: read line table program Out-of-Bounds read
3348 line_ptr in dwarf_line_table_reader_common.c:1433 Out-of-Bounds read
3349 See:
3350 <pre>
3351 https://bugzilla.redhat.com/show_bug.cgi?id=1377015
3352 https://sourceforge.net/p/libdwarf/bugs/4/
3353 </pre>
3354 <pre>
3355 # Address Sanitizer Output
3356 ==27763==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf4603f84 at pc 0x8408ede bp 0xffff6518 sp 0xffff6510
3357 READ of size 1 at 0xf4603f84 thread T0
3358 #0 0x8408edd in read_line_table_program /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line_table_reader_common.c:1433
3359 #1 0x83f716c in _dwarf_internal_srclines /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line.c:690
3360 #2 0x841436c in dwarf_srclines_b /home/puzzor/test-fuzzing/code/libdwarf/./dwarf_line.c:944
3361 #3 0x81fbc28 in print_line_numbers_this_cu /home/puzzor/test-fuzzing/code/dwarfdump/print_lines.c:763
3362 #4 0x815c191 in print_one_die_section /home/puzzor/test-fuzzing/code/dwarfdump/print_die.c:850
3363 #5 0x81565c1 in print_infos /home/puzzor/test-fuzzing/code/dwarfdump
3364 </pre>
3365 datefixed: 2016-09-23
3366 references: regressiontests/DW201609-004/poc
3367 gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
3368 tarrelease: libdwarf-20160923.tar.gz
3369 endrec:
3370
3371 id: DW201609-003
3372 cve: CVE-2016-7410
3373 datereported: 2016-09-13
3374 reportedby: https://marc.info/?l=oss-security&m=147391785920048&w=2
3375 vulnerability: libdwarf 20160613 heap-buffer-overflow
3376 product: libdwarf
3377 description: With AddressSanitizer,
3378 we found a Heap-Buffer-overflow in the latest
3379 release version of dwarfdump. The crash output is as follows:
3380 <pre>
3381 See also:
3382 https://marc.info/?l=oss-security&m=147378394815872&w=2
3383 The testcase poc is from this web page.
3384 </pre>
3385 <pre>
3386 ==17411==ERROR: AddressSanitizer: heap-buffer-overflow on address
3387 0xf3808904 at pc 0x80a6f76 bp 0xffb95e78 sp 0xffb95a5c
3388 READ of size 4 at 0xf3808904 thread T0
3389 ==17411==WARNING: Trying to symbolize code, but external symbolizer is
3390 not initialized!
3391 #0 0x80a6f75 in __interceptor_memcpy ??:?
3392 #1 0x8426c3b in _dwarf_read_loc_section
3393 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc.c:919
3394 #2 0x84250e2 in _dwarf_get_loclist_count
3395 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc.c:970
3396 #3 0x8438826 in dwarf_get_loclist_c
3397 /home/starlab/fuzzing/dwarf-20160613/libdwarf/./dwarf_loc2.c:551
3398 #4 0x81a1be8 in get_location_list
3399 /home/starlab/fuzzing/dwarf-20160613/dwarfdump/print_die.c:3523
3400 #5 0x816e1a2 in print_attribute
3401 </pre>
3402 _dwarf_get_loclist_header_start() is not cautious about values
3403 in the header being absurdly large.
3404 Unclear as yet if this is the problem
3405 but it is a potential problem (fixed for next release).
3406 <pre>
3407 Address Sanitizer in gcc reproduces the report.
3408 In _dwarf_read_loc_section() the simple calculation of
3409 loc_section_end was wrong, so end-of section was
3410 incorrect for the local reads.
3411 With that fixed we get DW_DLE_READ_LITTLEENDIAN_ERROR when
3412 libdwarf attempts to read off end of section.
3413 </pre>
3414 datefixed: 2016-09-23
3415 references: regressiontests/DW201609-003/poc
3416 gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
3417 tarrelease: libdwarf-20160923.tar.gz
3418 endrec:
3419
3420 id: DW201609-002
3421 cve: CVE-2016-7511
3422 datereported: 2016-09-18
3423 reportedby: Shi Ji (@Puzzor)
3424 vulnerability: libdwarf 20160613 Integer Overflow
3425 product: libdwarf
3426 description: In dwarf_get_size_of_val() with
3427 fuzzed DWARF data we get a SEGV.
3428 <pre>
3429 See
3430 https://sourceforge.net/p/libdwarf/bugs/3/
3431 </pre>
3432 <pre>
3433 ==6825== ERROR: AddressSanitizer: SEGV on unknown address 0x0583903c (pc 0xb61f1a98 sp 0xbfa388b4 bp 0xbfa38d08 T0)
3434 AddressSanitizer can not provide additional info.
3435 #1 0xb61e3c0b (/usr/lib/i386-linux-gnu/libasan.so.0+0xdc0b)
3436 #2 0x80a21b1 in _dwarf_get_size_of_val /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_util.c:210
3437 #3 0x8054214 in _dwarf_next_die_info_ptr /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1340
3438 #4 0x80557a5 in dwarf_child /home/fuzzing/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1640
3439 #5 0x804b23f in get_die_and_siblings /home/fuzzing/fuzzing/dwarf-20160613/dwarfexample/./simplereader.c:573
3440 </pre>
3441 _dwarf_make_CU_Context() is insufficiently cautious about
3442 the length of a CU being absurd.
3443 Unclear as yet if this is the problem
3444 but it is a problem and is fixed for next release.
3445 datefixed: 2016-09-23
3446 references: regressiontests/DW201609-002/DW201609-002-poc
3447 gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
3448 tarrelease: libdwarf-20160923.tar.gz
3449 endrec:
3450
3451 id: DW201609-001
3452 cve:
3453 datereported: 2016-09-16
3454 reportedby: STARLAB
3455 https://sourceforge.net/p/libdwarf/bugs/2/
3456 vulnerability: libdwarf 20160613 die_info_ptr in dwarf_die_deliv.c: 1533 Out-Of_bounds
3457 product: libdwarf
3458 description: At line 1533 of dwarf_die_deliv.c a
3459 pointer dereference is done with a pointer pointing
3460 past the end of the CU data.
3461 <pre>
3462 see
3463 https://sourceforge.net/p/libdwarf/bugs/2/
3464 </pre>
3465 <pre>
3466 ==8054==ERROR: AddressSanitizer: heap-buffer-overflow on
3467 address 0xf4c027ab at pc 0x819e4a4 bp 0xff88eb38 sp 0xff88eb30
3468 READ of size 1 at 0xf4c027ab thread T0
3469 #0 0x819e4a3 in dwarf_siblingof_b /home/starlab/fuzzing/dwarf-20160613/libdwarf/dwarf_die_deliv.c:1533
3470 #1 0x8116201 in print_die_and_children_internal /home/starlab/fuzzing/dwarf-20160613/dwarfdump/print_die.c:1157
3471 Bug report on sourceforge.net bug list for libdwarf.
3472 The bad pointer dereference is due to libdwarf
3473 not noticing that the DWARF in that file is corrupt.
3474 In addition
3475 The code was not noticing that it could dereference
3476 a pointer that pointed out of bounds in the end-sibling-list
3477 loop.
3478 </pre>
3479 <pre>
3480 The example from the bug report (DW201609-001-poc) has
3481 the same problem.
3482 dwarfdump now reports DW_DLE_SIBLING_LIST_IMPROPER
3483 on both test2.o and DW201609-001-poc.
3484 </pre>
3485 datefixed: 2016-09-17
3486 references: regressiontests/DW201609-001/test2.o
3487 regressiontests/DW201609-001/DW201609-001-poc
3488 gitfixid: 3767305debcba8bd7e1c483ae48c509d25399252
3489 tarrelease: libdwarf-20160923.tar.gz
3490 endrec:
3491
3492 id: DW201605-019
3493 cve: CVE-2016-5028
3494 datereported: 2016-05-23
3495 reportedby: Yue Liu
3496 vulnerability: Null dereference in print_frame_inst_bytes (dwarfdump)
3497 product: libdwarf
3498 description: The null dereference is due to a corrupted
3499 object file. Libdwarf was not dealing with empty (bss-like)
3500 sections since it really did not expect to see such in
3501 sections it reads! Now libdwarf catches the object error
3502 so dwarfdump sees the section as empty (as indeed it is!).
3503 datefixed: 2016-05-23
3504 references: regressiontests/liu/NULLdeference0522c.elf
3505 gitfixid: a55b958926cc67f89a512ed30bb5a22b0adb10f4
3506 tarrelease: libdwarf-20160923.tar.gz
3507 endrec:
3508
3509 id: DW201605-018
3510 cve: CVE-2016-5029
3511 datereported: 2016-05-22
3512 reportedby: Yue Liu
3513 vulnerability: Null dereference in create_fullest_file_path().
3514 product: libdwarf
3515 description: The null dereference in create_fullest_file_path()
3516 causes a crash. This is due to corrupted dwarf and the fix
3517 detects this corruption and if that null string pointer
3518 happens undetected a static string is substituted so
3519 readers can notice the situation.
3520 <pre>
3521 202 }
3522 203 if (dirno > 0 && fe->fi_dir_index > 0) {
3523 204 inc_dir_name = (char *)
3524 line_context->lc_include_directories[
3525 205 fe->fi_dir_index - 1];
3526 206 incdirnamelen = strlen(inc_dir_name); <- $pc
3527 207 }
3528 208 full_name = (char *) _dwarf_get_alloc(dbg,
3529
3530 #0 create_fullest_file_path (dbg=<optimized out>,
3531 fe=0x68d510, line_context=0x68c4f0, name_ptr_out=<optimized
3532 out>, error=0x7fffffffe2b8) at ./dwarf_line.c:206
3533
3534 #1 0x00007ffff7b6d3f9 in dwarf_filename (context=<optimized
3535 out>, fileno_in=<optimized out>, ret_filename=0x7fffffffe280,
3536 error=0x7fffffffe2b8) at ./dwarf_line.c:1418
3537
3538 #2 dwarf_linesrc (line=<optimized out>,
3539 ret_linesrc=<optimized out>, error=<optimized out>) at
3540 ./dwarf_line.c:1436
3541 </pre>
3542 datefixed: 2016-05-22
3543 references: regressiontests/liu/NULLdereference0522.elf
3544 gitfixid: acae971371daa23a19358bc62204007d258fbc5e
3545 tarrelease: libdwarf-20160923.tar.gz
3546 endrec:
3547
3548 id: DW201605-017
3549 cve: CVE-2016-5030
3550 datereported: 2016-05-19
3551 reportedby: Yue Liu
3552 vulnerability: Null dereference bug in _dwarf_calculate_info_section_end_ptr().
3553 product: libdwarf
3554 description:
3555 NULL dereference bug in _dwarf_calculate_info_section_end_ptr().
3556 <pre>
3557 1742 Dwarf_Off off2 = 0;
3558 1743 Dwarf_Small *dataptr = 0;
3559 1744
3560 1745 dbg = context->cc_dbg;
3561 1746 dataptr = context->cc_is_info? dbg->de_debug_info.dss_data: <- $pc
3562 1747 dbg->de_debug_types.dss_data;
3563 1748 off2 = context->cc_debug_offset;
3564 1749 info_start = dataptr + off2;
3565 1750 info_end = info_start + context->cc_length +
3566
3567 #0 _dwarf_calculate_info_section_end_ptr
3568 (context=context@entry=0x0) at dwarf_query.c:1746
3569
3570 #1 0x00002aaaaace307d in
3571 _dwarf_extract_string_offset_via_str_offsets
3572 (dbg=dbg@entry=0x655a70, info_data_ptr=0x6629f0
3573 "", attrnum=attrnum@entry=121,
3574 attrform=attrform@entry=26, cu_context=0x0,
3575 str_sect_offset_out=str_sect_offset_out@entry=0x7fffffffd718,
3576 error=error@entry=0x7fffffffd878) at dwarf_form.c:1099
3577
3578 #2 0x00002aaaaacf4ed7 in dwarf_get_macro_defundef
3579 (macro_context=macro_context@entry=0x65b790,
3580 op_number=op_number@entry=1,
3581 line_number=line_number@entry=0x7fffffffd858,
3582 index=index@entry=0x7fffffffd860,
3583 offset=offset@entry=0x7fffffffd868,
3584 forms_count=forms_count@entry=0x7fffffffd7ce,
3585 macro_string=macro_string@entry=0x7fffffffd870,
3586 error=error@entry=0x7fffffffd878) at dwarf_macro5.c:557
3587
3588 ------
3589
3590 _dwarf_calculate_info_section_end_ptr (context=context@entry=0x0) at
3591 dwarf_query.c:1746
3592 1746 dataptr = context->cc_is_info? dbg->de_debug_info.dss_data:
3593 gef> p/x $rdi
3594 $4 = 0x0
3595 </pre>
3596 datefixed: 2016-05-22
3597 references: regressiontests/liu/NULLdereference0519.elf
3598 gitfixid: 6fa3f710ee6f21bba7966b963033a91d77c952bd
3599 tarrelease: libdwarf-20160923.tar.gz
3600 endrec:
3601
3602 id: DW201605-016
3603 cve:
3604 datereported: 2016-05-19
3605 reportedby: Yue Liu
3606 vulnerability: Invalid dwarf leads to
3607 dwarfdump crash in print_frame_inst_bytes.
3608 product: dwarfdump
3609 description: Corrupted dwarf crashes dwarfdump
3610 <pre>
3611 1297 }
3612 1298 len = len_in;
3613 1299 endpoint = instp + len;
3614 1300 for (; len > 0;) {
3615 1301 unsigned char ibyte = *instp; <- $pc
3616 1302 int top = ibyte & 0xc0;
3617 1303 int bottom = ibyte & 0x3f;
3618 1304 int delta = 0;
3619 1305 int reg = 0;
3620
3621 #0 print_frame_inst_bytes (dbg=dbg@entry=0x655ca0,
3622 cie_init_inst=<optimized out>, len_in=<optimized out>,
3623 data_alignment_factor=-4, code_alignment_factor=4,
3624 addr_size=addr_size@entry=4, offset_size=4, version=3,
3625 config_data=config_data@entry=0x63cda0 <g_config_file_data>)
3626 at print_frames.c:1301
3627
3628 #1 0x000000000041b70c in print_one_cie
3629 (dbg=dbg@entry=0x655ca0, cie=<optimized out>,
3630 cie_index=cie_index@entry=2, address_size=<optimized out>,
3631 config_data=config_data@entry=0x63cda0 <g_config_file_data>)
3632 at print_frames.c:1161
3633
3634 #2 0x000000000041cf52 in print_frames (dbg=0x655ca0,
3635 print_debug_frame=print_debug_frame@entry=1, print_eh_frame=0,
3636 config_data=config_data@entry=0x63cda0 <g_config_file_data>)
3637 at print_frames.c:2229
3638
3639 gef> p/x $r13
3640 $1 = 0x4bcad8
3641 gef> p/x *$r13
3642 Cannot access memory at address 0x4bcad8
3643 </pre>
3644 datefixed: 2016-05-22
3645 references: regressiontests/liu/OOB_READ0519.elf
3646 gitfixid: 6fa3f710ee6f21bba7966b963033a91d77c952bd
3647 tarrelease: libdwarf-20160923.tar.gz
3648 endrec:
3649
3650 id: DW201605-015
3651 cve: CVE-2016-5031
3652 datereported: 2016-05-17
3653 reportedby: Yue Liu
3654 vulnerability: OOB read bug in print_frame_inst_bytes()
3655 product: libdwarf
3656 description: Test object shows
3657 an invalid read in print_frame_inst_bytes().
3658 <pre>
3659 1294 for (; len > 0;) {
3660 1295 unsigned char ibyte = *instp; <- $pc
3661 1296 int top = ibyte & 0xc0;
3662
3663 #0 print_frame_inst_bytes (dbg=dbg@entry=0x654c80,
3664 cie_init_inst=<optimized out>, len=503715, data_alignment_factor=-4,
3665 code_alignment_factor=1, addr_size=addr_size@entry=4, offset_size=4,
3666 version=3, config_data=config_data@entry=0x63bda0
3667 <g_config_file_data>) at print_frames.c:1295
3668 #1 0x000000000041b64c in print_one_cie (dbg=dbg@entry=0x654c80,
3669 cie=<optimized out>, cie_index=cie_index@entry=1,
3670 address_size=<optimized out>, config_data=
3671 config_data@entry=0x63bda0 <g_config_file_data>) at print_frames.c:1161
3672 #2 0x000000000041ce92 in print_frames (dbg=0x654c80,
3673 print_debug_frame=print_debug_frame@entry=1, print_eh_frame=0,
3674 config_data=config_data@entry=0x63bda0 <g_config_file_data>)
3675 at print_frames.c:2209
3676
3677 gef> x/10x $r13
3678 0x5e7981: Cannot access memory at address 0x5e7981
3679 gef> p/x $r13
3680 $14 = 0x5e7981
3681 </pre>
3682 datefixed: 2015-05-18
3683 references: regressiontests/liu/OOB0517_03.elf
3684 gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
3685 tarrelease: libdwarf-20160923.tar.gz
3686 endrec:
3687
3688 id: DW201605-014
3689 cve: CVE-2016-5032
3690 datereported: 2016-05-17
3691 reportedby: Yue Liu
3692 vulnerability: OOB read bug in dwarf_get_xu_hash_entry()
3693 product: libdwarf
3694 description: Test object shows
3695 an invalid read in dwarf_get _xu_hash_entry, lin 211.
3696 <pre>
3697 #0 dwarf_get_xu_hash_entry (xuhdr=xuhdr@entry=0x657360,
3698 index=index@entry=2897626028, hash_value=
3699 hash_value@entry=0x7fffffffd5b0,
3700 index_to_sections=index_to_sections@entry=0x7fffffffd5a8,
3701 err=err@entry=0x7fffffffdb08) at dwarf_xu_index.c:211
3702 #1 0x00002aaaaacfd05e in _dwarf_search_fission_for_key (
3703 dbg=0x654a50, error=0x7fffffffdb08, percu_index_out=<synthetic pointer>,
3704 key_in=0x7fffffffd670, xuhdr=0x657360) at dwarf_xu_index.c:363
3705 #2 dwarf_get_debugfission_for_key (dbg=dbg@entry=0x654a50,
3706 key=key@entry=0x7fffffffd670, key_type=key_type@entry=0x2aaaaad15e2a
3707 "tu", percu_out=percu_out@entry=0x65a830,
3708 error=error@entry=0x7fffffffdb08) at dwarf_xu_index.c:577
3709 </pre>
3710 datefixed: 2015-05-18
3711 references: regressiontests/liu/OOB0517_02.elf
3712 gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
3713 tarrelease: libdwarf-20160923.tar.gz
3714 endrec:
3715
3716 id: DW201605-013
3717 cve: CVE-2016-5033
3718 datereported: 2016-05-17
3719 reportedby: Yue Liu
3720 vulnerability: OOB read bug in print_exprloc_content
3721 product: libdwarf
3722 description: Test object shows
3723 an invalid write in print_exprloc_content.
3724 <pre>
3725 #0 print_exprloc_content (dbg=dbg@entry=0x654ea0,
3726 die=die@entry=0x65b110, attrib=attrib@entry=0x65b590,
3727 esbp=esbp@entry=0x7fffffffcef0, showhextoo=1) at print_die.c:4182
3728 #1 0x0000000000412fb1 in get_attr_value (dbg=dbg@entry=0x654ea0,
3729 tag=<optimized out>, die=die@entry=0x65b110,
3730 dieprint_cu_goffset=dieprint_cu_goffset@entry=11,
3731 attrib=attrib@entry=0x65b590, srcfiles=srcfiles@entry=0x0,
3732 cnt=cnt@entry=0, esbp=esbp@entry=0x7fffffffcef0, show_form=0,
3733 local_verbose=0) at print_die.c:4972
3734 </pre>
3735 datefixed: 2015-05-18
3736 references: regressiontests/liu/OOB0517_01.elf
3737 gitfixid: ac6673e32f3443a5d36c2217cb814000930b2c54
3738 tarrelease: libdwarf-20160923.tar.gz
3739 endrec:
3740
3741 id: DW201605-012
3742 cve: CVE-2016-5034
3743 datereported: 2016-05-13
3744 reportedby: Yue Liu
3745 vulnerability: OOB write. From relocation records
3746 product: libdwarf
3747 description: Test object shows
3748 an invalid write in dwarf_elf_access.c
3749 (when doing the relocations).
3750 Adding the relocation value to anything overflowed
3751 and disguised the bad relocation record.
3752 With a 32bit kernel build the test could show
3753 a double-free and coredump due to the unchecked invalid
3754 writes from relocations.
3755 datefixed: 2016-05-17
3756 references: regressiontests/liu/HeapOverflow0513.elf
3757 gitfixid: 10ca310f64368dc083efacac87732c02ef560a92
3758 tarrelease: libdwarf-20160923.tar.gz
3759 endrec:
3760
3761 id: DW201605-011
3762 cve: CVE-2016-5035
3763 datereported: 2016-05-06
3764 reportedby: Yue Liu
3765 vulnerability: OOB read bug in _dwarf_read_line_table_header
3766 product: libdwarf
3767 description: Test object shows
3768 null dereference at line 62
3769 of dwarf_line_table_reader.c.
3770 Frame code and linetable code was not noticing data corruption.
3771 datefixed: 2016-05-12
3772 references: regressiontests/liu/OOB_read4.elf
3773 gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
3774 tarrelease: libdwarf-20160923.tar.gz
3775 endrec:
3776
3777 id: DW201605-010
3778 cve: CVE-2016-5036
3779 datereported: 2016-05-06
3780 reportedby: Yue Liu
3781 vulnerability: OOB read bug in dump_block
3782 product: libdwarf
3783 description: Test object shows
3784 null dereverence at line 186
3785 of dump_block() in print_sections.c
3786 Frame code was not noticing frame data corruption.
3787 datefixed: 2016-05-12
3788 references: regressiontests/liu/OOB_read3.elf
3789 regressiontests/liu/OOB_read3_02.elf
3790 gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
3791 tarrelease: libdwarf-20160923.tar.gz
3792 endrec:
3793
3794 id: DW201605-009
3795 cve: CVE-2016-5037
3796 datereported: 2016-05-05
3797 reportedby: Yue Liu
3798 vulnerability: NULL dereference in _dwarf_load_section
3799 product: libdwarf
3800 description: Test object shows
3801 null dereverence at line 1010
3802 if(!strncmp("ZLIB",(const char *)src,4)) {
3803 in dwarf_init_finish.c
3804 The zlib code was not checking for
3805 a corrupted length-value.
3806 datefixed: 2016-05-06
3807 references: regressiontests/liu/NULLderefer0505_01.elf
3808 gitfixid: b6ec2dfd850929821626ea63fb0a752076a3c08a
3809 tarrelease: libdwarf-20160507.tar.gz
3810 endrec:
3811
3812 id: DW201605-008
3813 cve: CVE-2016-5038
3814 datereported: 2016-05-05
3815 reportedby: Yue Liu
3816 vulnerability: OOB read in dwarf_get_macro_startend_file()
3817 product: libdwarf
3818 description: Test object shows
3819 out of bound read.
3820 OOB at:
3821 line 772 *src_file_name = macro_context->mc_srcfiles[trueindex];
3822 in dwarf_macro5.c
3823 A string offset into .debug_str is outside the bounds
3824 of the .debug_str section.
3825 datefixed: 2016-05-12
3826 references: regressiontests/liu/OOB0505_02.elf
3827 regressiontests/liu/OOB0505_02_02.elf
3828 gitfixid: 82d8e007851805af0dcaaff41f49a2d48473334b
3829 tarrelease: libdwarf-20160923.tar.gz
3830 endrec:
3831
3832 id: DW201605-007
3833 cve: CVE-2016-5039
3834 datereported: 2016-05-05
3835 reportedby: Yue Liu
3836 vulnerability: OOB read bug in get_attr_value()
3837 product: libdwarf
3838 description: Test object shows
3839 out of bound read.
3840 Object had data all-bits-on so
3841 the existing length check did not work
3842 due to wraparound. Added a check
3843 not susceptible to that error (DW_DLE_FORM_BLOCK_LENGTH_ERROR).
3844 datefixed: 2016-05-06
3845 references: regressiontests/liu/OOB0505_01.elf
3846 gitfixid: eb1472afac95031d0c9dd8c11d527b865fe7deb8
3847 gittag: 20160507
3848 tarrelease: libdwarf-20160507.tar.gz
3849 endrec:
3850
3851 id: DW201605-006
3852 cve:
3853 datereported: 2016-05-05
3854 reportedby: Yue Liu
3855 vulnerability: Two Heap-Overflow bug
3856 product: libdwarf
3857 description: Two test objects showing
3858 a heap overflow in libdwarf when
3859 using dwarfdump.
3860 It seems that these were fixed
3861 by the previous git update.
3862 Neither gdb nor valgrind find any errors
3863 when building with yesterday's commit.
3864 datefixed: 2016-05-04
3865 references: regressiontests/liu/free_invalid_address.elf
3866 regressiontests/liu/heapoverflow01b.elf
3867 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
3868 tarrelease: libdwarf-20160507.tar.gz
3869 endrec:
3870
3871 id: DW201605-001
3872 cve: CVE-2016-5044
3873 datereported: 2016-05-02
3874 reportedby: Yue Liu
3875 vulnerability: A specially crafted DWARF section
3876 results in a duplicate free() in libdwarf and
3877 the calling application will crash.
3878 product: libdwarf
3879 description:
3880 In file dwarf_elf_access.c:1071
3881 <pre>
3882 WRITE_UNALIGNED(dbg,target_section + offset,
3883 &outval,sizeof(outval),reloc_size);
3884 </pre>
3885 A crafted ELF file may lead to a large offset value, which
3886 bigger than the size of target_section heap chunk, then this
3887 WRITE_UNALIGNED() function will write the value of &outval
3888 out of the heap chunk.
3889 offset is a 64bit unsigned int value, so this is more than
3890 a heap overflow bug, but also a Out-of-Bound write bug.
3891 So WRITE_UNALIGNED() need more strictly checking to prevent
3892 this.
3893 datefixed: 2016-05-04
3894 references: regressiontests/liu/heapoverflow01.elf
3895 <pre>
3896 https://bugzilla.redhat.com/show_bug.cgi?id=1332141
3897 </pre>
3898 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
3899 gittag: 2016-05-07
3900 tarrelease: libdwarf-20160507.tar.gz
3901 endrec:
3902
3903 id: DW201605-002
3904 cve: CVE-2016-5043
3905 datereported: 2016-05-02
3906 reportedby: Yue Liu
3907 vulnerability: A specially crafted DWARF section
3908 results in a read outside the bounds of in memory
3909 data so the calling application can crash.
3910 product: libdwarf
3911 description: Out of bound read bug in libdwarf git code.
3912
3913 dwarf_dealloc() did not check the Dwarf_Ptr space argument
3914 before using it. This will lead to a out-of-bound read bug.
3915 <pre>
3916 backtrace:
3917 #0 dwarf_dealloc (dbg=dbg@entry=0x655f30, space=0xa0,
3918 alloc_type=alloc_type@entry=1) at dwarf_alloc.c:477
3919 #1 0x00002aaaaacf3296 in dealloc_srcfiles
3920 (dbg=0x655f30, srcfiles=0x66b8f0, srcfiles_count=17) at
3921 dwarf_macro5.c:1025 #2 0x00002aaaaacf50e6 in dealloc_srcfiles
3922 (srcfiles_count=<optimized out>, srcfiles=<optimized out>,
3923 dbg=<optimized out>) at dwarf_macro5.c:1021 -----
3924
3925 gef> p &r->rd_dbg
3926 $14 = (void **) 0x90
3927 </pre>
3928 datefixed: 2016-05-04
3929 references: regressiontests/liu/outofbound01.elf
3930 <pre>
3931 https://bugzilla.redhat.com/show_bug.cgi?id=1332144
3932 </pre>
3933 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
3934 tarrelease: libdwarf-20160507.tar.gz
3935 endrec:
3936
3937 id: DW201605-003
3938 cve: CVE-2016-5042
3939 datereported: 2016-05-02
3940 reportedby: Yue Liu
3941 vulnerability: A specially crafted DWARF section
3942 results in an infinite loop that eventually
3943 crashes the application.
3944 product: libdwarf
3945 description:
3946 In dwarf_get_aranges_list()
3947 an invalid count will iterate, reading from memory
3948 addresses that increase till it all fails.
3949 datefixed: 2016-05-04
3950 references: regressiontests/liu/infiniteloop.elf
3951 <pre>
3952 https://bugzilla.redhat.com/show_bug.cgi?id=1332145
3953 </pre>
3954 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
3955 tarrelease: libdwarf-20160507.tar.gz
3956 endrec:
3957
3958 id: DW201605-004
3959 cve: CVE-2016-5041
3960 datereported: 2016-05-02
3961 reportedby: Yue Liu
3962 vulnerability: A specially crafted DWARF section
3963 results in a null dereference reading debugging
3964 information entries which
3965 crashes the application.
3966 product: libdwarf
3967 description:
3968 If no DW_AT_name is present in a debugging
3969 information entry using DWARF5 macros
3970 a null dereference in dwarf_macro5.c will
3971 crash the application.
3972
3973 datefixed: 2016-05-04
3974 references: regressiontests/liu/null01.elf
3975 <pre>
3976 https://bugzilla.redhat.com/show_bug.cgi?id=1332148
3977 </pre>
3978 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
3979 tarrelease: libdwarf-20160507.tar.gz
3980 endrec:
3981
3982 id: DW201605-005
3983 cve: CVE-2016-5040
3984 datereported: 2016-05-02
3985 reportedby: Yue Liu
3986 vulnerability: A specially crafted DWARF section
3987 results in reading a compilation unit header
3988 that crashes the application.
3989 product: libdwarf
3990 description:
3991 If the data read for a compilation unit header
3992 contains a too large length value the library
3993 will read outside of its bounds and crash the application.
3994 datefixed: 2016-05-04
3995 references: regressiontests/liu/null02.elf
3996 <pre>
3997 https://bugzilla.redhat.com/show_bug.cgi?id=1332149
3998 </pre>
3999 gitfixid: 98a3da1e8237fe0d45b67ef77f3fa5ed9ff0215f
4000 tarrelease: libdwarf-20160507.tar.gz
4001 endrec:
4002
4003 id: DW201605-020
4004 cve: CVE-2016-5027
4005 datereported: 2016-04-25
4006 reportedby: Yue Liu,lieanu
4007 vulnerability: NULL dereference in _dwarf_decode_s_leb128
4008 product: libdwarf
4009 description: dwarf_form.c in libdwarf 20160115 allows
4010 remote attackers to cause a denial of service (crash)
4011 via a crafted elf file
4012 Apparently no crafted object file presented.
4013 However the code fix is presented in the report
4014 at openwall.com.
4015 Discovered the CVE November 2021
4016 To attack the code just pass the argument
4017 Dwarf_Word * leb128_length as a NULL pointer (that is allowed).
4018 The code was fixed in dwarf_leb.c on 2016-04-27 20:00:06.
4019 <pre>
4020 bugzilla.redhat.com/show_bug.cgi?id=1330237
4021 www.openwall.com/lists/oss-security/2016/05/24/1
4022 www.openwall.com/lists/oss-security/2016/05/25/1
4023 </pre>
4024 datefixed: 2016-05-27
4025 references:
4026 gitfixid:
4027 tarrelease: libdwarf-20160507.tar.gz
4028 endrec: DW201605-020
4029
4030 id: DW201601-001
4031 cve: CVE-2016-2091
4032 datereported: 2016-01-12
4033 reportedby: Qixue Xiao
4034 vulnerability: Out of bound read in dwarf_read_cie_fde_prefix()
4035 product: libdwarf
4036 description: Crashes the calling program. Requires
4037 a crafted object file.
4038 <pre>
4039 *** DWARF CHECK: DW_DLE_DEBUG_FRAME_LENGTH_NOT_MULTIPLE
4040 len=0x00000010, len size=0x00000004, extn size=0x00000000, totl
4041 length=0x00000014, addr size=0x00000008, mod=0x00000004 must be zero
4042 in cie, offset 0x00000000. ***
4043 7 ==53495== Invalid read of size 2
4044 1 ==53495== at 0x4C2F7E0: memcpy@@GLIBC_2.14 (in
4045 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
4046 2 ==53495== by 0x43287F: dwarf_read_cie_fde_prefix (dwarf_frame2.c:934)
4047 3 ==53495== by 0x431305: _dwarf_get_fde_list_internal (dwarf_frame2.c:268)
4048 4 ==53495== by 0x42EB5F: dwarf_get_fde_list_eh (dwarf_frame.c:1101)
4049 5 ==53495== by 0x41BABE: print_frames (print_frames.c:1835)
4050 6 ==53495== by 0x40485B: process_one_file (dwarfdump.c:1323)
4051 7 ==53495== by 0x403529: main (dwarfdump.c:630)
4052 www.openwall.com/lists/oss-security/2016/01/19/3
4053 www.openwall.com/lists/oss-security/2016/05/28/8
4054 </pre>
4055 datefixed: 2016-01-21
4056 references: regressiontests/xqx-b/awbug5.elf
4057 gitfixid: d9d40e4d802e626065ce37ff384dd69c43bc499
4058 tarrelease: libdwarf-20160507.tar.gz
4059 endrec: DW201601-001
4060
4061 id: DW201601-002
4062 cve: CVE-2016-2050
4063 datereported: 2016-01-19
4064 reportedby: Qixue Xiao
4065 vulnerability: Out of bound write in get_abbrev_array_info
4066 product: libdwarf
4067 description: Crashes the calling program. Requires
4068 a crafted object file.
4069 <pre>
4070 valgrind ./dwarfdump -ka aw.elf
4071 ==5358== Memcheck, a memory error detector
4072 ==5358== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
4073 ==5358== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
4074 ==5358== Command: ../../llvm-codes/dwarf-20151114/dwarfdump/dwarfdump -ka aw.elf
4075 ==5358==
4076 ==5358== Invalid write of size 8
4077 ==5358== at 0x40DA25: get_abbrev_array_info (in
4078 /home/xqx/test/libdwarf-test/llvm-codes/dwarf-20151114/dwarfdump/dwarfdump)
4079 ==5358== by 0x40FD92: print_one_die_section (in
4080 /home/xqx/test/libdwarf-test/llvm-codes/dwarf-20151114/dwarfdump/dwarfdump)
4081 www.openwall.com/lists/oss-security/2016/01/19/9
4082 www.openwall.com/lists/oss-security/2016/01/25/3
4083 </pre>
4084 datefixed: 2016-01-21
4085 references: regressiontests/xqx-b/aw.elf
4086 gitfixid: d9d40e4d802e626065ce37ff384dd69c43bc499
4087 tarrelease: libdwarf-20160507.tar.gz
4088 endrec: DW201601-002
4089
4090 id: DW201512-001
4091 cve: CVE-2015-8750
4092 datereported: 2015-12-26
4093 reportedby: Qixue Xiao (xqx)
4094 vulnerability: Null pointer dereference in libdwarf
4095 product: libdwarf
4096 description: libdwarf 20151114 and earlier allows remote
4097 attackers to cause a denial of service (NULL pointer
4098 dereference and crash) via a debug_abbrev
4099 section marked NOBITS in an ELF file.
4100 <pre>
4101 bugzilla.redhat.com/show_bug.cgi?id=1294264
4102 www.openwall.com/lists/oss-security/2016/01/07/11
4103 </pre>
4104 datefixed: 2015-12-31
4105 references: regressiontests/xqx-c/awbug6.elf
4106 gitfixid:
4107 tarrelease: libdwarf-20160507.tar.gz
4108 endrec: DW201512-001
4109
4110 id: DW201512-002
4111 cve: CVE-2015-8538
4112 datereported: 2015-12-14
4113 reportedby: Adam Maris
4114 vulnerability: Out-of-bounds read in dwarf_leb.c
4115 product: libdwarf
4116 description: libdwarf 20151114 and earlier allows remote
4117 attackers to cause a denial of service (NULL pointer
4118 dereference and crash) via a debug_abbrev
4119 section marked NOBITS in an ELF file.
4120 The CVE report mentions a reproducer object file
4121 but such is not present.
4122 Due to recent tool advances (like
4123 coverity scan) we are confident this was fixed long ago.
4124 <pre>
4125 bugzilla.redhat.com/show_bug.cgi?id=1291299
4126 www.openwall.com/lists/oss-security/2015/12/10/3
4127 </pre>
4128 datefixed: 2018-01-01
4129 references:
4130 gitfixid:
4131 tarrelease: libdwarf-20160507.tar.gz
4132 endrec: DW201512-002
4133
4134 id: DW201412-001
4135 cve: CVE-2014-9482
4136 datereported: 2014-12-31
4137 reportedby: Adam Maris
4138 vulnerability: Use after free vulnerability in Dwarfdump
4139 product: dwarfdump
4140 description: The use-after-free has no attached testcase
4141 anywhere. Due to recent tool advances (like
4142 coverity scan) we are confident this was fixed long ago.
4143 <pre>
4144 bugzilla.redhat.com/show_bug.cgi?id=1177758
4145 www.openwall.com/lists/oss-security/2014/12/31/3
4146 www.openwall.com/lists/oss-security/2015/01/03/14
4147 </pre>
4148 datefixed: 2018-01-01
4149 references:
4150 gitfixid:
4151 tarrelease: libdwarf-20160507.tar.gz
4152 endrec: DW201412-001
4153