Skip to contentSkip to conversation

zchunk: upgrade 1.5.4 -> 1.5.5

PATCH New [email protected] 1 participant 7 messages Oct 29

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 zchunk: upgrade 1.5.4 -> 1.5.5

From: Ankur Tyagi <[email protected]>

- Fix out-of-bounds read
- Harden multipart download parsing against malicious servers
- Harden chunk decompression and header parsing

---
 .../zchunk/{zchunk_1.5.4.bb => zchunk_1.5.5.bb}               | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/zchunk/{zchunk_1.5.4.bb => zchunk_1.5.5.bb} (81%)
meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb renamed from meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb +2 -2
similarity index 81%
rename from meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb
rename to meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb
index 9d587debfd..f84cd8d6fe 100644
@@ -3,9 +3,9 @@ DESCRIPTION = "A file format designed for highly efficient deltas while maintain
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=daf6e68539f564601a5a5869c31e5242"
 
-SRC_URI = "git://github.com/zchunk/zchunk.git;protocol=https;nobranch=1;tag=${PV}"
+SRC_URI = "git://github.com/zchunk/zchunk.git;protocol=https;branch=main;tag=${PV}"
 
-SRCREV = "99e51afa38c723e7c25834c2c3b305d20ef55d04"
+SRCREV = "ae8e9f5b1e820a906c39f7eaf231e71bef72a3a6"
 
 DEPENDS = "zstd"
 DEPENDS:append:libc-musl = " argp-standalone"
#1 lore raw

PATCH 2/7 catch2: upgrade 3.16.0 -> 3.16.1

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/catchorg/Catch2/releases/tag/v3.16.1

---
 .../recipes-test/catch2/{catch2_3.16.0.bb => catch2_3.16.1.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-test/catch2/{catch2_3.16.0.bb => catch2_3.16.1.bb} (92%)
meta-oe/recipes-test/catch2/catch2_3.16.1.bb renamed from meta-oe/recipes-test/catch2/catch2_3.16.0.bb +1 -1
similarity index 92%
rename from meta-oe/recipes-test/catch2/catch2_3.16.0.bb
rename to meta-oe/recipes-test/catch2/catch2_3.16.1.bb
index e9ef1e70a4..f98c31ffa8 100644
@@ -5,7 +5,7 @@ LICENSE = "BSL-1.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
 
 SRC_URI = "git://github.com/catchorg/Catch2.git;branch=devel;protocol=https;tag=v${PV}"
-SRCREV = "317ac1ed4c0bb6e6b91eafc817e05c488feffcb3"
+SRCREV = "08092139210881f01a34e60c5f2fd6afa0ea4024"
 
 
 inherit cmake python3native
#2 lore raw

PATCH 3/7 utf8proc: upgrade 2.11.3 -> 2.12.0

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/JuliaStrings/utf8proc/releases/tag/v2.12.0

PTEST pass:

root@qemux86-64:~# ptest-runner ut8proc
ut8proc ptest isn't available.
root@qemux86-64:~# ptest-runner utf8proc
START: ptest-runner
2026-10-29T09:15
BEGIN: /usr/lib/utf8proc/ptest
...
END: /usr/lib/utf8proc/ptest
2026-10-29T09:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0
---
 .../utf8proc/{utf8proc_2.11.3.bb => utf8proc_2.12.0.bb}         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/utf8proc/{utf8proc_2.11.3.bb => utf8proc_2.12.0.bb} (95%)
meta-oe/recipes-support/utf8proc/utf8proc_2.12.0.bb renamed from meta-oe/recipes-support/utf8proc/utf8proc_2.11.3.bb +1 -1
similarity index 95%
rename from meta-oe/recipes-support/utf8proc/utf8proc_2.11.3.bb
rename to meta-oe/recipes-support/utf8proc/utf8proc_2.12.0.bb
index 12649d984b..b151550c34 100644
@@ -12,7 +12,7 @@ SRC_URI = "\
     git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \
     file://run-ptest \
 "
-SRCREV = "e5e799221b45bbb90f5fdc5c69b6b8dfbf017e78"
+SRCREV = "79cdd5ab40c79afa559f689ffc13b76812dee1ac"
 
 inherit cmake ptest
 
#3 lore raw

PATCH 4/7 tesseract: upgrade 5.5.3 -> 5.5.4

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Dropped patches that are part of the upstream version.

Changelog:
https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4

---
 .../tesseract/tesseract/CVE-2026-88047.patch  | 225 -------------
 .../tesseract/tesseract/CVE-2026-88048.patch  | 227 -------------
 .../tesseract/tesseract/CVE-2026-88049.patch  | 315 ------------------
 .../tesseract/tesseract/CVE-2026-88050.patch  | 209 ------------
 .../tesseract/tesseract/CVE-2026-88051.patch  | 184 ----------
 .../tesseract/tesseract/CVE-2026-88052.patch  | 165 ---------
 .../tesseract/tesseract/CVE-2026-88054.patch  | 274 ---------------
 ...{tesseract_5.5.3.bb => tesseract_5.5.4.bb} |   9 +-
 8 files changed, 1 insertion(+), 1607 deletions(-)
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88047.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88048.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88049.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88050.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88051.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88052.patch
 delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88054.patch
 rename meta-oe/recipes-graphics/tesseract/{tesseract_5.5.3.bb => tesseract_5.5.4.bb} (63%)
meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88047.patch deleted +0 -225
deleted file mode 100644
index 780f686e61..0000000000
@@ -1,225 +0,0 @@
-From e974684acbe3aeb6bc6192b06a048537c345b713 Mon Sep 17 00:00:00 2001
-From: Stefan Weil <[email protected]>
-Date: Mon, 24 Aug 2026 13:39:22 +0200
-Subject: [PATCH] Limit unichar extraction in ReadNormProtos to the buffer size
-
-Classify::ReadNormProtos parsed each normproto line with
-`stream >> unichar >> NumProtos` into a char unichar[2 * UNICHAR_LEN + 1]
-stack buffer, but char* extraction from an istream has no length limit
-(the stream width was never set). A crafted TESSDATA_NORMPROTO component
-in a .traineddata file whose first proto-line token exceeds 60
-characters (the 100-byte line buffer allows up to 99) overflows the
-stack buffer during legacy engine initialization (CWE-121).
-
-Toolchain note: Apple's libc++ provides a C++20 array overload of
-operator>>(basic_istream&, char(&)[N]) that implicitly bounds the
-extraction to the array size, so builds against that standard library
-are incidentally protected. Standard libraries without that overload
-(e.g. libstdc++) still take the unbounded char* overload, so the
-explicit width limit below makes the behavior defined on all
-toolchains.
-
-Key changes:
-- normmatch.cpp: read the unichar token with
-  std::setw(2 * UNICHAR_LEN + 1); char* extraction takes at most
-  width - 1 characters, which fits the buffer exactly. Overlong
-  tokens are truncated and the line is rejected like any other
-  unparseable line.
-- unittest: add normproto_test covering a 99-character token (the
-  maximum a 100-byte line can hold), a token of exactly 2 *
-  UNICHAR_LEN characters, and a well-formed component. A minimal
-  reproduction of the unbounded extraction crashes an ASan build
-  with a stack-buffer-overflow.
-
-Reported-by: Tristan Madani <[email protected]>
-Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud)
-Signed-off-by: Stefan Weil <[email protected]>
-(cherry picked from commit 1bda5079b1c8a7e25f523486837426903d29ce84)
-
-CVE: CVE-2026-88047
-Upstream-Status: Backport [https://github.com/tesseract-ocr/tesseract/commit/1bda5079b1c8a7e25f523486837426903d29ce84]
-Signed-off-by: Ankur Tyagi <[email protected]>
----
- Makefile.am                |   5 ++
- src/classify/normmatch.cpp |   6 +-
- unittest/CMakeLists.txt    |   1 +
- unittest/normproto_test.cc | 111 +++++++++++++++++++++++++++++++++++++
- 4 files changed, 122 insertions(+), 1 deletion(-)
- create mode 100644 unittest/normproto_test.cc
-
-diff --git a/Makefile.am b/Makefile.am
-index 63ca6686..cc748455 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -1184,6 +1184,7 @@ check_PROGRAMS += mastertrainer_test
- endif # !DISABLED_LEGACY_ENGINE
- check_PROGRAMS += matrix_test
- check_PROGRAMS += networkio_test
-+check_PROGRAMS += normproto_test
- if ENABLE_TRAINING
- check_PROGRAMS += normstrngs_test
- endif # ENABLE_TRAINING
-@@ -1388,6 +1389,10 @@ networkio_test_SOURCES = unittest/networkio_test.cc
- networkio_test_CPPFLAGS = $(unittest_CPPFLAGS)
- networkio_test_LDADD = $(TESS_LIBS)
- 
-+normproto_test_SOURCES = unittest/normproto_test.cc
-+normproto_test_CPPFLAGS = $(unittest_CPPFLAGS)
-+normproto_test_LDADD = $(TESS_LIBS)
-+
- normstrngs_test_SOURCES = unittest/normstrngs_test.cc
- normstrngs_test_CPPFLAGS = $(unittest_CPPFLAGS)
- normstrngs_test_LDADD = $(TRAINING_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
-diff --git a/src/classify/normmatch.cpp b/src/classify/normmatch.cpp
-index d5bd7e6a..1ce7c928 100644
---- a/src/classify/normmatch.cpp
-+++ b/src/classify/normmatch.cpp
-@@ -28,6 +28,7 @@
- 
- #include <cmath>
- #include <cstdio>
-+#include <iomanip> // for std::setw
- #include <sstream> // for std::istringstream
- 
- namespace tesseract {
-@@ -190,7 +191,10 @@ NORM_PROTOS *Classify::ReadNormProtos(TFile *fp) {
-   while (fp->FGets(line, kMaxLineSize) != nullptr) {
-     std::istringstream stream(line);
-     stream.imbue(std::locale::classic());
--    stream >> unichar >> NumProtos;
-+    // unichar holds at most 2 * UNICHAR_LEN characters; the width limit
-+    // (width - 1 characters for char* extraction) keeps the extraction
-+    // from overflowing the buffer on overlong lines.
-+    stream >> std::setw(2 * UNICHAR_LEN + 1) >> unichar >> NumProtos;
-     if (stream.fail()) {
-       continue;
-     }
-diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
-index a660c9b1..4c677a60 100644
---- a/unittest/CMakeLists.txt
-+++ b/unittest/CMakeLists.txt
-@@ -59,6 +59,7 @@ set(LEGACY_TESTS
-     indexmapbidi_test.cc
-     intfeaturemap_test.cc
-     mastertrainer_test.cc
-+    normproto_test.cc
-     osd_test.cc
-     params_model_test.cc
-     shapetable_test.cc
-diff --git a/unittest/normproto_test.cc b/unittest/normproto_test.cc
-new file mode 100644
-index 00000000..574b2f3d
---- /dev/null
-+++ b/unittest/normproto_test.cc
-@@ -0,0 +1,111 @@
-+///////////////////////////////////////////////////////////////////////
-+// File:        normproto_test.cc
-+// Description: Tests that Classify::ReadNormProtos handles a normproto
-+//              line whose first (unichar) token exceeds the
-+//              unichar[2 * UNICHAR_LEN + 1] stack buffer. The
-+//              istream extraction has no intrinsic length limit, so a
-+//              crafted NORMPROTO component in a .traineddata file
-+//              could overflow the stack buffer during legacy engine
-+//              initialization.
-+//
-+// Licensed under the Apache License, Version 2.0 (the "License");
-+// you may not use this file except in compliance with the License.
-+// You may obtain a copy of the License at
-+// http://www.apache.org/licenses/LICENSE-2.0
-+//
-+///////////////////////////////////////////////////////////////////////
-+
-+#include "include_gunit.h"
-+
-+#include "classify.h"
-+#include "serialis.h" // for TFile
-+
-+#include <cstdio>
-+#include <cstdlib>
-+#include <string>
-+#include <vector>
-+
-+namespace tesseract {
-+namespace {
-+
-+// Minimal unicharset (space and 'a').
-+const char kMinUnicharset[] =
-+    "2\n"
-+    "NULL 1 0,255,0,255,0,0,0,0,0,0 Latin 2 0 2\n"
-+    "a 1 0,255,0,255,0,0,0,0,0,0 Latin 2 0 2\n";
-+
-+// Builds a normproto component: a sample-size line (5), five parameter
-+// description lines, then the given raw proto lines.
-+std::vector<char> MakeNormproto(const std::string &lines) {
-+  std::string data = "5\n";
-+  for (int i = 0; i < 5; ++i) {
-+    data += "e e 0 1\n";
-+  }
-+  data += lines;
-+  return std::vector<char>(data.begin(), data.end());
-+}
-+
-+class NormprotoTest : public testing::Test {
-+protected:
-+  void SetUp() override {
-+    tmpl_ = "/tmp/tess_normproto_test_XXXXXX";
-+    char *dir = mkdtemp(tmpl_.data());
-+    ASSERT_NE(dir, nullptr);
-+    dir_ = dir;
-+    std::string uc_path = dir_ + "/eng.unicharset";
-+    FILE *f = fopen(uc_path.c_str(), "w");
-+    ASSERT_NE(f, nullptr);
-+    ASSERT_EQ(fwrite(kMinUnicharset, 1, sizeof(kMinUnicharset) - 1, f),
-+              sizeof(kMinUnicharset) - 1);
-+    fclose(f);
-+    // Load the minimal unicharset into the classifier's inherited
-+    // unicharset member.
-+    ASSERT_TRUE(classifier_.unicharset.load_from_file(uc_path.c_str()));
-+  }
-+  void TearDown() override {
-+    std::remove((dir_ + "/eng.unicharset").c_str());
-+    rmdir(dir_.c_str());
-+  }
-+  std::string dir_;
-+  std::string tmpl_;
-+  Classify classifier_;
-+};
-+
-+// A 99-character first token (the maximum FGets can return) overflows
-+// unichar[2 * UNICHAR_LEN + 1] on unpatched code; the width-limited
-+// extraction must reject the line instead.
-+TEST_F(NormprotoTest, ToleratesOverlongUnicharToken) {
-+  std::vector<char> bytes = MakeNormproto(std::string(99, 'A') + "\n");
-+  TFile fp;
-+  ASSERT_TRUE(fp.Open(bytes.data(), bytes.size()));
-+  classifier_.NormProtos = classifier_.ReadNormProtos(&fp);
-+  ASSERT_NE(classifier_.NormProtos, nullptr);
-+  classifier_.FreeNormProtos();
-+  EXPECT_EQ(classifier_.NormProtos, nullptr);
-+}
-+
-+// A token of exactly 2 * UNICHAR_LEN characters is the maximum legitimate
-+// size; it must not be truncated or rejected by the width limit.
-+TEST_F(NormprotoTest, ToleratesMaxLenUnicharToken) {
-+  std::vector<char> bytes = MakeNormproto(std::string(2 * UNICHAR_LEN, 'A') + " 0\n");
-+  TFile fp;
-+  ASSERT_TRUE(fp.Open(bytes.data(), bytes.size()));
-+  classifier_.NormProtos = classifier_.ReadNormProtos(&fp);
-+  ASSERT_NE(classifier_.NormProtos, nullptr);
-+  classifier_.FreeNormProtos();
-+  EXPECT_EQ(classifier_.NormProtos, nullptr);
-+}
-+
-+// A well-formed normproto component must still parse.
-+TEST_F(NormprotoTest, ReadsValidNormprotos) {
-+  std::vector<char> bytes = MakeNormproto("a 0\n");
-+  TFile fp;
-+  ASSERT_TRUE(fp.Open(bytes.data(), bytes.size()));
-+  classifier_.NormProtos = classifier_.ReadNormProtos(&fp);
-+  ASSERT_NE(classifier_.NormProtos, nullptr);
-+  classifier_.FreeNormProtos();
-+  EXPECT_EQ(classifier_.NormProtos, nullptr);
-+}
-+
-+} // namespace
-+} // namespace tesseract
meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88048.patch deleted +0 -227

227 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88049.patch deleted +0 -315

315 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88050.patch deleted +0 -209

209 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88051.patch deleted +0 -184

184 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88052.patch deleted +0 -165

165 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract/CVE-2026-88054.patch deleted +0 -274

274 lines not on this page · raw message

meta-oe/recipes-graphics/tesseract/tesseract_5.5.4.bb renamed from meta-oe/recipes-graphics/tesseract/tesseract_5.5.3.bb +1 -8
similarity index 63%
rename from meta-oe/recipes-graphics/tesseract/tesseract_5.5.3.bb
rename to meta-oe/recipes-graphics/tesseract/tesseract_5.5.4.bb
index c96aca1dde..069282d510 100644
@@ -5,15 +5,8 @@ BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-SRCREV = "db0ec62f81b0737fbbe184d8fea40af5738f8eef"
+SRCREV = "7e548e6eff172f38f97664afe7f7ce40db36c8d6"
 SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=main;protocol=https;tag=${PV} \
-           file://CVE-2026-88052.patch \
-           file://CVE-2026-88048.patch \
-           file://CVE-2026-88049.patch \
-           file://CVE-2026-88050.patch \
-           file://CVE-2026-88047.patch \
-           file://CVE-2026-88051.patch \
-           file://CVE-2026-88054.patch \
 "
 
 DEPENDS = "leptonica"
#4 lore raw

PATCH 5/7 neatvnc: upgrade 1.0.1 -> 1.0.3

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/any1/neatvnc/releases/tag/v1.0.2
https://github.com/any1/neatvnc/releases/tag/v1.0.3

---
 .../neatvnc/{neatvnc_1.0.1.bb => neatvnc_1.0.3.bb}              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-graphics/neatvnc/{neatvnc_1.0.1.bb => neatvnc_1.0.3.bb} (95%)
meta-oe/recipes-graphics/neatvnc/neatvnc_1.0.3.bb renamed from meta-oe/recipes-graphics/neatvnc/neatvnc_1.0.1.bb +1 -1
similarity index 95%
rename from meta-oe/recipes-graphics/neatvnc/neatvnc_1.0.1.bb
rename to meta-oe/recipes-graphics/neatvnc/neatvnc_1.0.3.bb
index ab462bcf08..68272dfb07 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94fc374e7174f41e3afe0f027ee59ff7"
 
 SRC_URI = "git://github.com/any1/neatvnc;branch=v1.0;protocol=https;tag=v${PV}"
 
-SRCREV = "4d6d09b544d84b836cf1906735354b4e694a0c1c"
+SRCREV = "783437adc56c2d7ce2cac1ec584acad798594267"
 
 
 DEPENDS = "libdrm pixman aml zlib"
#5 lore raw

PATCH 6/7 parallel: upgrade 20260922 -> 20261022

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

---
 .../parallel/{parallel_20260922.bb => parallel_20261022.bb}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-extended/parallel/{parallel_20260922.bb => parallel_20261022.bb} (93%)
meta-oe/recipes-extended/parallel/parallel_20261022.bb renamed from meta-oe/recipes-extended/parallel/parallel_20260922.bb +1 -1
similarity index 93%
rename from meta-oe/recipes-extended/parallel/parallel_20260922.bb
rename to meta-oe/recipes-extended/parallel/parallel_20261022.bb
index c536df7ac2..cc49bfdf5f 100644
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = " \
 "
 
 SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2"
-SRC_URI[sha256sum] = "54837e9e8c16134a3c2e95f91c5fe2f7893d4cc89f252b26735713ceca866387"
+SRC_URI[sha256sum] = "4fb0d2d4d14a4ef6448c788cb2bcfde9fbe00b8d4bdc637a7e4c08f8c5453a55"
 
 inherit autotools bash-completion
 
#6 lore raw

PATCH 7/7 polkit: upgrade 127 -> 128

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Dropped patched that are part of the upstream version.

Changelog:
https://github.com/polkit-org/polkit/blob/128/NEWS.md

---
 .../polkit/files/CVE-2026-4897-01.patch       | 64 -------------------
 .../polkit/files/CVE-2026-4897-02.patch       | 32 ----------
 .../polkit/files/CVE-2026-85498.patch         | 38 -----------
 .../polkit/{polkit_127.bb => polkit_128.bb}   |  5 +-
 4 files changed, 1 insertion(+), 138 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/polkit/files/CVE-2026-4897-01.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/files/CVE-2026-4897-02.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/files/CVE-2026-85498.patch
 rename meta-oe/recipes-extended/polkit/{polkit_127.bb => polkit_128.bb} (95%)
meta-oe/recipes-extended/polkit/files/CVE-2026-4897-01.patch deleted +0 -64
deleted file mode 100644
index 96548ca771..0000000000
@@ -1,64 +0,0 @@
-From 7e122c8a5120c2aae2d9d44a26796dc18f5b677c Mon Sep 17 00:00:00 2001
-From: Jan Rybar <[email protected]>
-Date: Fri, 27 Mar 2026 15:57:01 +0100
-Subject: [PATCH] CVE-2026-4897 - getline() string overflow
-
-Report and fix by Aisle.com
-Pavel Kohout, Aisle Research
-
-Signed-off-by: Jan Rybar [email protected]
-
-CVE: CVE-2026-4897
-Upstream-Status: Backport [https://github.com/polkit-org/polkit/commit/7e122c8a5120c2aae2d9d44a26796dc18f5b677c]
-Signed-off-by: Peter Marko <[email protected]>
----
- src/polkitagent/polkitagenthelperprivate.c | 23 +++++++++++++---------
- 1 file changed, 14 insertions(+), 9 deletions(-)
-
-diff --git a/src/polkitagent/polkitagenthelperprivate.c b/src/polkitagent/polkitagenthelperprivate.c
-index 35bca85..7e4f94e 100644
---- a/src/polkitagent/polkitagenthelperprivate.c
-+++ b/src/polkitagent/polkitagenthelperprivate.c
-@@ -24,6 +24,7 @@
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
-+#include <errno.h>
- #include <unistd.h>
- 
- #ifndef HAVE_CLEARENV
-@@ -59,21 +60,25 @@ read_cookie (int argc, char **argv)
-     return strdup (argv[2]);
-   else
-     {
--      char *ret = NULL;
--      size_t n = 0;
--      ssize_t r = getline (&ret, &n, stdin);
--      if (r == -1)
-+      #define POLKIT_AGENT_MAX_COOKIE 4096
-+      char buf[POLKIT_AGENT_MAX_COOKIE + 2]; /* +1 for newline, +1 for NUL */
-+      if (fgets (buf, sizeof(buf), stdin) == NULL)
-         {
-           if (!feof (stdin))
--            perror ("getline");
--          free (ret);
-+            perror ("fgets");
-           return NULL;
-         }
--      else
-+      if (buf[strlen (buf) - 1] != '\n')
-         {
--          g_strchomp (ret);
--          return ret;
-+          /* Cookie too long - drain remaining input and reject */
-+          int c;
-+          while ((c = getchar ()) != '\n' && c != EOF)
-+            ;
-+          errno = EOVERFLOW;
-+          return NULL;
-         }
-+      g_strchomp (buf);
-+      return strdup (buf);
-     }
- }
- 
meta-oe/recipes-extended/polkit/files/CVE-2026-4897-02.patch deleted +0 -32
deleted file mode 100644
index c47eee2014..0000000000
@@ -1,32 +0,0 @@
-From 39601309eb3e5e88a1c1fbda9a272ba8691f1bf3 Mon Sep 17 00:00:00 2001
-From: Jan Rybar <[email protected]>
-Date: Wed, 13 May 2026 14:58:32 +0200
-Subject: [PATCH] Draining loop can keep polkit busy
-
-The draining loop is not really appropriate for pipe input, especially
-in a daemon.
-
-Co-authored-by: Frantisek Sumsal <[email protected]>
-
-CVE: CVE-2026-4897
-Upstream-Status: Backport [https://github.com/polkit-org/polkit/commit/39601309eb3e5e88a1c1fbda9a272ba8691f1bf3]
-Signed-off-by: Peter Marko <[email protected]>
----
- src/polkitagent/polkitagenthelperprivate.c | 4 ----
- 1 file changed, 4 deletions(-)
-
-diff --git a/src/polkitagent/polkitagenthelperprivate.c b/src/polkitagent/polkitagenthelperprivate.c
-index 7e4f94e..c0a9825 100644
---- a/src/polkitagent/polkitagenthelperprivate.c
-+++ b/src/polkitagent/polkitagenthelperprivate.c
-@@ -70,10 +70,6 @@ read_cookie (int argc, char **argv)
-         }
-       if (buf[strlen (buf) - 1] != '\n')
-         {
--          /* Cookie too long - drain remaining input and reject */
--          int c;
--          while ((c = getchar ()) != '\n' && c != EOF)
--            ;
-           errno = EOVERFLOW;
-           return NULL;
-         }
meta-oe/recipes-extended/polkit/files/CVE-2026-85498.patch deleted +0 -38
deleted file mode 100644
index 891d9215c9..0000000000
@@ -1,38 +0,0 @@
-From eea172967848bb4c5a407329f40c0e45de0d187e Mon Sep 17 00:00:00 2001
-From: Jan Rybar <[email protected]>
-Date: Thu, 27 Aug 2026 15:02:45 +0200
-Subject: [PATCH] CVE-2026-85498: Unsanitized underflow in cookie input
-
-Credits for the report:
-Sunwoo Lee, Korea Institute of Energy Technology (KENTECH)
-Daeyoung Kang, Korea Institute of Energy Technology (KENTECH)
-Haeryong Park, Korea Internet & Security Agency (KISA)
-Hyuk Lim, Korea Institute of Energy Technology (KENTECH)
-Seunghyun Yoon, Korea Institute of Energy Technology (KENTECH)
-Juthawong Naisanguansee
-
-Co-authored-by: Jan Rybar <[email protected]>
-
-CVE: CVE-2026-85498
-Upstream-Status: Backport [https://github.com/polkit-org/polkit/commit/eea172967848bb4c5a407329f40c0e45de0d187e]
-Signed-off-by: Peter Marko <[email protected]>
----
- src/polkitagent/polkitagenthelperprivate.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/src/polkitagent/polkitagenthelperprivate.c b/src/polkitagent/polkitagenthelperprivate.c
-index c0a9825..e2d2c9b 100644
---- a/src/polkitagent/polkitagenthelperprivate.c
-+++ b/src/polkitagent/polkitagenthelperprivate.c
-@@ -68,6 +68,11 @@ read_cookie (int argc, char **argv)
-             perror ("fgets");
-           return NULL;
-         }
-+      if (buf[0] == '\0')
-+        {
-+          errno = EINVAL;
-+          return NULL;
-+        }
-       if (buf[strlen (buf) - 1] != '\n')
-         {
-           errno = EOVERFLOW;
meta-oe/recipes-extended/polkit/polkit_128.bb renamed from meta-oe/recipes-extended/polkit/polkit_127.bb +1 -4
similarity index 95%
rename from meta-oe/recipes-extended/polkit/polkit_127.bb
rename to meta-oe/recipes-extended/polkit/polkit_128.bb
index acd4386354..61dcdd0cb8 100644
@@ -7,12 +7,9 @@ BUGTRACKER = "https://github.com/polkit-org/polkit/issues"
 
 SRC_URI = "\
     git://github.com/polkit-org/polkit.git;protocol=https;branch=main;tag=${PV} \
-    file://CVE-2026-4897-01.patch \
-    file://CVE-2026-4897-02.patch \
-    file://CVE-2026-85498.patch \
 "
 
-SRCREV = "9e4894c969eecf26a3ba762f4f7a268aa0fb3e51"
+SRCREV = "e6373dc19975d8583568c6cd7025d03e682ca956"
 
 DEPENDS = "expat glib-2.0 duktape"