Double free in libarchive - CVE-2025-5914

 

Double free in libarchive - CVE-2025-5914

Published: June 16, 2025


Vulnerability identifier: #VU111143
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-5914
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the archive_read_format_rar_seek_data() function. A remote attacker can pass specially crafted data to the application, trigger a double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libarchive
SUSE Manager Proxy 4.3
SUSE Linux Enterprise Server 12 SP5
SUSE Manager Server 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Manager Server
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
Anolis OS
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
FreeBSD
Ubuntu
Development Tools Module
Basesystem Module
openSUSE Leap
openEuler
Fedora
IBM Observability with Instana
Netcool Operations Insight
OpenShift File Integrity Operator
OpenShift Compliance Operator
Red Hat Advanced Cluster Management for Kubernetes
DataStax Hyper-Converged Database
Guardium Data Security Center (GDSC)
IBM Edge Application Manager
Red Hat OpenShift Container Platform
IBM Qradar SIEM
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libarchive (Ubuntu package)
libarchive-devel
libarchive
bsdtar
bsdcpio
libarchive (Red Hat package)
libarchive-debugsource
libarchive13-debuginfo
libarchive13
libarchive-debuginfo
libarchive-help
libarchive13-32bit-debuginfo
bsdtar-debuginfo
libarchive13-64bit-debuginfo
libarchive13-64bit
libarchive13-32bit
bsdcat
bsdunzip
libarchive-doc
IBM API Connect
Red Hat OpenShift Serverless
Multicluster Engine for Kubernetes
OpenShift Virtualization
AMQ Broker
Juniper Junos Space

How to mitigate CVE-2025-5914

Install updates from vendor's website.

libarchive - update to 3.8.0
IBM Observability with Instana - addressed in versions 1.0.299, 1.0.309
DataStax Hyper-Converged Database - update to 1.2.5
Netcool Operations Insight - update to 1.6.15
Guardium Data Security Center (GDSC) - update to 3.8.5
IBM Qradar SIEM - update to 7.5.0 Update Pack 13 IF02
IBM API Connect - update to 10.0.8.5
Red Hat OpenShift Serverless - update to 1
OpenShift File Integrity Operator - update to 1.3.7
OpenShift Compliance Operator - update to 1.8.0
Multicluster Engine for Kubernetes - addressed in versions 2.7.6, 2.8.3
Red Hat Advanced Cluster Management for Kubernetes - addressed in versions 2.12.5, 2.13.4
libarchive (Ubuntu package) - addressed in versions 3.1.2-7ubuntu2.8+esm4, 3.1.2-11ubuntu0.16.04.8+esm2, 3.2.2-3.1ubuntu0.7+esm2, 3.4.0-2ubuntu1.5+esm1, 3.6.0-1ubuntu1.5, 3.6.0-1ubuntu1.6, 3.7.2-2ubuntu0.5, 3.7.2-2ubuntu0.6, 3.7.4-1ubuntu0.3, 3.7.7-0ubuntu2.3, 3.7.7-0ubuntu3.1
libarchive-devel - addressed in versions 3.1.2-14, 3.5.3-6, 3.7.1-5
libarchive - addressed in versions 3.1.2-14, 3.5.3-6, 3.7.1-5
bsdtar - addressed in versions 3.1.2-14, 3.5.3-6, 3.7.1-5
bsdcpio - addressed in versions 3.1.2-14, 3.7.1-5
libarchive (Red Hat package) - addressed in versions 3.1.2-14.el7_9.1, 3.3.2-8.el8_2.1, 3.3.3-1.el8_4.1, 3.3.3-5.el8_8.1, 3.3.3-6.el8_6, 3.3.3-6.el8_10, 3.5.3-2.el9_0.1, 3.5.3-4.el9_4.1, 3.5.3-5.el9_2, 3.5.3-6.el9_6, 3.7.7-4.el10_0
libarchive-debugsource - addressed in versions 3.3.3-32.14.1, 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive-devel - addressed in versions 3.3.3-32.14.1, 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-debuginfo - addressed in versions 3.3.3-32.14.1, 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13 - addressed in versions 3.3.3-32.14.1, 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-debuginfo - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-debugsource - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-devel - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-help - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive13-32bit-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdtar-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdtar - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-64bit-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-64bit - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-32bit - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdcat - addressed in versions 3.5.2-9, 3.7.1-7
bsdcpio - addressed in versions 3.5.2-9, 3.7.1-7
bsdtar - addressed in versions 3.5.2-9, 3.7.1-7
bsdcat - update to 3.7.1-5
bsdunzip - update to 3.7.1-5
libarchive-doc - update to 3.7.1-5
bsdunzip - update to 3.7.1-7
libarchive - update to 3.8.1-1.fc42
OpenShift Virtualization - update to 4.12.20
Red Hat OpenShift Container Platform - addressed in versions 4.14.58, 4.15.61, 4.16.55, 4.17.42, 4.18.27, 4.19.17, 4.20.0
AMQ Broker - update to 7.13.2
Juniper Junos Space - update to 26.1R1 Patch V1

External References

Related Security Bulletins