Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719134 (CVE-2018-9838) - <dev-lang/ocaml-4.09.0: Integer overflow (CVE-2018-9838)
Summary: <dev-lang/ocaml-4.09.0: Integer overflow (CVE-2018-9838)
Status: RESOLVED FIXED
Alias: CVE-2018-9838
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B2 [glsa+ cve]
Keywords: PullRequest
Depends on: 704246 708696 ocaml-4.09 755257
Blocks:
  Show dependency tree
 
Reported: 2020-04-23 22:39 UTC by Sam James
Modified: 2023-10-28 19:34 UTC (History)
3 users (show)

See Also:
Package list:
dev-lang/ocaml-4.09.0-r1
Runtime testing required: Yes


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-23 22:39:07 UTC
Description:
"The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml 4.06.0 has an integer overflow which, in situations where marshalled data is accepted from an untrusted source, allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted object."
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-06-20 02:10:23 UTC
ping
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2020-07-26 22:33:13 UTC
sparc was missed...
Comment 3 GLSAMaker/CVETool Bot gentoo-dev 2020-07-27 01:27:24 UTC
This issue was resolved and addressed in
 GLSA 202007-48 at https://security.gentoo.org/glsa/202007-48
by GLSA coordinator Sam James (sam_c).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-27 01:28:45 UTC
(In reply to GLSAMaker/CVETool Bot from comment #3)
> This issue was resolved and addressed in
>  GLSA 202007-48 at https://security.gentoo.org/glsa/202007-48
> by GLSA coordinator Sam James (sam_c).

Reopening for sparc stabilisation.
Comment 5 NATTkA bot gentoo-dev 2020-07-27 17:29:01 UTC Comment hidden (obsolete)
Comment 6 Mark Purtill 2020-07-27 22:03:57 UTC
On a stable system, one can't update dev-lang/ocaml-4.09.0 without unmasking dev-ml/ocamlbuild-0.14.0 and possibly some other packages.  See this forum thread:

<https://forums.gentoo.org/viewtopic-t-1114522-highlight-ocaml.html>
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-17 01:55:06 UTC
(In reply to Mark Purtill from comment #6)
> On a stable system, one can't update dev-lang/ocaml-4.09.0 without unmasking
> dev-ml/ocamlbuild-0.14.0 and possibly some other packages.  See this forum
> thread:
> 
> <https://forums.gentoo.org/viewtopic-t-1114522-highlight-ocaml.html>

I think this should be fixed now, or at least getting there.
Comment 8 Larry the Git Cow gentoo-dev 2021-06-08 04:59:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b06d35218d9e444050526511da10962ea72c2f

commit 34b06d35218d9e444050526511da10962ea72c2f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-08 04:58:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-08 04:59:09 +0000

    dev-lang/ocaml: add CVE-2018-9838 patch to 4.05.0
    
    Closes: https://bugs.gentoo.org/755257
    Bug: https://bugs.gentoo.org/719134
    Signed-off-by: Sam James <sam@gentoo.org>

 .../ocaml/files/ocaml-4.05.0-CVE-2018-9838.patch   |  70 ++++++++++
 dev-lang/ocaml/ocaml-4.05.0-r4.ebuild              | 143 +++++++++++++++++++++
 2 files changed, 213 insertions(+)
Comment 9 NATTkA bot gentoo-dev 2021-06-09 21:48:33 UTC Comment hidden (obsolete)
Comment 10 NATTkA bot gentoo-dev 2021-06-18 21:12:39 UTC
Unable to check for sanity:

> no match for package: dev-lang/ocaml-4.09.0-r1
Comment 11 Hans de Graaff gentoo-dev Security 2023-09-17 06:43:32 UTC
ping.

Some cleanup is still needed (see PR) to fully resolve this bug.
Comment 12 Larry the Git Cow gentoo-dev 2023-10-28 00:24:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da16ce0bc073186b149ff9cd6c6e8b724c88fd59

commit da16ce0bc073186b149ff9cd6c6e8b724c88fd59
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2023-10-22 23:00:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-28 00:24:09 +0000

    dev-lang/ocaml: drop 4.05.0-r9
    
    Bug: https://bugs.gentoo.org/719134
    Signed-off-by: John Helmert III <ajak@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/28090
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/ocaml/Manifest               |   3 -
 dev-lang/ocaml/ocaml-4.05.0-r9.ebuild | 156 ----------------------------------
 2 files changed, 159 deletions(-)