]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: prevent info leak in sctp_make_heartbeat()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Jun 2021 08:19:44 +0000 (11:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 18:16:38 +0000 (11:16 -0700)
commit117f5e99de996645145a8847c8eb342d2e019f49
tree57d73abcc051f39b98e755f86b31ea89b4c52ddf
parent0e5b20fd2c135a66c703fa599d060e3fae275949
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: 01be45c4e72e ("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>
net/sctp/sm_make_chunk.c