Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421171 > unrolled thread

[PATCH 3.16 101/114] net: fix infoleak in llc

Started byBen Hutchings <ben@decadent.org.uk>
First post2016-06-13 21:00 +0200
Last post2016-06-13 21:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 101/114] net: fix infoleak in llc Ben Hutchings <ben@decadent.org.uk> - 2016-06-13 21:00 +0200

#1421171 — [PATCH 3.16 101/114] net: fix infoleak in llc

FromBen Hutchings <ben@decadent.org.uk>
Date2016-06-13 21:00 +0200
Subject[PATCH 3.16 101/114] net: fix infoleak in llc
Message-ID<rJFfG-1JY-75@gated-at.bofh.it>
3.16.36-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Kangjie Lu <kangjielu@gmail.com>

commit b8670c09f37bdf2847cc44f36511a53afc6161fd upstream.

The stack object “info” has a total size of 12 bytes. Its last byte
is padding which is not initialized and leaked via “put_cmsg”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 net/llc/af_llc.c | 1 +
 1 file changed, 1 insertion(+)

--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -626,6 +626,7 @@ static void llc_cmsg_rcv(struct msghdr *
 	if (llc->cmsg_flags & LLC_CMSG_PKTINFO) {
 		struct llc_pktinfo info;
 
+		memset(&info, 0, sizeof(info));
 		info.lpi_ifindex = llc_sk(skb->sk)->dev->ifindex;
 		llc_pdu_decode_dsap(skb, &info.lpi_sap);
 		llc_pdu_decode_da(skb, info.lpi_mac);

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web