ACK: [CVE-2016-9793][trysty, vivid, xenial, yakkety] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

Steve Beattie sbeattie at
Mon Dec 12 16:24:20 UTC 2016

On Mon, Dec 12, 2016 at 10:36:17AM +0000, Luis Henriques wrote:
> From: Eric Dumazet <edumazet at>
> CAP_NET_ADMIN users should not be allowed to set negative
> sk_sndbuf or sk_rcvbuf values, as it can lead to various memory
> corruptions, crashes, OOM...
> Note that before commit 82981930125a ("net: cleanups in
> sock_setsockopt()"), the bug was even more serious, since SO_SNDBUF
> and SO_RCVBUF were vulnerable.
> This needs to be backported to all known linux kernels.
> Again, many thanks to syzkaller team for discovering this gem.
> Signed-off-by: Eric Dumazet <edumazet at>
> Reported-by: Andrey Konovalov <andreyknvl at>
> Signed-off-by: David S. Miller <davem at>
> (cherry picked from commit b98b0bc8c431e3ceb4b26b0dfc8db509518fb290)
> CVE-2016-9793
> Signed-off-by: Luis Henriques <luis.henriques at>

Acked-by: Steve Beattie <steve.beattie at>

Steve Beattie
<sbeattie at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the kernel-team mailing list