Re: [Linux-kernel-mentees] [PATCH net] openvswitch: Prevent kernel-infoleak in ovs_ct_put_key()

From
David Miller <davem@davemloft.net>
Date
2020-08-03 22:10:41
Also in
linux-kernel-mentees, lkml
Reply to
Peilin Ye, 2020-07-31
From: Peilin Ye <redacted>
Date: Fri, 31 Jul 2020 00:48:38 -0400
ovs_ct_put_key() is potentially copying uninitialized kernel stack memory
into socket buffers, since the compiler may leave a 3-byte hole at the end
of `struct ovs_key_ct_tuple_ipv4` and `struct ovs_key_ct_tuple_ipv6`. Fix
it by initializing `orig` with memset().

Cc: <redacted>
Please don't CC: stable for networking fixes.
Fixes: 9dd7f8907c37 ("openvswitch: Add original direction conntrack tuple to sw_flow_key.")
Suggested-by: Dan Carpenter <redacted>
Signed-off-by: Peilin Ye <redacted>
Applied and queued up for -stable, thank you.
Thread (3 messages) 3 messages, 2 authors, last reply 2020-08-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help