Live data from Hacker News

“Most serious” Linux privilege-escalation bug ever is under active exploit

arstechnica.com

11–20 of 218 posts

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#11
post #2

CVE-2016-5195 This flaw allows an attacker with a local system account to modify on-disk binaries, bypassing the standard permission mechanisms that would prevent modification without an appropriate permission set. This is achieved by racing the madvise(MADV_DONTNEED) system call while having the page of the executable mmapped in memory. Excellent example why mounting partition with system binaries (such as /usr) rea…

Man, MADV_DONTNEED again? I mean, Linux's implementation is already weird (it behaves in a way counter to most other implementations of the call: you can see Bryan Cantrill's talk for the details).

What is with that call?

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#12
post #7

Seems to be fixed by this commit (in 4.8.3). commit 89eeba1594ac641a30b91942961e80fae978f839 Author: Linus Torvalds Date: Thu Oct 13 13:07:36 2016 -0700 mm: remove gup_flags FOLL_WRITE games from __get_user_pages() commit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 upstream. This is an ancient bug that was actually attempted to be fixed once (badly) by me eleven years ago in commit 4ceb5db9757a ("Fix get_user_pages() ra…

And for earlier kernel versions, there is an STAP patch:

  1) On the host, save the following in a file with the ".stp" extension:

  probe kernel.function("mem_write").call ? {
          $count = 0
  }
  probe syscall.ptrace {  // includes compat ptrace as well
          $request = 0xfff
  }

  2) Install the "systemtap" package and any required dependencies. Refer
  to the "2. Using SystemTap" chapter in the Red Hat Enterprise Linux
  "SystemTap Beginners Guide" document, available from docs.redhat.com,
  for information on installing the required -debuginfo packages.

  3) Run the "stap -g [filename-from-step-1].stp" command as root.
From https://bugzilla.redhat.com/show_bug.cgi?id=1384344#c13

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#13
post #2

CVE-2016-5195 This flaw allows an attacker with a local system account to modify on-disk binaries, bypassing the standard permission mechanisms that would prevent modification without an appropriate permission set. This is achieved by racing the madvise(MADV_DONTNEED) system call while having the page of the executable mmapped in memory. Excellent example why mounting partition with system binaries (such as /usr) rea…

How does mounting the partition read-only help with modifying binary images in memory?

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#14
post #2

CVE-2016-5195 This flaw allows an attacker with a local system account to modify on-disk binaries, bypassing the standard permission mechanisms that would prevent modification without an appropriate permission set. This is achieved by racing the madvise(MADV_DONTNEED) system call while having the page of the executable mmapped in memory. Excellent example why mounting partition with system binaries (such as /usr) rea…

Man, MADV_DONTNEED again? I mean, Linux's implementation is already weird (it behaves in a way counter to most other implementations of the call: you can see Bryan Cantrill's talk for the details). What is with that call?

Found the lightning talk: https://youtu.be/bg6-LVCHmGM?t=3521

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#15

See also the dedicated page for this vulnerability, dubbed Dirty COW (for copy-on-write), aka CVE-2016-5195: http://dirtycow.ninja/

Gotta love the dedication with the Dirty COW "swag" web shop and all. Though something tells to me it's just a strange in-joke. Might be the prices? ($1,000 for a mouse pad .. oh, really?)

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#16
post #4

It's probably the most serious Linux local privilege escalation ever. Look, the Azimuth people have forgotten more about reliable exploit development than I have ever known, but, no, as stated, this is clearly not true. Not long ago, pretty much all local privesc bugs were practically 100% reliable. What I think they mean to say is that this is unusually reliable for a kernel race. I still think, though, that the rig…

> 2. In almost all cases, whether or not there's a known local privesc bug, assume that code execution on your Linux systems equates to privesc; this is doubly true of machines in your prod deployment environment.

I think this goes for any mainstream OS, Linux is not particularly special here.

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#17

See also the dedicated page for this vulnerability, dubbed Dirty COW (for copy-on-write), aka CVE-2016-5195: http://dirtycow.ninja/

Gotta love the dedication with the Dirty COW "swag" web shop and all. Though something tells to me it's just a strange in-joke. Might be the prices? ($1,000 for a mouse pad .. oh, really?)

It would appear that the creators of the web site are not even affiliated with the people who found or fixed the bug.

"Dirty COW is a community-maintained project for the bug otherwise known as CVE-2016-5195. It is not associated with the Linux Foundation, nor with the original discoverer of this vulnerability. If you would like to contribute go to GitHub."

Seems fishy.

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#18
post #7

Seems to be fixed by this commit (in 4.8.3). commit 89eeba1594ac641a30b91942961e80fae978f839 Author: Linus Torvalds Date: Thu Oct 13 13:07:36 2016 -0700 mm: remove gup_flags FOLL_WRITE games from __get_user_pages() commit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 upstream. This is an ancient bug that was actually attempted to be fixed once (badly) by me eleven years ago in commit 4ceb5db9757a ("Fix get_user_pages() ra…

> that was then undone due to problems on s390

An interesting counter-example to the idea that "more architectures expose problems that would hide in a monoculture".

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#19
post #4

It's probably the most serious Linux local privilege escalation ever. Look, the Azimuth people have forgotten more about reliable exploit development than I have ever known, but, no, as stated, this is clearly not true. Not long ago, pretty much all local privesc bugs were practically 100% reliable. What I think they mean to say is that this is unusually reliable for a kernel race. I still think, though, that the rig…

You said it: If you are not explicitly on the business of providing external access to your machine, the privesc isn't your problem (it's a problem, and it's bad, though), it's the fact that anybody could exploit the privesc in the first place.

If you are a client of such a busines you would have to care too.

Re: “Most serious” Linux privilege-escalation bug ever is under active exploit

#20
post #17

Earlier quoted context omitted.

Gotta love the dedication with the Dirty COW "swag" web shop and all. Though something tells to me it's just a strange in-joke. Might be the prices? ($1,000 for a mouse pad .. oh, really?)

It would appear that the creators of the web site are not even affiliated with the people who found or fixed the bug. "Dirty COW is a community-maintained project for the bug otherwise known as CVE-2016-5195. It is not associated with the Linux Foundation, nor with the original discoverer of this vulnerability. If you would like to contribute go to GitHub." Seems fishy.

We live in a world where slightly arcane developer jokes are "SWAG squatted"
Post reply on HN