Page MenuHomeFreeBSD

ktrace: Fix uninitialized memory disclosure
ClosedPublic

Authored by markj on Fri, Jan 17, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 10:47 AM
Unknown Object (File)
Mon, Jan 20, 1:55 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