Bug 1667586 (CVE-2019-5718)

Summary: CVE-2019-5718 wireshark: out-of-bounds read in get_t61_string() in epan/charsets.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mruprich
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: wireshark 2.6.6, wireshark 2.4.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-29 20:55:11 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: 1667587, 1686915    
Bug Blocks: 1667594    

Description Laura Pardo 2019-01-18 21:48:59 UTC
In Wireshark 2.6.0 to 2.6.5 and 2.4.0 to 2.4.11, the RTSE dissector and other ASN.1 dissectors could crash. This was addressed in epan/charsets.c by adding a get_t61_string length check.


References:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15373
https://www.wireshark.org/security/wnpa-sec-2019-03.html

Upstream Patch:
https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cd09cb5cfb673beca3cce20b1d6a9bc67a134ae1

Comment 1 Laura Pardo 2019-01-18 21:49:15 UTC
Created wireshark tracking bugs for this issue:

Affects: fedora-all [bug 1667587]

Comment 3 Riccardo Schirone 2019-03-08 16:21:56 UTC
Function get_t61_string() in charsets.c does not correctly validate its input and it reads one byte beyond the input buffer `ptr`, possibly crashing the binary or having other undefined effects.