Bug 1418204 (CVE-2017-5899) - CVE-2017-5899 s-nail: privsep helper local privilege escalation
Summary: CVE-2017-5899 s-nail: privsep helper local privilege escalation
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2017-5899
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1418205
TreeView+ depends on / blocked
 
Reported: 2017-02-01 09:35 UTC by Andrej Nemec
Modified: 2019-09-29 14:05 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-01 16:44:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-02-01 09:35:58 UTC
A vulnerability was found in mailx. It was found that the privilege-separated child does not strip path separators from arguments. This potentially allows for a local privilege escalation.

References:

https://www.mail-archive.com/s-nail-users@lists.sourceforge.net/msg00551.html
http://seclists.org/oss-sec/2017/q1/212

Upstream patches:

https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f797c27efecad45af191c518b7f87fda32ada160
https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f2699449b66dd702a98925bd1b11153a6f7294bf

Comment 1 Dmitry Butskoy 2017-02-01 16:24:58 UTC
Fedora still uses the old mailx-12.5 (from Heirloom project).

It looks that vulnerability had appeared in the new, forked code only (from git.sdaoden.eu), since there are no any "privsep.c" files in the 12.5 version.

Comment 2 Andrej Nemec 2017-02-01 16:26:47 UTC
(In reply to Dmitry Butskoy from comment #1)
> Fedora still uses the old mailx-12.5 (from Heirloom project).
> 
> It looks that vulnerability had appeared in the new, forked code only (from
> git.sdaoden.eu), since there are no any "privsep.c" files in the 12.5
> version.

This indeed seems to be the case. Thanks for the input! I have changed fedora to notaffected.

Comment 3 Dmitry Butskoy 2017-02-01 16:31:36 UTC
BTW RHEL6/RHEL7 seem not affected too...

Comment 4 Tomas Hoger 2017-02-01 16:44:07 UTC
As noted above, this is s-nail issue, not affecting mailx.

Comment 5 Andrej Nemec 2017-02-07 09:05:45 UTC
CVE assignment:

http://seclists.org/oss-sec/2017/q1/329


Note You need to log in before you can comment on or make changes to this bug.