mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
sctp: prevent info leak in sctp_make_heartbeat()
The "hbinfo" struct has a 4 byte hole at the end so we have to zero it
out to prevent stack information from being disclosed.
Fixes: fe59379b9a
("sctp: do the basic send and recv for PLPMTUD probe")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
996af62167
commit
a34dcbfa14
1 changed files with 1 additions and 1 deletions
|
@ -1163,7 +1163,7 @@ struct sctp_chunk *sctp_make_heartbeat(const struct sctp_association *asoc,
|
|||
const struct sctp_transport *transport,
|
||||
__u32 probe_size)
|
||||
{
|
||||
struct sctp_sender_hb_info hbinfo;
|
||||
struct sctp_sender_hb_info hbinfo = {};
|
||||
struct sctp_chunk *retval;
|
||||
|
||||
retval = sctp_make_control(asoc, SCTP_CID_HEARTBEAT, 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue