[CVE-2016-5244][Precise, Trusty, Vivid, Xenial] rds: fix an infoleak in rds_inc_info_copy

Luis Henriques luis.henriques at canonical.com
Wed Jul 20 11:08:57 UTC 2016


From: Kangjie Lu <kangjielu at gmail.com>

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 at gatech.edu>
Acked-by: Santosh Shilimkar <santosh.shilimkar at oracle.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit 4116def2337991b39919f3b448326e21c40e0dbb)
CVE-2016-5244
BugLink: https://bugs.launchpad.net/bugs/1589041
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
 net/rds/recv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/rds/recv.c b/net/rds/recv.c
index a00462b0d01d..0514af3ab378 100644
--- a/net/rds/recv.c
+++ b/net/rds/recv.c
@@ -545,5 +545,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));
 }




More information about the kernel-team mailing list