]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[NETLINK]: Infinite recursion in netlink (CVE-2007-1861)
authorAdrian Bunk <bunk@stusta.de>
Mon, 30 Apr 2007 23:11:29 +0000 (01:11 +0200)
committerAdrian Bunk <bunk@stusta.de>
Mon, 30 Apr 2007 23:11:29 +0000 (01:11 +0200)
commitca80e5b5767e8a2bf0714f9797b872258e500ee6
treeb6b8daf2688deeff078278c8edc838ee80cfc74c
parent0ea2b4b19d3bc0d4075a4f176a9da5797be73304
[NETLINK]: Infinite recursion in netlink (CVE-2007-1861)

Reply to NETLINK_FIB_LOOKUP messages were misrouted back to kernel,
which resulted in infinite recursion and stack overflow.

The bug is present in all kernel versions since the feature appeared.

The patch also makes some minimal cleanup:

1. Return something consistent (-ENOENT) when fib table is missing
2. Do not crash when queue is empty (does not happen, but yet)
3. Put result of lookup

Sergey Vlasov:
Oops fix

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/fib_frontend.c