<Vulnerability name="CVE-2026-59691">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-07-08T00:00:00</PublicDate>
    <Bugzilla id="2497343" url="https://bugzilla.redhat.com/show_bug.cgi?id=2497343" xml:lang="en:us">
gstreamer: gstreamer: rfbsrc/librfb Hextile heap out-of-bounds write with 16bpp framebuffer
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>7.1</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-787</CWE>
    <Details xml:lang="en:us" source="Mitre">
A heap buffer overflow vulnerability was found in GStreamer's rfbsrc plugin. When a client connects to a malicious RFB/VNC server that advertises a 16bpp framebuffer and sends Hextile-encoded updates, the Hextile background fill path writes 32-bit pixel values into a buffer allocated for 16-bit pixels. This type mismatch causes an out-of-bounds heap write that can lead to denial of service (process crash) and potential memory corruption.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A heap buffer overflow vulnerability was found in GStreamer's rfbsrc plugin. When a client connects to a malicious RFB/VNC server that advertises a 16bpp framebuffer and sends Hextile-encoded updates, the Hextile background fill path writes 32-bit pixel values into a buffer allocated for 16-bit pixels. This type mismatch causes an out-of-bounds heap write that can lead to denial of service (process crash) and potential memory corruption.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as Important severity because it is a heap out-of-bounds write reachable over the network, though exploitation requires user interaction (connecting to a malicious VNC server). The rfbsrc plugin is shipped as part of gstreamer1-plugins-bad-free in Red Hat Enterprise Linux 8, 9, 10, and Red Hat In-Vehicle Operating System (RHIVOS). A user must actively connect a GStreamer pipeline to a malicious RFB/VNC server to trigger this vulnerability. Code execution has not been demonstrated but cannot be ruled out for heap overflows. This is in the same code area as CVE-2026-52720, a few lines further down.
    </Statement>
    <Acknowledgement xml:lang="en:us">
Red Hat would like to thank Clouditera Security (Clouditera), NSFOCUS (NSFOCUS), and Z.ai Security (Z.ai) for reporting this issue.
    </Acknowledgement>
    <Mitigation xml:lang="en:us">
There is no complete mitigation for this vulnerability. The following measures can reduce risk:

1. Do not connect GStreamer pipelines using rfbsrc to untrusted or unknown VNC servers.
2. If the rfbsrc plugin is not required, remove the librfb plugin shared object from the GStreamer plugins directory (typically /usr/lib64/gstreamer-1.0/libgstrfbsrc.so).
3. Network-level controls (firewall rules) can restrict outbound VNC connections to trusted servers only.
    </Mitigation>
    <AffectedRelease cpe="cpe:/o:redhat:enterprise_linux:10.2">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <ReleaseDate>2026-07-28T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:47180">RHSA-2026:47180</Advisory>
        <Package name="gstreamer1-plugins-bad-free">gstreamer1-plugins-bad-free-0:1.26.7-2.el10_2.6</Package>
    </AffectedRelease>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:6">
        <ProductName>Red Hat Enterprise Linux 6</ProductName>
        <FixState>Affected</FixState>
        <PackageName>gstreamer-plugins-bad-free</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Affected</FixState>
        <PackageName>gstreamer1-plugins-bad-free</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Affected</FixState>
        <PackageName>gstreamer-plugins-bad-free</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Affected</FixState>
        <PackageName>gstreamer1-plugins-bad-free</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Affected</FixState>
        <PackageName>gstreamer1-plugins-bad-free</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-59691
https://nvd.nist.gov/vuln/detail/CVE-2026-59691
https://gitlab.freedesktop.org/gstreamer/gstreamer-security/-/merge_requests/100
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/work_items/5173
    </References>
</Vulnerability>