Bug 1129743

Summary: CVE-2014-5119 glibc: out-of-bounds NUL write in iconv_open
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ashankar, codonell, fweimer, jakub, law, pfrankli, spoyarek
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-15 01:28:41 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:    
Bug Blocks: 1129744    

Description Vasyl Kaigorodov 2014-08-13 15:00:02 UTC
It was reported that iconv_open mishandles // transliteration specifiers [1]:

http://www.openwall.com/lists/oss-security/2014/07/14/1

The cause is in __gconv_translit_find:

	      cp = __mempcpy (__stpcpy ((char *) newp->fname, runp->name),
			      trans->name, name_len);
	      if (need_so)
		memcpy (cp, ".so", sizeof (".so"));

cp points *after* the NUL terminator, so the memcpy call does not actually append ".so", but copies four bytes starting after the terminating NUL character, not changing the string at all—and writing a single NUL byte after the end of the buffer.

[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=17187

Comment 1 Vasyl Kaigorodov 2014-08-13 15:02:35 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 1129745]

Comment 3 Murray McAllister 2014-08-15 01:28:41 UTC

*** This bug has been marked as a duplicate of bug 1119128 ***