CVE Vulnerabilities

CVE-2025-5914

Integer Overflow or Wraparound

Published: Jun 09, 2025 | Modified: Feb 05, 2026
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.8 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A vulnerability has been identified in the libarchive library, specifically within the archive_read_format_rar_seek_data() function. This flaw involves an integer overflow that can ultimately lead to a double-free condition. Exploiting a double-free vulnerability can result in memory corruption, enabling an attacker to execute arbitrary code or cause a denial-of-service condition.

Weakness

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Affected Software

NameVendorStart VersionEnd Version
LibarchiveLibarchive*3.8.0 (excluding)
Red Hat Enterprise Linux 10RedHatlibarchive-0:3.7.7-4.el10_0*
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRedHatlibarchive-0:3.1.2-14.el7_9.1*
Red Hat Enterprise Linux 8RedHatlibarchive-0:3.3.3-6.el8_10*
Red Hat Enterprise Linux 8.2 Advanced Update SupportRedHatlibarchive-0:3.3.2-8.el8_2.1*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatlibarchive-0:3.3.3-1.el8_4.1*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatlibarchive-0:3.3.3-1.el8_4.1*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatlibarchive-0:3.3.3-6.el8_6*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatlibarchive-0:3.3.3-6.el8_6*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatlibarchive-0:3.3.3-6.el8_6*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatlibarchive-0:3.3.3-5.el8_8.1*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatlibarchive-0:3.3.3-5.el8_8.1*
Red Hat Enterprise Linux 9RedHatlibarchive-0:3.5.3-6.el9_6*
Red Hat Enterprise Linux 9RedHatlibarchive-0:3.5.3-6.el9_6*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatlibarchive-0:3.5.3-2.el9_0.1*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibarchive-0:3.5.3-5.el9_2*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatlibarchive-0:3.5.3-4.el9_4.1*
Red Hat OpenShift Container Platform 4.14RedHatrhcos-414.92.202510211419-0*
Red Hat OpenShift Container Platform 4.15RedHatrhcos-415.92.202601271320-0*
Red Hat OpenShift Container Platform 4.16RedHatrhcos-416.94.202601071926-0*
Red Hat OpenShift Container Platform 4.17RedHatrhcos-417.94.202510112152-0*
Red Hat OpenShift Container Platform 4.18RedHatrhcos-418.94.202510230424-0*
Red Hat OpenShift Container Platform 4.19RedHatrhcos-4.19.9.6.202510140714-0*
Red Hat OpenShift Container Platform 4.20RedHatrhcos-4.20.9.6.202509251656-0*
Red Hat Web Terminal 1.11 on RHEL 9RedHatweb-terminal/web-terminal-rhel9-operator:1.11-19*
Red Hat Web Terminal 1.11 on RHEL 9RedHatweb-terminal/web-terminal-tooling-rhel9:1.11-8*
Red Hat Web Terminal 1.12 on RHEL 9RedHatweb-terminal/web-terminal-tooling-rhel9:1.12-4*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-data-index-ephemeral-rhel8:1.36.0-11*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-data-index-postgresql-rhel8:1.36.0-11*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-db-migrator-tool-rhel8:1.36.0-11*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-jobs-service-ephemeral-rhel8:1.36.0-10*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-jobs-service-postgresql-rhel8:1.36.0-10*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-kn-workflow-cli-artifacts-rhel8:1.36.0-4*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-management-console-rhel8:1.36.0-9*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-operator-bundle:1.36.0-12*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-rhel8-operator:1.36.0-18*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-swf-builder-rhel8:1.36.0-11*
RHOSS-1.36-RHEL-8RedHatopenshift-serverless-1/logic-swf-devmode-rhel8:1.36.0-7*
Cert-manager operator for Red Hat OpenShift 1.16RedHatcert-manager/jetstack-cert-manager-rhel9:sha256:1abdfac084e7c86e7a93a19e5cf6b54db79b903bfb7474a42200f753b29eda4b*
Compliance Operator 1RedHatcompliance/openshift-compliance-must-gather-rhel8:sha256:6ab41bd207ae7e33f29adc87e208366472654bb5fb9b1854234cc5674ecc169e*
Compliance Operator 1RedHatcompliance/openshift-compliance-openscap-rhel8:sha256:8294e4b1b531457282270c375f4045ea2baf20a0a8a637006364096a9dec3c41*
Compliance Operator 1RedHatcompliance/openshift-compliance-rhel8-operator:sha256:525c4d55fde92557bd0c3123961cb32eee28edca3aaa884e224d5efa4f3c4f83*
File Integrity Operator 1RedHatcompliance/openshift-file-integrity-rhel8-operator:sha256:86d2378dea6c26da92e19e1a8dc9c9fb0fa8587fd60f83e6cc4503153e753db9*
Red Hat Discovery 2RedHatdiscovery/discovery-server-rhel9:sha256:1c67d8d526ab4f2854947f7dccd8752a2efd414c0f1cbab17706fa91147e7cda*
Red Hat Insights proxy 1.5RedHatinsights-proxy/insights-proxy-container-rhel9:sha256:3fa6c89778502bfb0b16ef8ff3c576467e8a21269afb2380c4ae176ee2fc7fec*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-agent-rhel8:sha256:73ddf7caa420d1cb2027068dabcc7bbf07fdd160135ab12ad0656cec5dbef185*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-all-in-one-rhel8:sha256:540ed092ec7c7e8e07927636ccdb04a662a7108c295f793028494c9184bdf85b*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-collector-rhel8:sha256:86d400b195958c287846ae60d76d2ec277740da3d3de033c7e72ab9a42370b4b*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-es-index-cleaner-rhel8:sha256:d19f9ec47cebda060653f6f810431dbb1ea4209f0a925a9f9a9739e7b7487c33*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-es-rollover-rhel8:sha256:d0878cf4a206d3f70a7a8fc3d5d30f0272697afcb360599b248da9215ec60366*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-ingester-rhel8:sha256:25bf841bfc90928c684f6cf07329d5551806503fbb42806fe564f90fdf98d743*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-operator-bundle:sha256:f250e39033d7cb1d786e5a7ec6798c25d4c5d8c6ecbcf6828915605fc4658da5*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-query-rhel8:sha256:9407bf93b2128d5da4a14b2ba8dd48a27b688fbb962b9383e7cb260ab43b6f24*
Red Hat OpenShift distributed tracing 3.5.1RedHatrhosdt/jaeger-rhel8-operator:sha256:9b66a46b3a28084c45823268d1fa4ae953c50b996f3d265c5fc9f4bc3eb326b4*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:sha256:7b6bd3411ca5ec140968975d4f11f3ec0686b6fbca0ce05288e041ee2e569a89*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:sha256:99cc26f9e0e5b0f29cb7f34fe3aa5c974e935fdf21e0f3ad02f1af571113a32c*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-monitor-rhel9:sha256:f5e1602d72177d77f1b879c76e6f6cfbc2979c136c06ca9f03ea97ffb369b7a6*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-must-gather-rhel9:sha256:6b2da66d287083cf823f6efd8d61ba6a1be10eb6ba8cda484dea4e2ab67ae108*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-podvm-builder-rhel9:sha256:8f29671308ca658e32e97d5c3b482f7541aae1bca1b71f39b3276a9a334d8108*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-podvm-payload-rhel9:sha256:8caeae7ffadf08840a47bc90c390ff402dd7db11457bca48f4e08a11e394be74*
Red Hat OpenShift sandboxed containers 1.1RedHatopenshift-sandboxed-containers/osc-rhel9-operator:sha256:869dabef4a7bf424fb000f5d5f772f02b1c4653fe08fff96ec67e0adf2b2c27d*
LibarchiveUbuntudevel*
LibarchiveUbuntuesm-infra-legacy/trusty*
LibarchiveUbuntuesm-infra/bionic*
LibarchiveUbuntuesm-infra/focal*
LibarchiveUbuntuesm-infra/xenial*
LibarchiveUbuntujammy*
LibarchiveUbuntunoble*
LibarchiveUbuntuoracular*
LibarchiveUbuntuplucky*
LibarchiveUbuntuquesting*

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • If possible, choose a language or compiler that performs automatic bounds checking.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
  • Use libraries or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [REF-106]
  • Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
  • Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
  • Understand the programming language’s underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, “not-a-number” calculations, and how the language handles numbers that are too large or too small for its underlying representation. [REF-7]
  • Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.

References