CVE-2026-95520
Public on 2026-09-29
Modified on 2026-11-11
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.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Mock2 Extra | compat-rpm-411 | Not Affected | ||
| Amazon Linux 2 - Core | rpm | Not Affected | ||
| Amazon Linux 2 - Mock2 Extra | rpm | 2026-11-12 | ALAS2MOCK2-2026-006 | Fixed |
| Amazon Linux 2023 | rpm | 2026-11-12 | ALAS2023-2026-3430 | Fixed |
| Amazon Linux 2027 Preview | rpm | 2026-11-12 | ALAS2027-2026-347 | Fixed |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |