lkml.org 
[lkml]   [2015]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] unix: properly account for FDs passed over unix sockets
On Thu, 31 Dec 2015 08:12:53 +0100
Willy Tarreau <w@1wt.eu> wrote:

> On Thu, Dec 31, 2015 at 03:08:53PM +0900, Tetsuo Handa wrote:
> > Willy Tarreau wrote:
> > > On Wed, Dec 30, 2015 at 09:58:42AM +0100, Hannes Frederic Sowa wrote:
> > > > The MSG_PEEK code should not be harmful and the patch is good as is. I
> > > > first understood from the published private thread, that it is possible
> > > > for a program to exceed the rlimit of fds. But the DoS is only by
> > > > keeping the fds in flight and not attaching them to any program.
> > >
> > > Exactly. The real issue is when these FDs become very expensive such as
> > > pipes full of data.
> > >
> >
> > As you wrote how to abuse this vulnerability which exists in Linux 2.0
> > and later kernel, I quote a short description from private thread.
> >
> > "an unprivileged user consumes all file descriptors so that other
> > unprivileged user cannot work" and "an unprivileged user consumes all
> > kernel memory so that the OOM killer kills almost all processes before
> > the culprit process is killed (CVE-2013-4312)".
> >
> > Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
> > Mitigates: CVE-2013-4312 (Linux 2.0+)
>
> Well I didn't reveal any secret as it was publicly reported first
> in 2010, it's only that Mark sent us the proof of concept exploit
> on the security list recently :-)

There were demonstrations of this bug posted for BSD unixes before Linux
even existed. It and "run the box out of socket buffers" are older than
Linux 8)

Alan


\
 
 \ /
  Last update: 2015-12-31 12:01    [W:0.078 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site