CVE-2019-12900

NameCVE-2019-12900
DescriptionBZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1833-1, DLA-1953-1
Debian Bugs930886, 934359

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
bzip2 (PTS)bullseye1.0.8-4fixed
bookworm1.0.8-5fixed
sid, trixie1.0.8-6fixed
clamav (PTS)bullseye0.103.10+dfsg-0+deb11u1fixed
bookworm1.0.5+dfsg-1~deb12u1fixed
sid, trixie1.4.1+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
bzip2sourcejessie1.0.6-7+deb8u1DLA-1833-1
bzip2source(unstable)1.0.6-9.1930886
clamavsourcejessie0.101.4+dfsg-0+deb8u1DLA-1953-1
clamavsourcestretch0.101.4+dfsg-0+deb9u1
clamavsourcebuster0.101.4+dfsg-0+deb10u1
clamavsource(unstable)0.101.4+dfsg-1934359

Notes

[stretch] - bzip2 <no-dsa> (Not exploitable; potential dangerous parts already guarded)
https://gitlab.com/federicomenaquintero/bzip2/commit/74de1e2e6ffc9d51ef9824db71a8ffee5962cdbc
The original fix introduces regressions when extracting certain lbzip2 files
which were created with a buggy libzip2: https://bugs.debian.org/931278
Details on followup: https://sourceware.org/ml/bzip2-devel/2019-q3/msg00007.html
explaining as well why, whilst the issue described by CVE-2019-12900 is definitvely
an issue, it was not exploitable in the first place.
Regression fix: https://sourceware.org/git/?p=bzip2.git;a=commit;h=b07b105d1b66e32760095e3602261738443b9e13
Clamav: https://blog.clamav.net/2019/08/clamav-01014-security-patch-release-has.html
clamav uses libbz2 but the "nsis" scanner/decompressor has a decompress.c from bzip2

Search for package or bug name: Reporting problems