[meta-oe][scarthgap][PATCH 0/3] thrift: backport security fixes

"Adarsh Jagadish Kamini" <[email protected]> Mon, 3 Aug 2026 16:17:09 +0200
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
From: Adarsh Jagadish Kamini <[email protected]>

This series backports three security fixes for thrift 0.20.0 on the
scarthgap branch:

  - CVE-2026-55971: read the zlib transform result directly in
    THeaderTransport::untransform instead of copying the (larger)
    decompressed result back into the smaller receive buffer.
  - CVE-2026-58023: copy the buffered leftover from the GByteArray data
    member rather than the GByteArray struct itself in the c_glib
    buffered/framed transport read_slow paths.
  - CVE-2026-48144: validate the peer hostname (SSL_set1_host) before
    SSL_connect in the c_glib TLS client.

All three are backports from upstream apache/thrift with
Upstream-Status: Backport tags.

Testing: the recipe builds with -DBUILD_TESTING=3DOFF, so the C++ test
suite is not compiled during a normal build. To verify the
CVE-2026-55971 fix, the suite was built with BUILD_TESTING=3DON (using the
native thrift compiler for codegen via THRIFT_COMPILER) and the
resulting UnitTests binary was executed against the qemux86-64 target
sysroot. test_theadertransport_zlib_roundtrip passed; the only failing
case (ToStringTest/locale_de_DE_floating_point_to_string) is unrelated
and caused by the de_DE locale being absent from the minimal test
sysroot.

Adarsh Jagadish Kamini (3):
  thrift: fix CVE-2026-55971
  thrift: fix CVE-2026-58023
  thrift: fix CVE-2026-48144

 .../thrift/thrift/CVE-2026-48144.patch        |  36 +++
 .../thrift/thrift/CVE-2026-55971.patch        |  98 ++++++++
 .../thrift/thrift/CVE-2026-58023.patch        | 231 ++++++++++++++++++
 .../thrift/thrift_0.20.0.bb                   |   3 +
 4 files changed, 368 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/thrift/thrift/CVE-2026-481=
44.patch
 create mode 100644 meta-oe/recipes-connectivity/thrift/thrift/CVE-2026-559=
71.patch
 create mode 100644 meta-oe/recipes-connectivity/thrift/thrift/CVE-2026-580=
23.patch