Page MenuHomeFreeBSD

ktrace: Fix uninitialized memory disclosure
ClosedPublic

Authored by markj on Jan 17 2025, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 10, 3:40 PM
Unknown Object (File)
Tue, Nov 4, 7:23 PM
Unknown Object (File)
Tue, Nov 4, 11:34 AM
Unknown Object (File)
Fri, Oct 31, 4:38 AM
Unknown Object (File)
Wed, Oct 29, 5:23 AM
Unknown Object (File)
Wed, Oct 29, 5:22 AM
Unknown Object (File)
Wed, Oct 29, 5:14 AM
Unknown Object (File)
Sat, Oct 25, 9:39 PM
Subscribers

Details

Summary

The sockaddr passed to ktrcapfail() may be smaller than
sizeof(struct sockaddr), and the trailing bytes in the sockaddr
structure will be uninitialized, whereupon they get copied out to
userspace.

PR: 283673
Reported by: Yichen Chai <yichen.chai@gmail.com>
Reported by: Zhuo Ying Jiang Li <zyj20@cl.cam.ac.uk>
Fixes: 9bec84131215 ("ktrace: Record detailed ECAPMODE violations")

Diff Detail

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