# CVE-2021-47291: ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:16.071Z
- Modified: 2026-08-05T08:47:07.127Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.3 before 5.4.136; from 5.5 before 5.10.54; from 5.11 before 5.13.6; 5.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/830251361425c5be044db4d826aaf304ea3d14c6> (patch)
- <https://git.kernel.org/stable/c/ce8fafb68051fba52546f8bbe8621f7641683680> (patch)
- <https://git.kernel.org/stable/c/115784bcccf135c3a3548098153413d76f16aae0> (patch)
- <https://git.kernel.org/stable/c/8fb4792f091e608a0a1d353dfdf07ef55a719db5> (patch)

## Sources

- CVE List: [CVE-2021-47291](https://www.cve.org/CVERecord?id=CVE-2021-47291), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47291](https://nvd.nist.gov/vuln/detail/CVE-2021-47291), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47291 · Whole record: https://cve.day/CVE-2021-47291.json · Rebuilt by cve.day 2026-11-25T22:58:08.779Z
