SIGSEGV in array_copy - array.c:71
A malformed input file causes a segmentation fault in mruby's array_copy function at array.c:71. An attacker could crash the interpreter by supplying this file.
- Triaged in 2 hours
- Fixed in 7 days
- Paid in 7 days
- Disclosed after 9 days
File [2] as input causes a segfault in mruby.
mruby crashes in ary_copy (array.c:71):
Program received signal SIGSEGV, Segmentation fault.
0x000000000040e088 in array_copy (src=<optimized out>, size=<optimized out>, dst=<optimized out>) at /tmp/mruby/src/array.c:71
71 dst[i] = src[i];
Test platform: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 x86_64 GNU/Linux
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing bounds check or invalid pointer in array_copy when handling the crafted input.
What the attacker needed
Ability to supply input file to mruby
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A segmentation fault is a crash that happens when a program tries to access memory it shouldn't. Here, a specially crafted file makes the mruby interpreter crash, which could be used to disrupt a service that processes untrusted files.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.