This bug was fixed in the package ruby3.0 - 3.0.2-7ubuntu2.14

---------------
ruby3.0 (3.0.2-7ubuntu2.14) jammy-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 compiled regexp programs too big for their offset type
      (new error code -226), keep the OP_END error with subexp call
      frames, cap the compiled program size both while emitting and
      while computing the length, check compile_length_tree() results
      at every call site, and check the quantifier expansion size
      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_4.patch, GHSA-wpqw-5qxg-m68r_5.patch: in
      match_at(), do not read the operand of an ignore-case exact match
      past text_end; reject incomplete characters written as byte
      escapes in UTF-16 and out-of-range code points, 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

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

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

Title:
  GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation

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


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

Reply via email to