CVEfocus › CVE database › CVE-2021-42521

CVE-2021-42521

CVSS 7.5 HighEPSS 1.4% (higher than 72% of CVEs)Published 2022-08-25Updated 2024-08-04Assigner: fedora

There is a NULL pointer dereference vulnerability in VTK before 9.2.5, and it lies in IO/Infovis/vtkXMLTreeReader.cxx. The vendor didn't check the return value of libxml2 API 'xmlDocGetRootElement', and try to dereference it. It is unsafe as the return value can be NULL and that NULL pointer dereference may crash the application.

CWE-400

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have 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

3Fixed
11Fix pending
1Under investigation
2Not 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.04vtk9Not affected
vulnerable_code_not_present
Ubuntu 25.10vtk9Not affected
vulnerable_code_not_present
Ubuntu 24.04vtk9Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 22.04vtk7Under investigationUBUNTU-CVE-2021-42521
Ubuntu 22.04vtk9Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 20.04vtk6Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 20.04vtk7Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 18.04vtk6Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 18.04vtk7Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 16.04vtkFix pendingUBUNTU-CVE-2021-42521
Ubuntu 16.04vtk6Fix pendingUBUNTU-CVE-2021-42521
Ubuntu 14.04vtkFix pendingUBUNTU-CVE-2021-42521
Ubuntu 14.04vtk6Fix pendingUBUNTU-CVE-2021-42521
Debian 14vtk9Fixed9.1.0+really9.1.0+dfsg2-8DEBIAN-CVE-2021-42521
Debian 13vtk9Fixed9.1.0+really9.1.0+dfsg2-8DEBIAN-CVE-2021-42521
Debian 12vtk9Fix pendingDEBIAN-CVE-2021-42521
PyPI libraryvtkFixed9.0.1PYSEC-2022-255

What the vendor says

As published in the CVE record by fedora, 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.