Skip to contentSkip to conversation

package/ruby: security bump to version 4.0.10

PATCH In review Peter Korsgaard 2 participants 4 messages Nov 19 – Nov 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ruby: security bump to version 4.0.10

Fixes the following security issues:

CVE-2026-89078: Double Free issue in Regular Expression Parser
CVE-2026-93577: Integer Overflow issue in Regular Expression Compiler
CVE-2026-97229: Integer Overflow issue in CI/CD Regular Expression Compiler
CVE-2026-110264: Integer Overflow issue in Regular Expression Compiler

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/

Heap buffer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5

Double free in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x

Integer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px

Out-of-bounds read in case-insensitive regular expression matching
https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r

Heap buffer overflow in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Heap buffer overflow in Regexp#to_s
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Out-of-bounds read in case-insensitive backreference matching
https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h

https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/

Release notes:
https://www.ruby-lang.org/en/news/2026/09/15/ruby-4-0-7-released/
https://www.ruby-lang.org/en/news/2026/10/22/ruby-4-0-8-released/
https://www.ruby-lang.org/en/news/2026/10/23/ruby-4-0-9-released/
https://www.ruby-lang.org/en/news/2026/11/18/ruby-4-0-10-released/

---
 package/ruby/ruby.hash | 6 +++---
 package/ruby/ruby.mk   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
package/ruby/ruby.hash +3 -3
index f62a3fadb0..018f55d7a0 100644
@@ -1,6 +1,6 @@
-# From https://www.ruby-lang.org/en/news/2026/07/14/ruby-4-0-6-released/
-sha256  9c9d121fe3314ea7c801e690b9de981d2b9d12d7849db99c27482468a541ba0a  ruby-4.0.6.tar.xz
-sha512  c9c391675a098b5a27dd687571ab0a164c788cbb8ddcbab6d17a3e8b3c4ba389346b2e6d7807d38db3e74d225c70e378a296d60d0f465cb0fcec9702242c83c6  ruby-4.0.6.tar.xz
+# From https://www.ruby-lang.org/en/news/2026/11/18/ruby-4-0-10-released/
+sha256  1537f7a6003c436546ecab6b48b6e7725a9af2328f45a8af7f42f41c5df90ab8  ruby-4.0.10.tar.xz
+sha512  d3fdb00e08165526065ce84a4606cdcfb9fb04ad8cfb0b516a403382cfc25e1aeed9ee4a13abdff98ebfd7241eaf32303fd7c385ef63e58c17689da88b80d847  ruby-4.0.10.tar.xz
 
 # License files, Locally calculated
 sha256  a74812486cffbdc55141a5d9f165d782cbb202660d827622ec966237d4717b99  LEGAL
package/ruby/ruby.mk +1 -1
index bea1820f74..148230152d 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 RUBY_VERSION_MAJOR = 4.0
-RUBY_VERSION = $(RUBY_VERSION_MAJOR).6
+RUBY_VERSION = $(RUBY_VERSION_MAJOR).10
 RUBY_VERSION_EXT = 4.0.0
 RUBY_SITE = http://cache.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR)
 RUBY_SOURCE = ruby-$(RUBY_VERSION).tar.xz
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 32 lines · Peter Korsgaard

Fixes the following security issues:

CVE-2026-89078: Double Free issue in Regular Expression Parser
CVE-2026-93577: Integer Overflow issue in Regular Expression Compiler
CVE-2026-97229: Integer Overflow issue in CI/CD Regular Expression Compiler
CVE-2026-110264: Integer Overflow issue in Regular Expression Compiler

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/

Heap buffer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5

Double free in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x

Integer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px

Out-of-bounds read in case-insensitive regular expression matching
https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r

Heap buffer overflow in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Heap buffer overflow in Regexp#to_s
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Out-of-bounds read in case-insensitive backreference matching
https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h

https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/

Quoted 7 lines

Release notes:
https://www.ruby-lang.org/en/news/2026/09/15/ruby-4-0-7-released/
https://www.ruby-lang.org/en/news/2026/10/22/ruby-4-0-8-released/
https://www.ruby-lang.org/en/news/2026/10/23/ruby-4-0-9-released/
https://www.ruby-lang.org/en/news/2026/11/18/ruby-4-0-10-released/

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Peter Korsgaard

Hi Peter, Julien,

I'm a bit late here as Julien already applied this, but there's a few inaccuracies in the commit message.

Quoted 6 lines · Peter Korsgaard

Fixes the following security issues:

CVE-2026-89078: Double Free issue in Regular Expression Parser
CVE-2026-93577: Integer Overflow issue in Regular Expression Compiler
CVE-2026-97229: Integer Overflow issue in CI/CD Regular Expression Compiler
CVE-2026-110264: Integer Overflow issue in Regular Expression Compiler

I believe these are technically gitlab (the product) CVEs and do not apply to ruby, even though the cause and fixes live in ruby.

Ruby so far only seems to have GHSA's (I don't exactly know how the github CNA works with CVEs and if there's CVE assignment pending or not here.) So 4.0.8 fixed CVE-2026-93577 / CVE-2026-97229 via GHSA-22mf-ggw7-pxfx
and 4.0.9 fixed CVE-2026-110264 via GHSA-qm4g-8pfh-6996

CVE-2026-89078 is not applicable because the underlying problem for that was fixed in ruby 4.0 already.

Quoted 9 lines

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/

Heap buffer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5

Double free in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x

Quoted 8 lines

Integer overflow in case conversion of strings
https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px

Out-of-bounds read in case-insensitive regular expression matching
https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r

Heap buffer overflow in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Typo. Should be https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w instead here.

Quoted 6 lines

Heap buffer overflow in Regexp#to_s
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Quoted 1 line

Out-of-bounds read in case-insensitive backreference matching

https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h

Quoted 7 lines

https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/

Release notes:
https://www.ruby-lang.org/en/news/2026/09/15/ruby-4-0-7-released/
https://www.ruby-lang.org/en/news/2026/10/22/ruby-4-0-8-released/
https://www.ruby-lang.org/en/news/2026/10/23/ruby-4-0-9-released/
https://www.ruby-lang.org/en/news/2026/11/18/ruby-4-0-10-released/

Additionally the github release notes for 4.0.10 call out:

Update the default gem json from 2.18.0 to 2.18.3, which includes the
fix for CVE-2026-33210.

And then (as far as I can tell) there's another CVE hidden in the ruby 4.0.7 release which bumps the embedded ERB gem from 6.0.1.1 to 6.0.7 (https://github.com/ruby/ruby/pull/18282) which fixes https://github.com/ruby/erb/security/advisories/GHSA-q339-8rmv-2mhv / CVE-2026-41316.

For these last two we don't actually have any good way to track this in buildroot in general I think. :-/

[...]

Best,
Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Marcus" == Marcus Hoffmann <[email protected]> writes:

Hi Peter, Julien,
I'm a bit late here as Julien already applied this, but there's a few inaccuracies in the commit message.

On 11/19/26 17:00, Peter Korsgaard wrote:

Quoted 8 lines
Quoted 5 lines

Fixes the following security issues:
CVE-2026-89078: Double Free issue in Regular Expression Parser
CVE-2026-93577: Integer Overflow issue in Regular Expression Compiler
CVE-2026-97229: Integer Overflow issue in CI/CD Regular Expression Compiler
CVE-2026-110264: Integer Overflow issue in Regular Expression Compiler

I believe these are technically gitlab (the product) CVEs and do not apply to ruby, even though the cause and fixes live in ruby.

True.

Quoted 6 lines
Quoted 2 lines

Heap buffer overflow in regular expression compilation
https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

Typo. Should be
https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
instead here.

Ups, I must have cut'n'pasted the wrong link.

Quoted 5 lines

Additionally the github release notes for 4.0.10 call out:

Update the default gem json from 2.18.0 to 2.18.3, which includes the fix for CVE-2026-33210.

Quoted 8 lines

And then (as far as I can tell) there's another CVE hidden in the ruby 4.0.7 release which bumps the embedded ERB gem from 6.0.1.1 to 6.0.7
(https://github.com/ruby/ruby/pull/18282) which fixes
https://github.com/ruby/erb/security/advisories/GHSA-q339-8rmv-2mhv / CVE-2026-41316.

For these last two we don't actually have any good way to track this in buildroot in general I think. :-/

No, indeed.

Thanks for the review!

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot