Re: [PATCH 2/2] netlink: Bounds-check struct nlmsgerr creation

From
Jakub Kicinski <kuba@kernel.org>
Date
2022-09-01 03:20:27
Also in
linux-hardening, lkml, netfilter-devel
Reply to
Kees Cook, 2022-09-01
On Wed, 31 Aug 2022 20:06:10 -0700 Kees Cook wrote:
For 32-bit systems, it might be possible to wrap lnmsgerr content
lengths beyond SIZE_MAX. Explicitly test for all overflows, and mark the
memcpy() as being unable to internally diagnose overflows.

This also excludes netlink from the coming runtime bounds check on
memcpy(), since it's an unusual case of open-coded sizing and
allocation.
This one you gotta rebase we just rewrote the af_netlink 
part last week :)
Thread (8 messages) 8 messages, 3 authors, last reply 2022-09-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help