Title: GNU Chess: Buffer overflow ([glsa=202107-28]GLSA 202107-28[/glsa])
Severity: normal
Exploitable: remote
Date: 2021-07-12
Bug(s): #780855
ID: 202107-28
Synopsis
A buffer overflow in GNU Chess might allow arbitrary code
execution.
Background
GNU Chess is a console based chess interfae.
Affected Packages
Package: games-board/gnuchess
Vulnerable: < 6.2.8-r1
Unaffected: >= 6.2.8-r1
Architectures: All supported architectures
Description
The cmd_pgnload() and cmd_pgnreplay() functions in cmd.cc in GNU Chess
to not sufficiently validate PGN file input, potentially resulting in a
buffer overflow.
Impact
A remote attacker could entice a user to open a specially crafted PGN
file using GNU Chess, possibly resulting in execution of arbitrary code
with the privileges of the process or a Denial of Service condition.
Workaround
There is no known workaround at this time.
Resolution
All GNU Chess users should upgrade to the latest version:
Code: Select all
# emerge --sync
# emerge --ask --oneshot --verbose ">=games-board/gnuchess-6.2.8-r1"
References
CVE-2021-30184
