# CVE-2026-95520: Rpm: rpm: integer overflow in iterreadarchivenext() leads to heap-based buffer overflow when parsing untrusted rpm packages

- Severity: High 7.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-09-29T11:02:06.457Z
- Modified: 2026-11-24T23:17:33.653Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A heap-based buffer overflow flaw was found in rpm. Parsing a symlink entry in an untrusted RPM package whose declared RPMTAG_LONGFILESIZES value is 0xFFFFFFFFFFFFFFFF causes an integer overflow in iterReadArchiveNext() that shrinks a buffer allocation to one byte, after which the payload's independently-controlled cpio filesize field is used to write attacker-controlled data past the end of that allocation. This is reachable via rpm2cpio, rpm2archive, and rpm -qlvp on an  untrusted package.

(As written by CVE List.)

## Affected

- rpm-main: no versions given (not affected: from 6.1.0-1.4.hum1 before *)
- rpm: no versions given
- rhoai/odh-ai-gateway-operator-rhel9: no versions given
- rhoai/odh-dashboard-operator-rhel9: no versions given
- rhoai/odh-data-science-pipelines-operator-controller-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-llmisvc-controller-rhel9: no versions given
- rhoai/odh-kserve-module-operator-rhel9: no versions given
- rhoai/odh-kuberay-operator-controller-rhel9: no versions given
- rhoai/odh-kube-rbac-proxy-rhel9: no versions given
- rhoai/odh-llama-stack-k8s-operator-rhel9: no versions given
- rhoai/odh-maas-controller-rhel9: no versions given
- rhoai/odh-mlflow-operator-rhel9: no versions given
- rhoai/odh-mlflow-rhel9: no versions given
- rhoai/odh-model-controller-rhel9: no versions given
- rhoai/odh-model-registry-operator-rhel9: no versions given
- rhoai/odh-model-serving-api-rhel9: no versions given
- rhoai/odh-ogx-k8s-operator-rhel9: no versions given
- rhoai/odh-ogx-module-operator-rhel9: no versions given
- rhoai/odh-training-operator-rhel9: no versions given
- rhoai/odh-trustyai-service-operator-rhel9: no versions given
- rhoai/odh-workbenches-operator-rhel9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:98095> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-95520> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2537809> (issue-tracking)

## Sources

- CVE List: [CVE-2026-95520](https://www.cve.org/CVERecord?id=CVE-2026-95520), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-95520](https://nvd.nist.gov/vuln/detail/CVE-2026-95520), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-95520 · Whole record: https://cve.day/CVE-2026-95520.json · Rebuilt by cve.day 2026-11-25T22:59:41.440Z
