Debian Codegraph @

bugxml/dwarfbug.xml

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