linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nf_conntrack: Infoleak via CTA_ID and CTA_EXPECT_ID
@ 2017-06-30 19:25 Richard Weinberger
  2017-06-30 19:35 ` Florian Westphal
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Weinberger @ 2017-06-30 19:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: Pablo Neira Ayuso, fw, David Miller, netfilter-devel, coreteam,
	netdev, David Gstir, kaber, keescook

Hi!

I noticed that nf_conntrack leaks kernel addresses, it uses the memory address
as identifier used for generating conntrack and expect ids..
Since these ids are also visible to unprivileged users via network namespaces
I suggest reverting these commits:

commit 7f85f914721ffcef382a57995182916bd43d8a65
Author: Patrick McHardy <kaber@trash.net>
Date:   Fri Sep 28 14:41:27 2007 -0700

    [NETFILTER]: nf_conntrack: kill unique ID

    Remove the per-conntrack ID, its not necessary anymore for dumping.
    For compatiblity reasons we send the address of the conntrack to
    userspace as ID.

    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 3583240249ef354760e04ae49bd7b462a638f40c
Author: Patrick McHardy <kaber@trash.net>
Date:   Fri Sep 28 14:41:50 2007 -0700

    [NETFILTER]: nf_conntrack_expect: kill unique ID

    Similar to the conntrack ID, the per-expectation ID is not needed
    anymore, kill it.

    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Thanks,
//richard

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

end of thread, other threads:[~2017-07-12 22:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 19:25 nf_conntrack: Infoleak via CTA_ID and CTA_EXPECT_ID Richard Weinberger
2017-06-30 19:35 ` Florian Westphal
2017-06-30 19:45   ` Richard Weinberger
2017-06-30 19:55     ` Florian Westphal
2017-06-30 20:23       ` Richard Weinberger
2017-07-01  9:44         ` Pablo Neira Ayuso
2017-07-01 10:35         ` Florian Westphal
2017-07-12 21:26           ` Richard Weinberger
2017-07-12 22:19             ` Florian Westphal

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).