Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: sctp: prevent writes to cookie_hmac_alg from accessing invalid m…
…emory proc_dostring() needs an initialized destination string, while the one provided in proc_sctp_do_hmac_alg() contains stack garbage. Thus, writing to cookie_hmac_alg would strlen() that garbage and end up accessing invalid memory. Fixes: 3c68198 ("sctp: Make hmac algorithm selection for cookie generation dynamic") Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information