Skip to contentSkip to conversation

net: fix potential infoleak in rds_inc_info_copy

PATCH In review Kangjie Lu 2 participants 2 messages Jun 1, 2016 – Jun 2, 2016

Subsystems (3)
lore
Share & tools
lore

Kangjie Lu

author
#0 lore raw

PATCH 1/1 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.

---
 net/rds/recv.c | 2 ++
 1 file changed, 2 insertions(+)
net/rds/recv.c +2 -0
index c0be1ec..8413f6c 100644
@@ -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));
 }
Signature · 1 line
2.7.4
maintainer
#1 lore raw

From: Kangjie Lu <[email protected]>
Date: Wed, 1 Jun 2016 12:11:16 -0400

Quoted 5 lines

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.

The correct subsystem prefix is "rds: ". Please resubmit this patch with your Subject corrected thusly.

Thanks.