# CVE-2024-35886: ipv6: Fix infinite recursion in fib6\_dump\_done().

> 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, NVD) `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.41% (percentile 26, 2026-11-26)
- **CWE:** CWE-674, CWE-787
- **Published:** 2024-05-19T08:34:42.694Z
- **Modified:** 2026-10-15T01:17:49.830Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9472d07cd095cbd3294ac54c42f304a38fbe9bfe; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c5258196182c25b55c33167cd72fdd9bbf08985; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd307f2d91d40fa7bc55df3e2cd1253fabf8a2d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40a344b2ddc06c1a2caa7208a43911f39c662778; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2dd75e57285f49e34af1a5b6cd8945c08243776; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4a7c465a5dcd657d59d25bf4815e19ac05c13061; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d21d40605bca7bd5fc23ef03d4c1ca1f48bc2cae
- Anyone running Linux 2.6.12

## Description

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

ipv6: Fix infinite recursion in fib6\_dump\_done().

syzkaller reported infinite recursive calls of fib6\_dump\_done() during
netlink socket destruction.  \[1\]

From the log, syzkaller sent an AF\_UNSPEC RTM\_GETROUTE message, and then
the response was generated.  The following recvmmsg() resumed the dump
for IPv6, but the first call of inet6\_dump\_fib() failed at kzalloc() due
to the fault injection.  \[0\]

  12:01:34 executing program 3:
  r0 = socket$nl\_route(0x10, 0x3, 0x0)
  sendmsg$nl\_route(r0, ... snip ...)
  recvmmsg(r0, ... snip ...) (fail\_nth: 8)

Here, fib6\_dump\_done() was set to nlk\_sk(sk)-\>cb.done, and the next call
of inet6\_dump\_fib() set it to nlk\_sk(sk)-\>cb.args\[3\].  syzkaller stopped
receiving the response halfway through, and finally netlink\_sock\_destruct()
called nlk\_sk(sk)-\>cb.done().

fib6\_dump\_done() calls fib6\_dump\_end() and nlk\_sk(sk)-\>cb.done() if it
is still not NULL.  fib6\_dump\_end() rewrites nlk\_sk(sk)-\>cb.done() by
nlk\_sk(sk)-\>cb.args\[3\], but it has the same function, not NULL, calling
itself recursively and hitting the stack guard page.

To avoid the issue, let's set the destructor after kzalloc().

\[0\]:
FAULT\_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 432110 Comm: syz-executor.3 Not tainted 6.8.0-12821-g537c2e91d354-dirty \#11
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl (lib/dump\_stack.c:117)
 should\_fail\_ex (lib/fault-inject.c:52 lib/fault-inject.c:153)
 should\_failslab (mm/slub.c:3733)
 kmalloc\_trace (mm/slub.c:3748 mm/slub.c:3827 mm/slub.c:3992)
 inet6\_dump\_fib (./include/linux/slab.h:628 ./include/linux/slab.h:749 net/ipv6/ip6\_fib.c:662)
 rtnl\_dump\_all (net/core/rtnetlink.c:4029)
 netlink\_dump (net/netlink/af\_netlink.c:2269)
 netlink\_recvmsg (net/netlink/af\_netlink.c:1988)
 \_\_\_\_sys\_recvmsg (net/socket.c:1046 net/socket.c:2801)
 \_\_\_sys\_recvmsg (net/socket.c:2846)
 do\_recvmmsg (net/socket.c:2943)
 \_\_x64\_sys\_recvmmsg (net/socket.c:3041 net/socket.c:3034 net/socket.c:3034)

\[1\]:
BUG: TASK stack guard page was hit at 00000000f2fa9af1 (stack is 00000000b7912430..000000009a436beb)
stack guard page: 0000 \[\#1\] PREEMPT SMP KASAN
CPU: 1 PID: 223719 Comm: kworker/1:3 Not tainted 6.8.0-12821-g537c2e91d354-dirty \#11
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Workqueue: events netlink\_sock\_destruct\_work
RIP: 0010:fib6\_dump\_done (net/ipv6/ip6\_fib.c:570)
Code: 3c 24 e8 f3 e9 51 fd e9 28 fd ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 55 41 54 55 48 89 fd \<53\> 48 8d 5d 60 e8 b6 4d 07 fd 48 89 da 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc9000d980000 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffff84405990 RCX: ffffffff844059d3
RDX: ffff8881028e0000 RSI: ffffffff84405ac2 RDI: ffff88810c02f358
RBP: ffff88810c02f358 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000224 R12: 0000000000000000
R13: ffff888007c82c78 R14: ffff888007c82c68 R15: ffff888007c82c68
FS:  0000000000000000(0000) GS:ffff88811b100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000d97fff8 CR3: 0000000102309002 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 \<\#DF\>
 \</\#DF\>
 \<TASK\>
 fib6\_dump\_done (net/ipv6/ip6\_fib.c:572 (discriminator 1))
 fib6\_dump\_done (net/ipv6/ip6\_fib.c:572 (discriminator 1))
 ...
 fib6\_dump\_done (net/ipv6/ip6\_fib.c:572 (discriminator 1))
 fib6\_dump\_done (net/ipv6/ip6\_fib.c:572 (discriminator 1))
 netlink\_sock\_destruct (net/netlink/af\_netlink.c:401)
 \_\_sk\_destruct (net/core/sock.c:2177 (discriminator 2))
 sk\_destruct (net/core/sock.c:2224)
 \_\_sk\_free (net/core/sock.c:2235)
 sk\_free (net/core/sock.c:2246)
 process\_one\_work (kernel/workqueue.c:3259)
 worker\_thread (kernel/workqueue.c:3329 kernel/workqueue.
---truncated---

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9472d07cd095cbd3294ac54c42f304a38fbe9bfe; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c5258196182c25b55c33167cd72fdd9bbf08985; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd307f2d91d40fa7bc55df3e2cd1253fabf8a2d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40a344b2ddc06c1a2caa7208a43911f39c662778; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2dd75e57285f49e34af1a5b6cd8945c08243776; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4a7c465a5dcd657d59d25bf4815e19ac05c13061; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d21d40605bca7bd5fc23ef03d4c1ca1f48bc2cae (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-35886.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9472d07cd095cbd3294ac54c42f304a38fbe9bfe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9c5258196182c25b55c33167cd72fdd9bbf08985; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd307f2d91d40fa7bc55df3e2cd1253fabf8a2d6; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 9472d07cd095cbd3294ac54c42f304a38fbe9bfe, Linux 9c5258196182c25b55c33167cd72fdd9bbf08985, Linux 40a344b2ddc06c1a2caa7208a43911f39c662778, Linux 167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2, Linux 4a7c465a5dcd657d59d25bf4815e19ac05c13061

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-2024-35886 being exploited?

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

### How serious is CVE-2024-35886?

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

### Which versions are affected by CVE-2024-35886?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9472d07cd095cbd3294ac54c42f304a38fbe9bfe; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c5258196182c25b55c33167cd72fdd9bbf08985; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd307f2d91d40fa7bc55df3e2cd1253fabf8a2d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40a344b2ddc06c1a2caa7208a43911f39c662778; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2dd75e57285f49e34af1a5b6cd8945c08243776; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4a7c465a5dcd657d59d25bf4815e19ac05c13061; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d21d40605bca7bd5fc23ef03d4c1ca1f48bc2cae; Linux 2.6.12.

### Is there a fix for CVE-2024-35886?

Yes. Fixed in Linux 9472d07cd095cbd3294ac54c42f304a38fbe9bfe, Linux 9c5258196182c25b55c33167cd72fdd9bbf08985, Linux 40a344b2ddc06c1a2caa7208a43911f39c662778, Linux 167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2, Linux 4a7c465a5dcd657d59d25bf4815e19ac05c13061. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-35886?

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/9472d07cd095cbd3294ac54c42f304a38fbe9bfe>
- patch: <https://git.kernel.org/stable/c/9c5258196182c25b55c33167cd72fdd9bbf08985>
- patch: <https://git.kernel.org/stable/c/fd307f2d91d40fa7bc55df3e2cd1253fabf8a2d6>
- patch: <https://git.kernel.org/stable/c/40a344b2ddc06c1a2caa7208a43911f39c662778>
- patch: <https://git.kernel.org/stable/c/167d4b47a9bdcb01541dfa29e9f3cbb8edd3dfd2>
- patch: <https://git.kernel.org/stable/c/f2dd75e57285f49e34af1a5b6cd8945c08243776>
- patch: <https://git.kernel.org/stable/c/4a7c465a5dcd657d59d25bf4815e19ac05c13061>
- patch: <https://git.kernel.org/stable/c/d21d40605bca7bd5fc23ef03d4c1ca1f48bc2cae>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## 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-2024-35886>

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