Skip to contentSkip to conversation

ruby: Upgrade 3.3.5 -> 3.3.10

PATCH New [email protected] 1 participant 1 message Dec 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ruby: Upgrade 3.3.5 -> 3.3.10

From: Mingli Yu <[email protected]>

Per ruby maintenance policy [1], the 3.3.x branch should be still in normal maintenance, so upgrade to the latest version 3.3.10 to fix many security issues and bugs.

Remove the fix for CVE-2025-27219, CVE-2025-27220 and CVE-2025-27221 as these fixes have been included in the new version.

[1] https://www.ruby-lang.org/en/downloads/branches/

---
 .../ruby/ruby/CVE-2025-27219.patch            | 31 --------
 .../ruby/ruby/CVE-2025-27220.patch            | 78 -------------------
 .../ruby/ruby/CVE-2025-27221-0001.patch       | 57 --------------
 .../ruby/ruby/CVE-2025-27221-0002.patch       | 73 -----------------
 .../ruby/{ruby_3.3.5.bb => ruby_3.3.10.bb}    |  6 +-
 5 files changed, 1 insertion(+), 244 deletions(-)
 delete mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2025-27219.patch
 delete mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2025-27220.patch
 delete mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2025-27221-0001.patch
 delete mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2025-27221-0002.patch
 rename meta/recipes-devtools/ruby/{ruby_3.3.5.bb => ruby_3.3.10.bb} (95%)
meta/recipes-devtools/ruby/ruby/CVE-2025-27219.patch deleted +0 -31
deleted file mode 100644
index 7813a6143c8..00000000000
@@ -1,31 +0,0 @@
-From 9907b76dad0777ee300de236dad4b559e07596ab Mon Sep 17 00:00:00 2001
-From: Hiroshi SHIBATA <[email protected]>
-Date: Fri, 21 Feb 2025 16:01:17 +0900
-Subject: [PATCH] Use String#concat instead of String#+ for reducing cpu usage
-
-Co-authored-by: "Yusuke Endoh" <[email protected]>
-
-Upstream-Status: Backport [https://github.com/ruby/cgi/commit/9907b76dad0777ee300de236dad4b559e07596ab]
-CVE: CVE-2025-27219
-Signed-off-by: Ashish Sharma <[email protected]>
-
- lib/cgi/cookie.rb | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
-index 9498e2f..1c4ef6a 100644
---- a/lib/cgi/cookie.rb
-+++ b/lib/cgi/cookie.rb
-@@ -190,9 +190,10 @@ def self.parse(raw_cookie)
-         values ||= ""
-         values = values.split('&').collect{|v| CGI.unescape(v,@@accept_charset) }
-         if cookies.has_key?(name)
--          values = cookies[name].value + values
-+          cookies[name].concat(values)
-+        else
-+          cookies[name] = Cookie.new(name, *values)
-         end
--        cookies[name] = Cookie.new(name, *values)
-       end
- 
-       cookies
meta/recipes-devtools/ruby/ruby/CVE-2025-27220.patch deleted +0 -78

78 lines not on this page · raw message

meta/recipes-devtools/ruby/ruby/CVE-2025-27221-0001.patch deleted +0 -57

57 lines not on this page · raw message

meta/recipes-devtools/ruby/ruby/CVE-2025-27221-0002.patch deleted +0 -73

73 lines not on this page · raw message

meta/recipes-devtools/ruby/ruby_3.3.10.bb renamed from meta/recipes-devtools/ruby/ruby_3.3.5.bb +1 -5
similarity index 95%
rename from meta/recipes-devtools/ruby/ruby_3.3.5.bb
rename to meta/recipes-devtools/ruby/ruby_3.3.10.bb
index 8b45946f6b1..936bc73e32f 100644
@@ -26,10 +26,6 @@ SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
            file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \
            file://0006-Make-gemspecs-reproducible.patch \
            file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \
-           file://CVE-2025-27219.patch \
-           file://CVE-2025-27220.patch \
-           file://CVE-2025-27221-0001.patch \
-           file://CVE-2025-27221-0002.patch \
            file://0007-Skip-test_rm_r_no_permissions-test-under-root.patch \
           "
 UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/"
@@ -51,7 +47,7 @@ do_configure:prepend() {
 
 DEPENDS:append:libc-musl = " libucontext"
 
-SRC_URI[sha256sum] = "3781a3504222c2f26cb4b9eb9c1a12dbf4944d366ce24a9ff8cf99ecbce75196"
+SRC_URI[sha256sum] = "b555baa467a306cfc8e6c6ed24d0d27b27e9a1bed1d91d95509859eac6b0e928"
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
Signature · 1 line
2.34.1