File: dwarfbug.html

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