Bug 1181167 (CVE-2015-5700, CVE-2015-5701)
Summary: | CVE-2015-5700 CVE-2015-5701 texlive: insecure use of /tmp in mktexlsr | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] Security Response | Reporter: | Vasyl Kaigorodov <vkaigoro> | ||||
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | unspecified | CC: | novyjindrich, than | ||||
Target Milestone: | --- | Keywords: | Security | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
It was discovered that the mktexlsr script of the texlive package creates temporary files in an insecure way. A local attacker could possibly use this flaw to perform a symbolic link attack and overwrite arbitrary files with the privileges of the user running mktexslr, or obtain sensitive information from the temporary files.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-09-23 11:07:16 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: | 1181169 | ||||||
Bug Blocks: | 1225847 | ||||||
Attachments: |
|
Description
Vasyl Kaigorodov
2015-01-12 14:11:20 UTC
Created attachment 979176 [details]
mktexlsr.patch
Created texlive tracking bugs for this issue: Affects: fedora-all [bug 1181169] do we have CVE id for this bug? texlive-2014-8.20140525_r34255.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. texlive-2014-7.1.20140525_r34255.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. (In reply to Ngo Than from comment #3) > do we have CVE id for this bug? Have just requested one on oss-security. This BZ will be updated with the CVE ID once it's assigned. This is how upstream fixed it: --- texlive-bin.orig/texk/kpathsea/mktexlsr +++ texlive-bin/texk/kpathsea/mktexlsr @@ -73,7 +73,7 @@ dry_run=false trees= -treefile="${TMPDIR-/tmp}/mktexlsrtrees$$.tmp" +treefile=`mktemp --tmpdir mktexlsrtrees.XXXXXXXXXX` || exit 1 MITRE assigned two CVEs, details here: http://seclists.org/oss-sec/2015/q3/250 To clear things up. CVE-2015-5700 is for the issue introduced by this commit (lines 69-72): http://tug.org/svn/texlive/trunk/Build/source/texk/kpathsea/mktexlsr?r1=19613&r2=22885 It looks like later at some point this was fixed to use "mktemp --tmpdir" (commit unknown), and CVE-2015-5701 was assigned to the issue introduced by this commit: http://tug.org/svn/texlive/trunk/Build/source/texk/kpathsea/mktexlsr?r1=36626&r2=36855 Looks like this was introduced via: http://tug.org/svn/texlive/trunk/Build/source/texk/kpathsea/mktexlsr?r1=19613&r2=22885 Texlive for RHEL6 does not have this change yet and is not vulnerable. Texlive for RHEL7, however, ships with this change and is vulnerable. |