We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2017-08-16 01:23:15 +0200 |
heap out-of-bounds in AF_PACKET sockets
Updates to tp_reserve can race with reads of the field in packet_set_ring. Avoid this by holding the socket lock during updates in setsockopt PACKET_RESERVE. This bug was discovered by syzkaller. Fixes: 8913336a7e8d ("packet: add PACKET_RESERVE sockopt")
Exploitable if non-privileged user namespaces enabled.
Patch is available.
File affected: kernel-adaptation-sbj-3.4.108.20161101.1/net/packet/af_packet.c lines 3140-3150