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 Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
CVE-2007-1861 metadata: [linux < 2.6.16.50] ca80e5b5767e8a2bf0714f9797b872258e500ee6 [linux >= 2.6.17 < 2.6.20.8] 9bc1779885f4ce1a4257c5640c70b75d2ae124ad also in 2.6.21 1194ed0a3eb8076c8fbfe310f1ccbf229e8647de [gp < 2.6.20-8]