Page MenuHomeFreeBSD

Avoid kernel stack disclosure in compat32 stat
ClosedPublic

Authored by emaste on Mar 29 2022, 2:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 4:58 PM
Unknown Object (File)
Tue, Sep 23, 9:43 AM
Unknown Object (File)
Sep 11 2025, 4:51 AM
Unknown Object (File)
Sep 9 2025, 7:33 PM
Unknown Object (File)
Sep 9 2025, 1:23 AM
Unknown Object (File)
Aug 14 2025, 9:24 AM
Unknown Object (File)
Jul 17 2025, 11:36 AM
Unknown Object (File)
Jul 6 2025, 10:34 PM
Subscribers

Details

Summary
copy_stat and copy_ostat used by 32-bit compat *stat calls left some
padding bytes uninitialized.

This issue does not exist in stable/12 and later as it was incidentally
addressed as part of the 64-bit inode project.

Reported by:    Reno Robert, Trend Micro Zero Day Initiative
Sponsored by:   The FreeBSD Foundation

Diff Detail

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