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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-29 · Modified: 2026-11-24
- Aliases: UBUNTU-CVE-2026-95520, DEBIAN-CVE-2026-95520
- Record: https://cvemate.com/vulnerability/CVE-2026-95520 · JSON: https://cvemate.com/vulnerability/CVE-2026-95520/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- EPSS: 0.175%, percentile 7.304%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian rpm (Debian): All versions (No fix recorded)
- ubuntu rpm (Ubuntu): All versions (No fix recorded)

## References

- <https://access.redhat.com/security/cve/CVE-2026-95520>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2537809>
- <https://ubuntu.com/security/CVE-2026-95520>
- <https://www.cve.org/CVERecord?id=CVE-2026-95520>
- <https://security-tracker.debian.org/tracker/CVE-2026-95520>
- <https://access.redhat.com/errata/RHSA-2026:98095>

---

Data as of 2026-12-05T03:16:11.714Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
