<Vulnerability name="CVE-2026-56684">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-18T14:19:51</PublicDate>
    <Bugzilla id="2517907" url="https://bugzilla.redhat.com/show_bug.cgi?id=2517907" xml:lang="en:us">
valkey: Valkey: Remote code execution via TLS pending-data processing use-after-free
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-825</CWE>
    <Details xml:lang="en:us" source="Mitre">
Valkey is a distributed key-value database. Prior to 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1, Valkey's tlsProcessPendingData function iterates pending_list while an authenticated client can trigger CLIENT KILL, causing connTLSClose to delete the iterator's cached next node and producing a use-after-free that can crash the server or potentially allow remote code execution when TLS is enabled. This issue is fixed in versions 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Valkey. An authenticated client can trigger a `CLIENT KILL` command while the `tlsProcessPendingData` function iterates a pending list. This action causes `connTLSClose` to delete the iterator's cached next node, leading to a use-after-free vulnerability. This flaw, when Transport Layer Security (TLS) is enabled, may result in a server crash or potentially allow a remote attacker to achieve arbitrary code execution.
    </Details>
    <Mitigation xml:lang="en:us">
Restrict network access to the Valkey instance to trusted clients and networks by configuring firewall rules to limit inbound connections to the Valkey service port. Ensure only authorized and authenticated clients can connect. If TLS is not strictly required, consider disabling it. These network restrictions will persist if the Valkey service is reloaded or restarted.
    </Mitigation>
    <AffectedRelease cpe="cpe:/o:redhat:enterprise_linux:10.2">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <ReleaseDate>2026-09-08T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:64796">RHSA-2026:64796</Advisory>
        <Package name="valkey">valkey-0:8.0.11-1.el10_2</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/o:redhat:enterprise_linux_eus:10.0">
        <ProductName>Red Hat Enterprise Linux 10.0 Extended Update Support</ProductName>
        <ReleaseDate>2026-09-17T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:68601">RHSA-2026:68601</Advisory>
        <Package name="valkey">valkey-0:8.0.11-1.el10_0</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <ReleaseDate>2026-09-08T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:64807">RHSA-2026:64807</Advisory>
        <Package name="valkey">valkey-0:8.0.10-1.el9_8</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-09-01T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:61884">RHSA-2026:61884</Advisory>
        <Package name="valkey-main">valkey-main-9.0.6-0.1.hum1</Package>
    </AffectedRelease>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-56684
https://nvd.nist.gov/vuln/detail/CVE-2026-56684
https://github.com/valkey-io/valkey/commit/7cd5bcb7575d750ec2de618db80da58680a10fe3
https://github.com/valkey-io/valkey/pull/4234
https://github.com/valkey-io/valkey/releases/tag/7.2.14
https://github.com/valkey-io/valkey/releases/tag/8.0.10
https://github.com/valkey-io/valkey/releases/tag/8.1.9
https://github.com/valkey-io/valkey/releases/tag/9.0.5
https://github.com/valkey-io/valkey/releases/tag/9.1.1
https://github.com/valkey-io/valkey/security/advisories/GHSA-53mc-f3m3-99vh
    </References>
</Vulnerability>