Name | CVE-2018-13347 |
Description | mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1414-1, DLA-2293-1 |
Debian Bugs | 901050 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
mercurial (PTS) | jessie, jessie (lts) | 3.1.2-2+deb8u7 | fixed |
| stretch (security), stretch (lts), stretch | 4.0-1+deb9u2 | fixed |
| buster | 4.8.2-1+deb10u1 | fixed |
| bullseye | 5.6.1-4 | fixed |
| bookworm | 6.3.2-1 | fixed |
| trixie | 6.8.2-1 | fixed |
| sid | 6.9-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29
https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c
there are actually 6 more patches required to completely fix bug #901050,
see https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A
upstream proposes we use OVE-20180430-0002 to cover all undefined behavior
cases which the 6 patches fix