HomeFreeBSD

Prevent kernel stack disclosure in signal delivery

Description

Prevent kernel stack disclosure in signal delivery

On arm64 and riscv platforms, sendsig() failed to zero the signal
frame before copying it out to userspace. Zero it.

On arm, I believe all the contents of the frame were initialized,
so there was no disclosure. However, explicitly zero the whole frame
because that fact could inadvertently change in the future,
it's more clear to the reader, and I could be wrong in the first place.

MFC after: 2 days
Security: similar to FreeBSD-EN-18:12.mem and CVE-2018-17155
Sponsored by: Dell EMC Isilon

Details

Provenance
vangyzenAuthored on
Parents
rS340994: Prevent kernel stack disclosure in getcontext/swapcontext
Branches
Unknown
Tags
Unknown