diff options
| author | Dan Carpenter <[email protected]> | 2021-06-29 08:19:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-07-01 18:16:38 +0000 |
| commit | a34dcbfa1475f18a8f1b1dc3dedb76d746874e61 (patch) | |
| tree | 57d73abcc051f39b98e755f86b31ea89b4c52ddf /net/sctp/sm_make_chunk.c | |
| parent | net/802/mrp: fix memleak in mrp_request_join() (diff) | |
| download | kernel-a34dcbfa1475f18a8f1b1dc3dedb76d746874e61.tar.gz kernel-a34dcbfa1475f18a8f1b1dc3dedb76d746874e61.zip | |
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: fe59379b9ab7 ("sctp: do the basic send and recv for PLPMTUD probe")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
| -rw-r--r-- | net/sctp/sm_make_chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 6c08e5048d38..b8fa8f1a7277 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -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, |
