CVE-2021-30184
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2021-30184 affects GNU Chess version 6.2.7, allowing attackers to execute arbitrary code via crafted PGN (Portable Game Notation) data. The vulnerability is related to a buffer overflow in the use of a .tmp.epd temporary file in the cmdpgnload and cmdpgnreplay functions in frontend/cmd.cc. The issue was discovered in April 2021 and has been assigned a CVSS 3.1 base score of 7.8 (High) (NVD).

Technical details

The vulnerability stems from insufficient validation of PGN file input in the cmdpgnload() and cmdpgnreplay() functions. Specifically, in the loop between lines 482-485 of cmd.cc, a specially crafted epdline could overrun the data buffer since the end of the buffer is not checked. The program continues to copy bytes beyond the buffer limit, eventually overwriting the return address on the stack. The issue can be reproduced by setting a breakpoint on the loadpgnas_epd() function and manipulating the temporary file '.tmp.epd' with a buffer overflow payload (GNU Bug Report).

Impact

A successful exploitation of this vulnerability could allow attackers to execute arbitrary code with the privileges of the process or cause a Denial of Service condition. The vulnerability requires user interaction, as an attacker would need to entice a user to open a specially crafted PGN file using GNU Chess (Gentoo Advisory).

Mitigation and workarounds

The vulnerability has been fixed in GNU Chess version 6.2.8-r1 and later. Users are advised to upgrade to the latest version of the software. For Fedora users, patches were released for versions 32, 33, and 34 (Fedora Update), while Debian users received security updates through DLA-4014-1 (Debian LTS).

Community reactions

The GNU Chess maintainers acknowledged the vulnerability report and confirmed the issue, indicating that similar bugs had been found in the past. They committed to reviewing the provided patch for inclusion in a future release (GNU Response).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management