Description
A flaw has been found in mruby up to 3.4.0. This affects the function mrb_vm_exec of the file src/vm.c of the component JMPNOT-to-JMPIF Optimization. Executing a manipulation can lead to use after free. The attack needs to be launched locally. The exploit has been published and may be used. This patch is called e50f15c1c6e131fa7934355eb02b8173b13df415. It is advisable to implement a patch to correct this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | mruby | 3.0, 3.1, 3.2, 3.3, 3.4.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mruby | 4.0.0-1 | — |
| Debian 13 | mruby | No fix yet | — |
| Debian 12 | mruby | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mruby | No fix yet | — |
| Ubuntu 26.04 LTS | mruby | No fix yet | — |
| Ubuntu 25.10 | mruby | No fix yet | — |
| Ubuntu 24.04 LTS | mruby | No fix yet | — |
| Ubuntu 22.04 LTS | mruby | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | mruby | No fix yet | — |
| Ubuntu 18.04 LTS | mruby | No fix yet | — |
| Ubuntu 16.04 LTS | mruby | No fix yet | — |
References
- VDB-344501 | mruby JMPNOT-to-JMPIF Optimization vm.c mrb_vm_exec use after free vdb-entry technical-description
- VDB-344501 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #743377 | mruby cda2567 Use After Free third-party-advisory
- https://github.com/mruby/mruby/issues/6701 issue-tracking
- https://github.com/mruby/mruby/issues/6701#issue-3802609843 exploit issue-tracking
- https://github.com/sysfce2/mruby/commit/e50f15c1c6e131fa7934355eb02b8173b13df415 patch
- https://github.com/mruby/mruby/ product