Bug 1224918 (CVE-2021-47291) - VUL-0: CVE-2021-47291: kernel: ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
Summary: VUL-0: CVE-2021-47291: kernel: ipv6: fix another slab-out-of-bounds in fib6_n...
Status: IN_PROGRESS
Alias: CVE-2021-47291
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Major
Target Milestone: ---
Assignee: Michal Kubeček
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406924/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47291:7.8:(AV:...
Keywords:
Depends on:
Blocks: 1227651
  Show dependency treegraph
 
Reported: 2024-05-22 11:16 UTC by SMASH SMASH
Modified: 2024-07-19 06:57 UTC (History)
6 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-22 11:16:35 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47291
https://www.cve.org/CVERecord?id=CVE-2021-47291
https://git.kernel.org/stable/c/115784bcccf135c3a3548098153413d76f16aae0
https://git.kernel.org/stable/c/830251361425c5be044db4d826aaf304ea3d14c6
https://git.kernel.org/stable/c/8fb4792f091e608a0a1d353dfdf07ef55a719db5
https://git.kernel.org/stable/c/ce8fafb68051fba52546f8bbe8621f7641683680
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47291.mbox