]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PPPOE: fix memory leak (local DoS) (CVE-2007-2525)
authorFlorian Zumbiehl <florz@florz.de>
Tue, 13 Nov 2007 10:12:46 +0000 (11:12 +0100)
committerAdrian Bunk <bunk@kernel.org>
Tue, 13 Nov 2007 10:12:46 +0000 (11:12 +0100)
commit624e4ff675005168e71d297185f4b75dbdf650af
treef59d7edef1653c51656d3c167e03b123830acafa
parent07c2420331fc05ff768b35ef8d4de2d17700756e
PPPOE: fix memory leak (local DoS) (CVE-2007-2525)

This patch fixes a memory leak when a PPPoE socket is release()d after
it has been connect()ed, but before the PPPIOCGCHAN ioctl ever has been
called on it.

This is somewhat of a security problem, too, since PPPoE sockets can be
created by any user, so any user can easily allocate all the machine's
RAM to non-swappable address space and thus DoS the system.

Is there any specific reason for PPPoE sockets being available to any
unprivileged process, BTW? After all, you need a packet socket for the
discovery stage anyway, so it's unlikely that any unprivileged process
will ever need to create a PPPoE socket, no? Allocating all session IDs
for a known AC is a kind of DoS, too, after all - with Juniper ERXes,
this is really easy, actually, since they don't ever assign session ids
above 8000 ...

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/net/pppox.c