A stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon DCodeNumber parsing functionality of KiCad EDA 6.0.1 and master commit de006fc010. A specially-crafted gerber or excellon file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
https://www.debian.org/security/2022/dsa-5214
https://talosintelligence.com/vulnerability_reports/TALOS-2022-1460
https://lists.debian.org/debian-lts-announce/2022/08/msg00010.html
https://lists.debian.org/debian-lts-announce/2022/05/msg00009.html