Page MenuHomeFreeBSD

kern: zero out stack buffer after copying out random bits
ClosedPublic

Authored by kevans on Jul 15 2024, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 4:27 AM
Unknown Object (File)
Sat, Jan 18, 9:34 AM
Unknown Object (File)
Thu, Jan 9, 11:47 PM
Unknown Object (File)
Dec 16 2024, 3:03 AM
Unknown Object (File)
Nov 10 2024, 2:23 PM
Unknown Object (File)
Nov 7 2024, 4:36 PM
Unknown Object (File)
Nov 7 2024, 2:35 PM
Unknown Object (File)
Oct 31 2024, 4:16 PM
Subscribers

Details

Summary

The kern.arandom sysctl handler uses an intermediate buffer on the stack
to hold random data that it subsequently copies out to the sysctl
request. Err on the side of caution and zero out the stack buffer after
we're done with it to avoid a potential entropy leak later on.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable