CVEfocus › CVE database › CVE-2021-32142

CVE-2021-32142

CVSS 7.8 HighEPSS 0.4% (higher than 33% of CVEs)Published 2023-02-17Updated 2025-03-19Assigner: mitre

Buffer 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.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
7Fix pending
15Under investigation
32Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10darktableFix pendingUBUNTU-CVE-2021-32142
Ubuntu 26.10dcrawFix pendingUBUNTU-CVE-2021-32142
Ubuntu 26.10exactimageFix pendingUBUNTU-CVE-2021-32142
Ubuntu 26.10kodiFix pendingUBUNTU-CVE-2021-32142
Ubuntu 26.10rawtherapeeFix pendingUBUNTU-CVE-2021-32142
Ubuntu 26.04darktableUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 26.04dcrawUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 26.04digikamNot affected
vulnerable_code_not_present
Ubuntu 26.04exactimageUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 26.04kodiUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 26.04rawtherapeeUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 25.10darktableWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 25.10dcrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 25.10digikamNot affected
vulnerable_code_not_present
Ubuntu 25.10exactimageWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 25.10kodiWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 25.10rawtherapeeWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 24.04darktableUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 24.04dcrawUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 24.04digikamNot affected
vulnerable_code_not_present
Ubuntu 24.04exactimageUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 24.04kodiUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 24.04rawtherapeeUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 22.04darktableUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 22.04dcrawUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 22.04exactimageUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 22.04kodiUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 22.04librawFixed0.20.2-2ubuntu2.22.04.1UBUNTU-CVE-2021-32142
Ubuntu 22.04rawtherapeeUnder investigationUBUNTU-CVE-2021-32142
Ubuntu 20.04darktableWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 20.04dcrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 20.04digikamFix pending4:6.4.0+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-32142
Ubuntu 20.04exactimageWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 20.04kodiWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 20.04librawFixed0.19.5-1ubuntu1.2UBUNTU-CVE-2021-32142
Ubuntu 20.04rawtherapeeWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04darktableWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04dcrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04exactimageWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04kodiWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04librawFix pendingUBUNTU-CVE-2021-32142
Ubuntu 18.04rawtherapeeWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 18.04ufrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04darktableWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04dcrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04digikamWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 16.04exactimageWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04kodiWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04librawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04rawtherapeeWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 16.04ufrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
UBUNTU-CVE-2021-32142
Ubuntu 14.04darktableWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04dcrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04digikamWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04exactimageWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04librawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04rawtherapeeWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04ufrawWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Ubuntu 14.04xbmcWill not fix
This is a stack overflow and is limited to a denial of service on Ubuntu because of compiler hardening features.
Debian 14librawFixed0.20.2-2.1DEBIAN-CVE-2021-32142
Debian 13librawFixed0.20.2-2.1DEBIAN-CVE-2021-32142
Debian 12librawFixed0.20.2-2.1DEBIAN-CVE-2021-32142
Red Hat Enterprise Linux 9LibRawFixed0:0.20.2-6.el9RHSA-2023:6343
Red Hat Enterprise Linux 9LibRaw-develFixed0:0.20.2-6.el9RHSA-2023:6343
Red Hat Enterprise Linux 8LibRawFixed0:0.19.5-4.el8RHSA-2024:2994
Red Hat Enterprise Linux 8LibRaw-develFixed0:0.19.5-4.el8RHSA-2024:2994
Red Hat Enterprise Linux 7LibRawFixed0:0.19.4-2.el7_9RHSA-2024:0343
Red Hat Enterprise Linux 7LibRaw-develFixed0:0.19.4-2.el7_9RHSA-2024:0343
Red Hat Enterprise Linux 7LibRaw-staticFixed0:0.19.4-2.el7_9RHSA-2024:0343
AlmaLinux 9LibRawFixed0.20.2-6.el9ALSA-2023:6343
AlmaLinux 9LibRaw-develFixed0.20.2-6.el9ALSA-2023:6343
AlmaLinux 8LibRawFixed0.19.5-4.el8ALSA-2024:2994
AlmaLinux 8LibRaw-develFixed0.19.5-4.el8ALSA-2024:2994
Rocky Linux 8LibRawFixed0:0.19.5-4.el8RLSA-2024:2994

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.