Bug 2497344 (CVE-2026-59692) - CVE-2026-59692 gstreamer1-plugins-bad-free: gstreamer: DTLS certificate Subject DN stack buffer overflow in openssl_verify_callback
Summary: CVE-2026-59692 gstreamer1-plugins-bad-free: gstreamer: DTLS certificate Subje...
Keywords:
Status: NEW
Alias: CVE-2026-59692
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-06 13:42 UTC by OSIDB Bzimport
Modified: 2026-09-10 14:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:47179 0 None None None 2026-07-29 02:02:09 UTC
Red Hat Product Errata RHSA-2026:47180 0 None None None 2026-07-28 19:43:48 UTC
Red Hat Product Errata RHSA-2026:47731 0 None None None 2026-07-29 07:20:46 UTC
Red Hat Product Errata RHSA-2026:54658 0 None None None 2026-08-13 18:08:33 UTC
Red Hat Product Errata RHSA-2026:54659 0 None None None 2026-08-13 16:39:16 UTC
Red Hat Product Errata RHSA-2026:54660 0 None None None 2026-08-13 18:04:37 UTC
Red Hat Product Errata RHSA-2026:54664 0 None None None 2026-08-13 18:17:12 UTC
Red Hat Product Errata RHSA-2026:54665 0 None None None 2026-08-13 18:11:23 UTC
Red Hat Product Errata RHSA-2026:54752 0 None None None 2026-08-14 00:07:12 UTC
Red Hat Product Errata RHSA-2026:56658 0 None None None 2026-08-19 03:48:20 UTC
Red Hat Product Errata RHSA-2026:56772 0 None None None 2026-08-19 05:28:09 UTC

Description OSIDB Bzimport 2026-07-06 13:42:59 UTC
A stack buffer overflow was found in GStreamer's DTLS plugin (gst-plugins-bad). In openssl_verify_callback(), the peer certificate Subject DN is printed using X509_NAME_print_ex() into a memory BIO, then read via BIO_read() into a fixed gchar buf[2048] on the stack. The number of bytes read comes directly from the X509_NAME_print_ex() return value without bounds checking against the buffer size.

A remote DTLS peer can send a certificate with an oversized Subject DN (many long OU fields) so that the formatted output exceeds 2048 bytes, causing a stack buffer overflow during the DTLS handshake.

File: subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c
Function: openssl_verify_callback() (lines 1136-1144)

Exploitability analysis:
- The overflow content is TEXT ONLY (X509_NAME_print_ex with XN_FLAG_MULTILINE escapes all binary/control characters to printable ASCII sequences like \XX)
- Stack canary (-fstack-protector-strong) terminates the process before return address corruption is exploitable
- Arbitrary byte injection is impossible: null bytes become \00 (3 printable chars), high-bit bytes become \XX
- RCE is NOT achievable. Maximum impact is denial of service (crash)

Attack vector: Unauthenticated remote DTLS-SRTP/WebRTC peer triggers this during handshake by presenting a crafted certificate. No user interaction required.

Affected: GStreamer gst-plugins-bad (reproduced on 1.28.3)
Fixed: Planned for GStreamer 1.28.5
Fix MR: https://gitlab.freedesktop.org/gstreamer/gstreamer-security/-/merge_requests/99
Upstream issue: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/work_items/5172 (confidential)
Advisory: GST-SA-2026-0062

Reporter: Clouditera Security; Z.ai Security; NSFOCUS
PSIRT Ticket: PSIRTSUPT-19090

Comment 1 errata-xmlrpc 2026-07-28 19:43:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:47180 https://access.redhat.com/errata/RHSA-2026:47180

Comment 2 errata-xmlrpc 2026-07-29 02:02:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:47179 https://access.redhat.com/errata/RHSA-2026:47179

Comment 3 errata-xmlrpc 2026-07-29 07:20:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:47731 https://access.redhat.com/errata/RHSA-2026:47731

Comment 4 errata-xmlrpc 2026-08-13 16:39:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:54659 https://access.redhat.com/errata/RHSA-2026:54659

Comment 5 errata-xmlrpc 2026-08-13 18:04:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:54660 https://access.redhat.com/errata/RHSA-2026:54660

Comment 6 errata-xmlrpc 2026-08-13 18:08:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:54658 https://access.redhat.com/errata/RHSA-2026:54658

Comment 7 errata-xmlrpc 2026-08-13 18:11:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:54665 https://access.redhat.com/errata/RHSA-2026:54665

Comment 8 errata-xmlrpc 2026-08-13 18:17:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:54664 https://access.redhat.com/errata/RHSA-2026:54664

Comment 9 errata-xmlrpc 2026-08-14 00:07:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:54752 https://access.redhat.com/errata/RHSA-2026:54752

Comment 10 errata-xmlrpc 2026-08-19 03:48:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:56658 https://access.redhat.com/errata/RHSA-2026:56658

Comment 11 errata-xmlrpc 2026-08-19 05:28:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:56772 https://access.redhat.com/errata/RHSA-2026:56772


Note You need to log in before you can comment on or make changes to this bug.