{"id":"SUSE-SU-2026:5413-1","summary":"Security update for ruby3.4","details":"This update for ruby3.4 fixes the following issues:\n\n- CVE-2026-132825: Heap buffer overflow in case conversion of strings (bsc#1290919).\n- Double free in regular expression compilation (bsc#1290920).\n- Heap buffer overflow in Regexp#to_s (bsc#1290925).\n- Heap buffer overflow in regular expression compilation (bsc#1290924).\n- Integer overflow in case conversion of strings (bsc#1290921).\n- Out-of-bounds read in case-insensitive backreference matching (bsc#1290926).\n- Out-of-bounds read in case-insensitive regular expression matching (bsc#1290923).\n\nChanges for ruby3.4:\n\nUpdate to 3.4.13\n  \n - Bug #22477: rb_ec_clear_vm_stack() can still clear the VM stack before\n ec-\u003ecfp = NULL on aarch64\n - Bug #22479: File.realdirpath returns a wrong path when GC runs while it\n resolves a relative symlink\n - Bug #22476: rb_profile_frames() called from a signal handler segfaults\n while vm_make_env_each() is escaping a chain of frames\n - Bug #22416: Respect timezone abbreviation encodings in Time#strftime\n - Bug #22436: Array#zip with a method_missing-based argument leaks a stale\n block handler (segfault when the next C-called method yields)\n - Bug #22449: Out-of-bounds in Array#sample when array modified\n - Bug #22450: Jump value attaches block in incorrect place under parse.y\n - Bug #22456: IO#close hangs forever when another thread is writing to the IO\n from a trap handler (please backport ba68343d3a to 3.4)\n - JIT: Reject --{y,z}jit-exec-mem-size values that overflow the u32\n reservation size by st0012 . Pull Request #19720\n - Bug #22451: Coderange may be set incorrectly when concatenating a string into itself\n - Bug #20655: Calling continuation triggers ensure function of rb_ensure\n - Bug #22458: Time#strftime out-of-bound access\n - Bug #22461: Use-after-free in String formatting with wide character encodings\n - Bug #22471: Thread#name= on a terminated thread may dump core\n - Bug #22467: IO#readpartial can raise EFAULT during GC.compact in another thread\n - Bug #22480: Ruby's release tarballs are not POSIX compliant since 2018\n - Bug #22491: The number of captures may change depending on the encoding\n of the target string\n - Bug #22389: Hang on GC.compact\n - Feature #22238: String#tr to take a Hash for multi-character replacements\n - Bug #22382: IO#write of a shareable String from multiple Ractors causes\n use-after-free\n - Bug #22535: Release mode segfault due to half-initialized error in singleton_method\n - Bug #22504: Empty keyword hash mishandled when calling a Method proc through the C API\n - Bug #22512: Overflow in st_init_existing_table_with_size / Hash.new(capacity:)\n - Bug #22495: UTF-32 strings with a byte 0x80 or more in the most significant\n position are reported as valid\n - Bug #22518: String#unpack('m') computes the buffer size with an overflowing multiplication\n - Bug #22517: Some String methods return a UTF-16/32 string without room for its terminator\n - Bug #21142: Lazy enumerator .each_with_index ignores .take(0) before it\n - Bug #22496: Lazy enumerator .each_with_index no longer executes block\n - Bug #22540: Process.spawn leaves the env, umask, and redirections applied\n in the parent on Windows when chdir: fails\n - Bug #22492: String#rindex misses a match with a leading .* in multiline mode\n - Bug #22494: Regexp search misses a match when an assertion precedes a leading .*\n - Bug #22537: IO#gets(nil, limit) stops right after a 0xFF byte\n - Fix memoization for the /(...){0}/ case by makenowjust . Pull Request #13169\n - Bug #21304: heap-use-after-free of Array#hash via mutating hash method\n - Ensure safe handling of hexdump width. by ioquatix . Pull Request #16593\n - Bug #21974: Cannot inspect RubyVM::AST for CDECL\n - Bug #22333: Assertion Failed: ary_resize_capa:RARRAY_LEN(ary) \u003c= capacity\n - Bug #22410: IO#external_encoding / IO#internal_encoding segfault on an uninitialized IO\n - Bug #22409: ASan UAF and Assertion Failed: gc_validate_pc:CFP_PC(cfp) \u003e= iseq_encoded:\n PC not set when allocating, breaking tracing\n - Bug #22543: Segmentation fault when compiling CONST ||= value, CONST &&= value\n or CONST += value under # shareable_constant_value: literal (Prism compiler)\n - Skip whitespace in rb_memory_view_parse_item_format fill pass by fuzzyrichie . Pull Request #19807\n - Bug #22557: parse.y segmentation fault parsing malformed nested case\n - Check the result of compile_length_tree() at every call site by mame . Pull Request #19505\n - Bug #22597: Regexp named capture names with invalid source encoding\n - Bug #22599: parse.y rejects valid retry after a class / class \u003c\u003c self\n definition inside rescue (Invalid retry after ensure)\n - Bug #22433: IO#sysread and IO#pread are inconsistent for length 0 and negative numbers\n- from version 3.4.12\n - Bug #22342: IO#gets can ignore the limit argument in some edge cases\n - Bug #22284: Passing an object with to_int to curry as its arity causes problems with LLP64.\n - Bug #22387: str_shared_replace incorrectly recalculates termlen\n - Bug #22391: Fix propagation of errno in rb_io_maybe_wait.\n - Bug #22388: Use-after-free when an Enumerable retains its each block\n - Bug #22326: heap buffer overflow in array.values_at()\n - Bug #22423: String#initialize(encoding:) stores an inflated capacity and\n writes past the malloc'd buffer on append (rb_str_init termlen double-adjust)\n - Prevent double free for too big repetition quantifiers by makenowjust . Pull Request #13332\n - Bug #22415: Thread.handle_interrupt needs to preserve errinfo\n - Bug #22406: Process.fork can leave the child unable to resolve hostnames: getaddrinfo\n helper threads take glibc's resolver lock after releasing the fork lock\n - Bug #22445: On macOS, a child of Kernel#fork can abort with\n '[BUG] pthread_rwlock_destroy: Resource busy (EBUSY)'\n - Reject overflowed repeat/null-check IDs in huge regexps by makenowjust . Pull Request #16801\n - Bug #22384: Regexp compile error in the 2nd+ branch of a top-level\n alternation leaks the parse tree (regression from #13332, Ruby 4.0)\n- from version 3.4.11\n - Bug #22196: Heap-use-after-free in fiber_switch with transfer-terminated async tasks on 3.4.10\n - Guard fiber target across fiber_store. by samuel-williams-shopify . Pull Request #17951\n - Bug #21842: Encoding of rb_interned_str\n - Bug #22126: Stack underflow for partial DCE and loops\n - Bug #22124: void value missed in parse.y\n - Bug #22183: parse.y interpolation inside lambda literal\n - Bug #22099: Keyword-only method silently accepts a positional argument\n - Bug #22133: Ruby's default SIGINT handling ignores Thread.handle_interrupt masking.\n - Bug #22189: Enumerator::Lazy#to_enum does not accept method names as strings\n - Bug #22191: Signal.trap(:EXIT) exception only shown if at_exit also raises\n - Bug #22198: win32: heap overflow in Kernel#system\n - Bug #20958: fix ENV.keys encoding on windows\n - Bug #11438: native_thread_init_stack() get machine.stack_start unequal to thread's\n stack start address, x86 win32\n - Bug #22218: Line TracePoint misses executed loop condition after a guard\n - Bug #22223: Socket.tcp with connect_timeout returns a phantom 'connected' socket\n for a refused connection on macOS 27 (kernel answers EISCONN on connect retry;\n SO_ERROR never consulted)\n - Bug #22290: Adding instance variables to anonymous object may bloat all future classes\n - Bug #22269: Coverage.line_stub clobbers already-collected coverage data\n - Bug #22257: Prepending a module to an already-included module leaves stale super caches\n - Handle spurious wakeups in Thread#join. by samuel-williams-shopify . Pull Request #13532\n - Bug #22311: Build crashes on macOS 26 with the macOS 27 SDK because pipe2() and dup3()\n are unavailable\n - Bug #22259: Arrays sharding a buffer segfault when concatenating with each other\n - Bug #22264: Warning missing from parse.y hash literals\n - Bug #22303: EncodingError from interpolating symbol crashes whole process\n - Bug #22315: heap-use-after-free in String unpack with a block that mutates the receiver\n - Bug #22318: heap uaf triggered in array.flatten\n - Bug #22319: heap buffer overflow triggered by array's zip function\n - Bug #22322: AddressSanitizer: use-after-poison in econv_description\n /ruby-src/build/../transcode.c\n - Bug #22321: Assertion Failed: rb_vm_search_method_slowpath:RB_TYPE_2_P(klass,\n RUBY_T_CLASS, RUBY_T_ICLASS): klass: T_MODULE\n - Bug #22334: Assertion Failed: VM_ENV_FLAGS:FIXNUM_P(flags)\n - Bug #22336: IO:Buffer Heap uaf\n - Bug #9932: Permutation - Segment fault\n - Bug #22330: heap uaf from string.encode()\n - Bug #22340: Win32: File.stat succeeds on symbolic-link loops on Windows\n - Bug #22335: Stack corruption with \u003e31 keyword args and refined Integer#==\n - Bug #22338: [Backport] win32: create directory symlinks for relative directory targets\n","modified":"2026-11-24T10:45:04.821748045Z","published":"2026-11-23T11:55:48Z","related":["CVE-2026-132825"],"upstream":["CVE-2026-132825"],"references":[{"type":"ADVISORY","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20265413-1/"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290919"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290920"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290921"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290923"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290924"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290925"},{"type":"REPORT","url":"https://bugzilla.suse.com/1290926"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-132825"}],"affected":[{"package":{"name":"ruby3.4","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","purl":"pkg:rpm/suse/ruby3.4&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.13-150700.3.7.1"}]}],"ecosystem_specific":{"binaries":[{"libruby3_4-3_4":"3.4.13-150700.3.7.1","ruby3.4":"3.4.13-150700.3.7.1","ruby3.4-devel":"3.4.13-150700.3.7.1","ruby3.4-devel-extra":"3.4.13-150700.3.7.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2026:5413-1.json"}},{"package":{"name":"ruby3.4","ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","purl":"pkg:rpm/suse/ruby3.4&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP7"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.13-150700.3.7.1"}]}],"ecosystem_specific":{"binaries":[{"ruby3.4-doc":"3.4.13-150700.3.7.1","ruby3.4-doc-ri":"3.4.13-150700.3.7.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2026:5413-1.json"}}],"schema_version":"1.9.2"}