netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Fix leaking of kernel heap addresses in net/
@ 2010-11-07 16:31 Dan Rosenberg
  2010-11-07 17:03 ` Eric Dumazet
  2010-11-08  8:04 ` Rémi Denis-Courmont
  0 siblings, 2 replies; 9+ messages in thread
From: Dan Rosenberg @ 2010-11-07 16:31 UTC (permalink / raw)
  To: chas, davem, kuznet, pekkas, jmorris, yoshfuji, kaber,
	remi.denis-courmont
  Cc: netdev, security, stable

This patch series resolves the leakage of kernel heap addresses to
userspace via network protocol /proc interfaces and public error
messages.  Revealing this information is a bad idea from a security
perspective for a number of reasons, the most obvious of which is it
provides unprivileged users a mechanism by which to create a structure
in the kernel heap containing function pointers, obtain the address of
that structure, and overwrite those function pointers by leveraging
other vulnerabilities.  It is my hope that by eliminating this
information leakage, in conjunction with making statically-declared
function pointer tables read-only (to be done in a separate patch
series), we can at least add a small hurdle for the exploitation of a
subset of kernel vulnerabilities.

To maintain compatibility with userspace programs relying on
consistent /proc output, the output descriptions and number of fields
are not changed.  When a unique identifier for the socket is desired,
the socket address has been replaced with the socket inode number.  When
the inode number is already present in the output, the address has been
replaced with a 0.  In these cases, the format specifier has been
changed to %d, because a %p output of 0 from kernel space is written as
"(null)", while userspace %p can only parse "(nil)".

-Dan


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-11-08 13:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-07 16:31 [PATCH 0/9] Fix leaking of kernel heap addresses in net/ Dan Rosenberg
2010-11-07 17:03 ` Eric Dumazet
2010-11-07 17:25   ` Dan Rosenberg
2010-11-07 17:40     ` Eric Dumazet
2010-11-07 21:53   ` Urs Thuermann
2010-11-08  8:04 ` Rémi Denis-Courmont
2010-11-08 13:13   ` Dan Rosenberg
2010-11-08 13:36     ` Rémi Denis-Courmont
2010-11-08 13:41       ` Dan Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).