CWE
416 252
Advisory Published
Updated

CVE-2021-40401: Use After Free

First published: Fri Feb 04 2022(Updated: )

A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Credit: talos-cna@cisco.com

Affected SoftwareAffected VersionHow to fix
debian/gerbv<=2.7.0-1+deb10u1
2.7.0-1+deb10u3
2.7.0-2+deb11u2
2.9.6-1
2.10.0-1
Gerbv=2.7.0
Gerbv=2.7.1-forked_dev
Red Hat Fedora=36
Debian Linux=11.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-40401?

    CVE-2021-40401 is considered to have a high severity due to its potential for code execution through specially crafted Gerber files.

  • How do I fix CVE-2021-40401?

    To fix CVE-2021-40401, upgrade to versions 2.7.1-forked_dev or later for Gerbv.

  • Which software versions are affected by CVE-2021-40401?

    CVE-2021-40401 affects Gerbv versions up to and including 2.7.0 and the forked version 2.7.1.

  • Can CVE-2021-40401 be exploited remotely?

    Yes, CVE-2021-40401 can be exploited remotely if an attacker provides a malicious Gerber file.

  • What kind of attack is CVE-2021-40401 associated with?

    CVE-2021-40401 is associated with a use-after-free vulnerability leading to potential code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203