CVE-2026-9149
libsolv: Heap buffer overflow in libsolv repo_add_solv via negative maxsize from crafted .solv file
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 21, 2026
Updated · September 1, 2026
Description
A flaw was found in libsolv. This heap buffer overflow vulnerability occurs when a victim processes a specially crafted .solv file containing negative size values in the repo_add_solv function. This leads to an undersized memory allocation and a subsequent out-of-bounds write. An attacker could exploit this to cause a denial of service (DoS).
Statement
This Moderate impact heap buffer overflow in libsolv occurs when processing specially crafted .solv files with negative size values. Exploitation requires a victim to process attacker-controlled input, such as an untrusted .solv file, which can lead to a denial of service. The vulnerability is not easily exploitable without user interaction or specific application workflows that handle untrusted solvdb inputs.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid processing untrusted .solv files with libsolv or any applications that consume .solv input. Ensure that all .solv data processed by the system originates from trusted sources only.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CWE-122 · Heap-based Buffer Overflow