CVE-2025-5915Libarchive: heap buffer over read in copy_from_lzss_window() at…
A vulnerability has been identified in the libarchive library. This flaw can lead to a heap buffer over-read due to the size of a filter block potentially exceeding the Lempel-Ziv-Storer-Schieber (LZSS) window. This means the library may attempt to read beyond the allocated memory buffer, which can result in unpredictable program behavior, crashes (denial of service), or the disclosure of sensitive information from adjacent memory regions.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | libarchive | Fixed | 3.7.7-0ubuntu3 | UBUNTU-CVE-2025-5915 |
| Ubuntu 24.04 | libarchive | Fixed | 3.7.2-2ubuntu0.5 | UBUNTU-CVE-2025-5915 |
| Ubuntu 22.04 | libarchive | Fixed | 3.6.0-1ubuntu1.5 | UBUNTU-CVE-2025-5915 |
| Debian 14 | libarchive | Fixed | 3.7.4-4 | DEBIAN-CVE-2025-5915 |
| Debian 13 | libarchive | Fixed | 3.7.4-4 | DEBIAN-CVE-2025-5915 |
| Debian 12 | libarchive | Fixed | 3.6.2-1+deb12u3 | DEBIAN-CVE-2025-5915 |
| Red Hat Enterprise Linux 10 | bsdtar | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libarchive | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libarchive-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bsdtar | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libarchive | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libarchive-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bsdtar | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libarchive | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libarchive-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bsdcpio | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bsdtar | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libarchive | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libarchive-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libarchive | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libarchive-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libarchive: affected: before 3.8.0; fixed in
3.8.0 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift AI (RHOAI)
Workaround: Upgrade to libarchive version 3.8.0 or later, which includes important security fixes and stability improvements.
References
- https://access.redhat.com/security/cve/CVE-2025-5915
- https://bugzilla.redhat.com/show_bug.cgi?id=2370865
- https://github.com/libarchive/libarchive/pull/2599
- https://github.com/libarchive/libarchive/releases/tag/v3.8.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.