CVE-2021-32142

NameCVE-2021-32142
DescriptionBuffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3433-1, DSA-5412-1, ELA-977-1
Debian Bugs1031790

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libraw (PTS)jessie, jessie (lts)0.16.0-9+deb8u6vulnerable
stretch (security)0.17.2-6+deb9u2vulnerable
stretch (lts), stretch0.17.2-6+deb9u5fixed
buster (security), buster, buster (lts)0.19.2-2+deb10u4fixed
bullseye (security), bullseye0.20.2-1+deb11u1fixed
bookworm0.20.2-2.1fixed
trixie, sid0.21.3-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librawsourceexperimental0.21.1-1
librawsourcejessie(unfixed)end-of-life
librawsourcestretch0.17.2-6+deb9u5ELA-977-1
librawsourcebuster0.19.2-2+deb10u3DLA-3433-1
librawsourcebullseye0.20.2-1+deb11u1DSA-5412-1
librawsource(unstable)0.20.2-2.11031790

Notes

https://github.com/LibRaw/LibRaw/issues/400
https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49 (0.21-Beta1)

Search for package or bug name: Reporting problems