Problem Description:
Not all information in the struct ptrace_lwpinfo is
relevant for the state of any thread, and the kernel does
not fill the irrelevant bytes or short strings. Since the
structure filled by the kernel is allocated on the kernel
stack and copied to userspace, a leak of information of the
kernel stack of the thread is possible from the debugger.
Impact:
Some bytes from the kernel stack of the thread using
ptrace(PT_LWPINFO) call can be observed in userspace.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
FreeBSD | any | noarch | freebsd-kernel | = 11.1 | UNKNOWN |
FreeBSD | any | noarch | freebsd-kernel | < 11.1_4 | UNKNOWN |