Debian Codegraph @

bugxml/dwarfbuglohi.html

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