Affected versions
OCaml / opamocaml
- Affected versions
- <4.14.4
- Fixed version
- 4.14.4
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
Description
The function caml_ba_reshape, part of the OCaml runtime (in runtime/bigarray.c), had a missing check for integer overflow when computing the size to be allocated. This leads to a segmentation fault.
Any application using Bigarray.reshape (or reshape_N) with untrusted and unchecked input can result in a segmentation fault.
Timeline
2026-06-18 security advisory released
2026-06-15 OCaml 4.14.4 released
2026-04-16 Florian Angeletti backported the fix to the 4.14 branch
2026-04-15 Stephen Dolan proposed fix https://github.com/ocaml/ocaml/pull/14691
2026-03-18 Andriy Sultanov reported https://github.com/ocaml/ocaml/issues/14655
Links
Credits
- Andriy Sultanov
- Stephen Dolan
- Xavier Leroy
- Hannes Mehnert

