blob: 93aa82c97ec70dde77586fa59649b87a8bf5ef57 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2021-47291: ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
While running the self-tests on a KASAN enabled kernel, I observed a
slab-out-of-bounds splat very similar to the one reported in
commit 821bbf79fe46 ("ipv6: Fix KASAN: slab-out-of-bounds Read in
fib6_nh_flush_exceptions").
We additionally need to take care of fib6_metrics initialization
failure when the caller provides an nh.
The fix is similar, explicitly free the route instead of calling
fib6_info_release on a half-initialized object.
The Linux kernel CVE team has assigned CVE-2021-47291 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 and fixed in 5.4.136 with commit 830251361425c5be044db4d826aaf304ea3d14c6
Issue introduced in 5.3 with commit f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 and fixed in 5.10.54 with commit ce8fafb68051fba52546f8bbe8621f7641683680
Issue introduced in 5.3 with commit f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 and fixed in 5.13.6 with commit 115784bcccf135c3a3548098153413d76f16aae0
Issue introduced in 5.3 with commit f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 and fixed in 5.14 with commit 8fb4792f091e608a0a1d353dfdf07ef55a719db5
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2021-47291
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ipv6/route.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/830251361425c5be044db4d826aaf304ea3d14c6
https://git.kernel.org/stable/c/ce8fafb68051fba52546f8bbe8621f7641683680
https://git.kernel.org/stable/c/115784bcccf135c3a3548098153413d76f16aae0
https://git.kernel.org/stable/c/8fb4792f091e608a0a1d353dfdf07ef55a719db5