CVE-2021-47291
JSON

7.8high

ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 before 830251361425c5be044db4d826aaf304ea3d14c6, from f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 before ce8fafb68051fba52546f8bbe8621f7641683680, from f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 before 115784bcccf135c3a3548098153413d76f16aae0, from f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74 before 8fb4792f091e608a0a1d353dfdf07ef55a719db5, 5.3
Not affected: before 5.3, from 5.4.136 up to 5.4.*, from 5.10.54 up to 5.10.*, from 5.13.6 up to 5.13.*, from 5.14 up to *
CVE List
linux linux_kernelfrom 5.3 before 5.4.136, from 5.5 before 5.10.54, from 5.11 before 5.13.6, 5.14NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ipv6: corrige otra slab fuera de los límites en fib6_nh_flush_exceptions. Mientras ejecutaba las autopruebas en un kernel habilitado para KASAN, observé una slab fuera de los límites muy similar al informado en la confirmación 821bbf79fe46 ("ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions"). Además, debemos ocuparnos del error de inicialización de fib6_metrics cuando la persona que llama proporciona un nh. La solución es similar: libera explícitamente la ruta en lugar de llamar a fib6_info_release en un objeto medio inicializado.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47291 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47291 changed 2026-08-04Public domain