Bug 1800724 (CVE-2020-5212)

Summary: CVE-2020-5212 nethack: MENUCOLOR configuration file option is subject to a buffer overflow
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: lewk, me, tachoknight
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-07 20:09:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1800725, 1800726    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2020-02-07 20:03:38 UTC
In NetHack before 3.6.5, an extremely long value for the MENUCOLOR configuration file option can cause a buffer overflow resulting in a crash or remote code execution/privilege escalation. This vulnerability affects systems that have NetHack installed suid/sgid and shared systems that allow users to upload their own configuration files. Users should upgrade to NetHack 3.6.5.

Reference:
https://github.com/NetHack/NetHack/security/advisories/GHSA-g89f-m829-4m56

Comment 1 Guilherme de Almeida Suckevicz 2020-02-07 20:03:57 UTC
Created nethack tracking bugs for this issue:

Affects: epel-8 [bug 1800726]
Affects: fedora-all [bug 1800725]

Comment 2 Product Security DevOps Team 2020-02-07 20:09:36 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Comment 3 Ron Olson 2020-02-07 20:10:50 UTC
3.6.5 fixes all these and has already been pushed to stable for F30 and F31, and is still in testing for EPEL8

https://bodhi.fedoraproject.org/updates/FEDORA-2020-517b2845a1 F31
https://bodhi.fedoraproject.org/updates/FEDORA-2020-659277b3b8 F30
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-b1d1e3e81d EPEL8