Skip to content
Commit e978de7a authored by Jeremy Cline's avatar Jeremy Cline Committed by David S. Miller
Browse files

net: socket: Fix potential spectre v1 gadget in sock_is_registered



'family' can be a user-controlled value, so sanitize it after the bounds
check to avoid speculative out-of-bounds access.

Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJeremy Cline <jcline@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8e8cd57
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment