Bug 1462147 (CVE-2017-1000365) - CVE-2017-1000365 kernel: RLIMIT_STACK/RLIMIT_INFINITY string size limitation bypass
Summary: CVE-2017-1000365 kernel: RLIMIT_STACK/RLIMIT_INFINITY string size limitation ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-1000365
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1462827
Blocks: 1473651
TreeView+ depends on / blocked
 
Reported: 2017-06-16 10:31 UTC by Andrej Nemec
Modified: 2023-12-15 15:55 UTC (History)
36 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
The Linux Kernel imposes a size restriction on the arguments and environmental strings passed through RLIMIT_STACK/RLIMIT_INFINITY, but does not take the argument and environment pointers into account, which allows attackers to bypass this limitation.
Clone Of:
Environment:
Last Closed: 2021-10-27 10:53:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-06-16 10:31:25 UTC
The Linux Kernel imposes a size restriction on the arguments and environmental strings passed through RLIMIT_STACK/RLIMIT_INFINITY (1/4 of the size), but does not take the argument and environment pointers into account, which allows attackers to bypass this limitation.

This method in itself is not an exploit, but bypassing this mechanism is the flaw/issue being tracked.

Upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=98da7d08850fb8bdeb395d6368ed15753304aa0c

Comment 1 Andrej Nemec 2017-06-16 10:32:50 UTC
Acknowledgments:

Name: Qualys Inc.

Comment 2 Andrej Nemec 2017-06-16 10:32:59 UTC
External References:

https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt

Comment 3 Petr Matousek 2017-06-19 16:08:25 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1462827]

Comment 4 Wade Mealing 2017-08-07 05:31:07 UTC
Statement:

This issue affects the Linux kernel packages as shipped with Red Hat
Enterprise Linux 5,6, 7 and MRG-2.

Future Linux kernel updates for the respective releases may address this issue.

Comment 6 Ravindra Patil 2017-09-14 17:27:18 UTC
Hello 

Any ETA for errata for this vulnerability. RHEL 5,6,7 are affected by this bug. No errata has been released, any possible ETA would help to pass on information to customer.

Comment 9 Wade Mealing 2020-06-23 07:19:59 UTC
Looking back through my mail, I had lodged a dispute with mitre about this being an actual flaw, it was turned down

EL7 was fixed in commit 2ddf8223ea49e280967762dc2d954aea2d497c80 Which was fixed in kernel-3.10.0-1000.el7 or newer.

This low wouldn't qualify for a fix in el5 and 6. at this point (or then) either.


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