ipv4: make ip_append_data() handle NULL routing table
Subsystems (2)
PATCH 1/1 ipv4: make ip_append_data() handle NULL routing table
Add a check in ip_append_data() for NULL *rtp to prevent future bugs in callers from being exploitable.
Signed-off-by Julien Tinnes <[email protected]>
Signed-off-by Tavis Ormandy <[email protected]>
Acked-by David S. Miller <[email protected]>
---
net/ipv4/ip_output.c +2 -0
@@ -814,6 +814,8 @@ inet->cork.addr = ipc->addr; } rt = *rtp; +if (unlikely (!rt)) +return -EFAULT ;/* * We steal reference to this route, caller should not release it */