This bug was fixed in the package ruby3.3 - 3.3.8-2ubuntu3.2

---------------
ruby3.3 (3.3.8-2ubuntu3.2) resolute-security; urgency=medium

  * SECURITY UPDATE: regexp compiled program size overflow (LP: #2175022)
    - debian/patches/GHSA-3p8q-wmhx-vm2w_prereq1.patch,
      GHSA-3p8q-wmhx-vm2w_prereq2.patch, GHSA-3p8q-wmhx-vm2w_prereq3.patch,
      GHSA-3p8q-wmhx-vm2w_prereq4.patch, GHSA-3p8q-wmhx-vm2w_1.patch,
      GHSA-3p8q-wmhx-vm2w_2.patch, GHSA-3p8q-wmhx-vm2w_3.patch,
      GHSA-3p8q-wmhx-vm2w_4.patch: reject overflowed repeat/null-check IDs
      (-224/-225), avoid overflow in the quantifier expansion size check,
      reject compiled regexp programs too big for their offset type (-226),
      cap the compiled program size both while emitting and while computing
      the length, check compile_length_tree() results at every call site,
      and harden BBuf size arithmetic against 32-bit overflow.
    - GHSA-3p8q-wmhx-vm2w
  * SECURITY UPDATE: double free and memory leak in char class parsing
    (LP: #2175019)
    - debian/patches/GHSA-7x2q-68qv-6p8x.patch,
      GHSA-7x2q-68qv-6p8x_2.patch: in parse_char_class(), free the
      property buffer only once on the && error path, and also free it
      on property error paths.
    - GHSA-7x2q-68qv-6p8x
  * SECURITY UPDATE: out-of-bounds read in case-insensitive exact match
    (LP: #2175021)
    - debian/patches/GHSA-wpqw-5qxg-m68r.patch, GHSA-wpqw-5qxg-m68r_2.patch,
      GHSA-wpqw-5qxg-m68r_3.patch, GHSA-wpqw-5qxg-m68r_4.patch,
      GHSA-wpqw-5qxg-m68r_5.patch: in match_at(), do not read the operand
      of an ignore-case exact match past the operand bounds; reject
      incomplete characters written as byte escapes in UTF-16 and
      out-of-range code points, keep an empty comment as a token
      separator, and never return a negative length from the Emacs-Mule
      case-fold.
    - GHSA-wpqw-5qxg-m68r
  * SECURITY UPDATE: out-of-bounds read in ignore-case backreferences
    (LP: #2175024)
    - debian/patches/GHSA-pvgc-g7gj-pv6h.patch: in string_cmp_ic(), check
      the end of the subject before comparing an ignore-case
      backreference.
    - GHSA-pvgc-g7gj-pv6h
  * SECURITY UPDATE: buffer overflow in Regexp#to_s
    (LP: #2175023)
    - debian/patches/GHSA-7whj-cfh7-xgm4.patch: preprocess the source
      with rb_reg_preprocess() before Regexp#to_s decides whether the
      option group can be omitted; the raw source can denote a
      different pattern than the preprocessed one that Regexp.new
      compiled, for example when (?#...) appears inside a character
      class.
    - GHSA-7whj-cfh7-xgm4
  * SECURITY UPDATE: heap buffer overflow in sharp-s case mapping
    (LP: #2175016)
    - debian/patches/GHSA-34m4-m9fh-gqp5.patch: bound the sharp-s
      expansion loop in the case mapping of the 14 single-byte
      encodings so that it cannot write past the destination buffer.
    - GHSA-34m4-m9fh-gqp5
  * SECURITY UPDATE: integer overflow in String case conversion
    (LP: #2175020)
    - debian/patches/GHSA-87fm-7w84-j2px.patch: in rb_str_casemap(),
      accumulate the total length in long and check it before adding,
      keeping each buffer within INT_MAX, and raise ArgumentError for a
      source too long to fit.
    - GHSA-87fm-7w84-j2px
  * debian/patches/match-cache-double-free.patch: fix a double free of
    the match stack when a cached match errors out mid-way; part of the
    same upstream 3.3.14 batch, reachable on armhf and i386.

 -- Allen Huang <[email protected]>  Thu, 19 Nov 2026 11:06:53
+0000

** Changed in: ruby3.3 (Ubuntu)
       Status: New => Fix Released

** CVE added: https://github.com/advisories/GHSA-34m4-m9fh-gqp5

** CVE added: https://github.com/advisories/GHSA-3p8q-wmhx-vm2w

** CVE added: https://github.com/advisories/GHSA-7whj-cfh7-xgm4

** CVE added: https://github.com/advisories/GHSA-7x2q-68qv-6p8x

** CVE added: https://github.com/advisories/GHSA-87fm-7w84-j2px

** CVE added: https://github.com/advisories/GHSA-pvgc-g7gj-pv6h

** CVE added: https://github.com/advisories/GHSA-wpqw-5qxg-m68r

** Changed in: ruby3.0 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175023

Title:
  GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby2.3/+bug/2175023/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to