# CVE-2024-31745: libdwarf: Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-31745: 	Libdwarf...

CVE-2024-31745 is fixed in 7 products on 1 platform, first by ALAS2023-2024-579, released March 27, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-31745
- Priority: Routine
- CVSS: n/a (moderate)
- EPSS: n/a
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 27, 2024

## Description

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-31745: 	Libdwarf v0.9.1 was discovered to contain a heap use-after-free via the dw_empty_errlist_item function at /libdwarf/dwarf_alloc.c.  CVE-2024-2002: 	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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libdwarf amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-debuginfo amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-debugsource amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-devel amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-static amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-tools amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |
| Linux | libdwarf-tools-debuginfo amzn 2023 | 1:0.5.0-1.amzn2023.0.3 | [ALAS2023-2024-579](https://patchblox.com/security/data/fix/linux/alas2023-2024-579.md) | Mar 27, 2024 |

---

Data as of 2026-11-10T01:44:33Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
