# CVE-2021-47126: ipv6: Fix KASAN: slab-out-of-bounds Read in fib6\_nh\_flush\_exceptions

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-03-15T20:14:30.948Z
- **Modified:** 2026-08-05T08:46:10.001Z

## Who should check

- Anyone running Linux \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 09870235827451409ff546b073d754a19fd17e2e; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 0a462e25ef0f7ab305081a08d435bbd1f13c0a94; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754
- Anyone running Linux 5.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

ipv6: Fix KASAN: slab-out-of-bounds Read in fib6\_nh\_flush\_exceptions

Reported by syzbot:
HEAD commit:    90c911ad Merge tag 'fixes' of git://git.kernel.org/pub/scm..
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
dashboard link: https://syzkaller.appspot.com/bug?extid=123aa35098fd3c000eb7
compiler:       Debian clang version 11.0.1-2

==================================================================
BUG: KASAN: slab-out-of-bounds in fib6\_nh\_get\_excptn\_bucket net/ipv6/route.c:1604 \[inline\]
BUG: KASAN: slab-out-of-bounds in fib6\_nh\_flush\_exceptions+0xbd/0x360 net/ipv6/route.c:1732
Read of size 8 at addr ffff8880145c78f8 by task syz-executor.4/17760

CPU: 0 PID: 17760 Comm: syz-executor.4 Not tainted 5.12.0-rc8-syzkaller \#0
Call Trace:
 \<IRQ\>
 \_\_dump\_stack lib/dump\_stack.c:79 \[inline\]
 dump\_stack+0x202/0x31e lib/dump\_stack.c:120
 print\_address\_description+0x5f/0x3b0 mm/kasan/report.c:232
 \_\_kasan\_report mm/kasan/report.c:399 \[inline\]
 kasan\_report+0x15c/0x200 mm/kasan/report.c:416
 fib6\_nh\_get\_excptn\_bucket net/ipv6/route.c:1604 \[inline\]
 fib6\_nh\_flush\_exceptions+0xbd/0x360 net/ipv6/route.c:1732
 fib6\_nh\_release+0x9a/0x430 net/ipv6/route.c:3536
 fib6\_info\_destroy\_rcu+0xcb/0x1c0 net/ipv6/ip6\_fib.c:174
 rcu\_do\_batch kernel/rcu/tree.c:2559 \[inline\]
 rcu\_core+0x8f6/0x1450 kernel/rcu/tree.c:2794
 \_\_do\_softirq+0x372/0x7a6 kernel/softirq.c:345
 invoke\_softirq kernel/softirq.c:221 \[inline\]
 \_\_irq\_exit\_rcu+0x22c/0x260 kernel/softirq.c:422
 irq\_exit\_rcu+0x5/0x20 kernel/softirq.c:434
 sysvec\_apic\_timer\_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100
 \</IRQ\>
 asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632
RIP: 0010:lock\_acquire+0x1f6/0x720 kernel/locking/lockdep.c:5515
Code: f6 84 24 a1 00 00 00 02 0f 85 8d 02 00 00 f7 c3 00 02 00 00 49 bd 00 00 00 00 00 fc ff df 74 01 fb 48 c7 44 24 40 0e 36 e0 45 \<4b\> c7 44 3d 00 00 00 00 00 4b c7 44 3d 09 00 00 00 00 43 c7 44 3d
RSP: 0018:ffffc90009e06560 EFLAGS: 00000206
RAX: 1ffff920013c0cc0 RBX: 0000000000000246 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90009e066e0 R08: dffffc0000000000 R09: fffffbfff1f992b1
R10: fffffbfff1f992b1 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff920013c0cb4
 rcu\_lock\_acquire+0x2a/0x30 include/linux/rcupdate.h:267
 rcu\_read\_lock include/linux/rcupdate.h:656 \[inline\]
 ext4\_get\_group\_info+0xea/0x340 fs/ext4/ext4.h:3231
 ext4\_mb\_prefetch+0x123/0x5d0 fs/ext4/mballoc.c:2212
 ext4\_mb\_regular\_allocator+0x8a5/0x28f0 fs/ext4/mballoc.c:2379
 ext4\_mb\_new\_blocks+0xc6e/0x24f0 fs/ext4/mballoc.c:4982
 ext4\_ext\_map\_blocks+0x2be3/0x7210 fs/ext4/extents.c:4238
 ext4\_map\_blocks+0xab3/0x1cb0 fs/ext4/inode.c:638
 ext4\_getblk+0x187/0x6c0 fs/ext4/inode.c:848
 ext4\_bread+0x2a/0x1c0 fs/ext4/inode.c:900
 ext4\_append+0x1a4/0x360 fs/ext4/namei.c:67
 ext4\_init\_new\_dir+0x337/0xa10 fs/ext4/namei.c:2768
 ext4\_mkdir+0x4b8/0xc00 fs/ext4/namei.c:2814
 vfs\_mkdir+0x45b/0x640 fs/namei.c:3819
 ovl\_do\_mkdir fs/overlayfs/overlayfs.h:161 \[inline\]
 ovl\_mkdir\_real+0x53/0x1a0 fs/overlayfs/dir.c:146
 ovl\_create\_real+0x280/0x490 fs/overlayfs/dir.c:193
 ovl\_workdir\_create+0x425/0x600 fs/overlayfs/super.c:788
 ovl\_make\_workdir+0xed/0x1140 fs/overlayfs/super.c:1355
 ovl\_get\_workdir fs/overlayfs/super.c:1492 \[inline\]
 ovl\_fill\_super+0x39ee/0x5370 fs/overlayfs/super.c:2035
 mount\_nodev+0x52/0xe0 fs/super.c:1413
 legacy\_get\_tree+0xea/0x180 fs/fs\_context.c:592
 vfs\_get\_tree+0x86/0x270 fs/super.c:1497
 do\_new\_mount fs/namespace.c:2903 \[inline\]
 path\_mount+0x196f/0x2be0 fs/namespace.c:3233
 do\_mount fs/namespace.c:3246 \[inline\]
 \_\_do\_sys\_mount fs/namespace.c:3454 \[inline\]
 \_\_se\_sys\_mount+0x2f9/0x3b0 fs/namespace.c:3431
 do\_syscall\_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 
---truncated---

## Affected and fixed versions

- Linux: \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 09870235827451409ff546b073d754a19fd17e2e; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 0a462e25ef0f7ab305081a08d435bbd1f13c0a94; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47126. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47126.md
Affected: Linux >= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, < 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59; >= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, < 09870235827451409ff546b073d754a19fd17e2e; >= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, < 0a462e25ef0f7ab305081a08d435bbd1f13c0a94; >= f88d8ea67fbdbac7a64bfa6…
Fixed in: Linux 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59, Linux 09870235827451409ff546b073d754a19fd17e2e, Linux 0a462e25ef0f7ab305081a08d435bbd1f13c0a94, Linux 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47126 being exploited?

There is no confirmed exploitation: CVE-2021-47126 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47126?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47126?

Linux \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 09870235827451409ff546b073d754a19fd17e2e; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 0a462e25ef0f7ab305081a08d435bbd1f13c0a94; \>= f88d8ea67fbdbac7a64bfa6ed9a2ba27bb822f74, \< 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754; Linux 5.3.

### Is there a fix for CVE-2021-47126?

Yes. Fixed in Linux 7ba7fa78a92dc410b6f93ed73075ab669c3a0b59, Linux 09870235827451409ff546b073d754a19fd17e2e, Linux 0a462e25ef0f7ab305081a08d435bbd1f13c0a94, Linux 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754. Upgrade Linux to 821bbf79fe46a8b1d18aa456e8ed0a3c208c3754 or later.

### How do I check if I'm affected by CVE-2021-47126?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7ba7fa78a92dc410b6f93ed73075ab669c3a0b59>
- patch: <https://git.kernel.org/stable/c/09870235827451409ff546b073d754a19fd17e2e>
- patch: <https://git.kernel.org/stable/c/0a462e25ef0f7ab305081a08d435bbd1f13c0a94>
- patch: <https://git.kernel.org/stable/c/821bbf79fe46a8b1d18aa456e8ed0a3c208c3754>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47126>

HTML: <https://flawdb.com/CVE-2021-47126> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47126>
