[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1464797476-26596-1-git-send-email-kjlu@gatech.edu>
Date: Wed, 1 Jun 2016 12:11:16 -0400
From: Kangjie Lu <kangjielu@...il.com>
To: santosh.shilimkar@...cle.com
Cc: davem@...emloft.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, taesoo@...ech.edu,
csong84@...ech.edu, Kangjie Lu <kjlu@...ech.edu>
Subject: [PATCH] net: fix potential infoleak in rds_inc_info_copy
The last field "flags" of object "minfo" is not initialized.
Copying this object out may leak kernel stack data.
Assign 0 to it to avoid leak.
Signed-off-by: Kangjie Lu <kjlu@...ech.edu>
---
net/rds/recv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/rds/recv.c b/net/rds/recv.c
index c0be1ec..8413f6c 100644
--- a/net/rds/recv.c
+++ b/net/rds/recv.c
@@ -561,5 +561,7 @@ void rds_inc_info_copy(struct rds_incoming *inc,
minfo.fport = inc->i_hdr.h_dport;
}
+ minfo.flags = 0;
+
rds_info_copy(iter, &minfo, sizeof(minfo));
}
--
2.7.4
Powered by blists - more mailing lists