Bug 1534076 - util-linux: mount/unmount ASLR bypass via environment variable in libmount
Summary: util-linux: mount/unmount ASLR bypass via environment variable in libmount
Keywords:
Status: CLOSED NOTABUG
Alias: None
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: 1534077 1536164
Blocks: 1534893 1535102
TreeView+ depends on / blocked
 
Reported: 2018-01-13 00:13 UTC by Laura Pardo
Modified: 2021-02-17 00:59 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 1534893 (view as bug list)
Environment:
Last Closed: 2019-06-08 03:37:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Laura Pardo 2018-01-13 00:13:35 UTC
Debugging of libmount can be activated, also in SUID binaries, thus spilling out the heap addresses. This allows to create a local domain socket with only 4k buffer size, fill it up until writes are blocking and then start umount with that socket as stdout. This allows race-free reading of the address output before umount accesses other user-controlled resource. Thus any error during the downstream procedure creating some kind of write-where vulnerability will always find the correct target.

References:
https://www.spinics.net/lists/util-linux-ng/msg14978.html

Comment 1 Laura Pardo 2018-01-13 00:14:03 UTC
Created util-linux tracking bugs for this issue:

Affects: fedora-all [bug 1534077]

Comment 4 Pedro Yóssis Silva Barbosa 2018-01-18 18:32:06 UTC
Statement:

This issue did not affect the versions of util-linux as shipped with Red Hat Enterprise Linux 4, 5, 6 and 7.


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