# CVE-2024-40905: ipv6: fix possible race in \_\_fib6\_drop\_pcpu\_from()

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-07-12T12:20:45.832Z
- **Modified:** 2026-10-15T01:18:36.790Z

## Who should check

- Anyone running Linux \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c90af1cced2f669a7b2304584be4ada495eaa0e5; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c693698787660c97950bc1f93a8dd19d8307153d; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< a0bc020592b54a8f3fa2b7f244b6e39e526c2e12; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 2498960dac9b6fc49b6d1574f7cd1a4872744adf; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 09e5a5a80e205922151136069e440477d6816914; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< b01e1c030770ff3b4fe37fc7cc6bca03f594133f
- Anyone running Linux 4.2

## Description

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

ipv6: fix possible race in \_\_fib6\_drop\_pcpu\_from()

syzbot found a race in \_\_fib6\_drop\_pcpu\_from() \[1\]

If compiler reads more than once (\*ppcpu\_rt),
second read could read NULL, if another cpu clears
the value in rt6\_get\_pcpu\_route().

Add a READ\_ONCE() to prevent this race.

Also add rcu\_read\_lock()/rcu\_read\_unlock() because
we rely on RCU protection while dereferencing pcpu\_rt.

\[1\]

Oops: general protection fault, probably for non-canonical address 0xdffffc0000000012: 0000 \[\#1\] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range \[0x0000000000000090-0x0000000000000097\]
CPU: 0 PID: 7543 Comm: kworker/u8:17 Not tainted 6.10.0-rc1-syzkaller-00013-g2bfcfd584ff5 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: netns cleanup\_net
 RIP: 0010:\_\_fib6\_drop\_pcpu\_from.part.0+0x10a/0x370 net/ipv6/ip6\_fib.c:984
Code: f8 48 c1 e8 03 80 3c 28 00 0f 85 16 02 00 00 4d 8b 3f 4d 85 ff 74 31 e8 74 a7 fa f7 49 8d bf 90 00 00 00 48 89 f8 48 c1 e8 03 \<80\> 3c 28 00 0f 85 1e 02 00 00 49 8b 87 90 00 00 00 48 8b 0c 24 48
RSP: 0018:ffffc900040df070 EFLAGS: 00010206
RAX: 0000000000000012 RBX: 0000000000000001 RCX: ffffffff89932e16
RDX: ffff888049dd1e00 RSI: ffffffff89932d7c RDI: 0000000000000091
RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000007
R10: 0000000000000001 R11: 0000000000000006 R12: ffff88807fa080b8
R13: fffffbfff1a9a07d R14: ffffed100ff41022 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32c26000 CR3: 000000005d56e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
  \_\_fib6\_drop\_pcpu\_from net/ipv6/ip6\_fib.c:966 \[inline\]
  fib6\_drop\_pcpu\_from net/ipv6/ip6\_fib.c:1027 \[inline\]
  fib6\_purge\_rt+0x7f2/0x9f0 net/ipv6/ip6\_fib.c:1038
  fib6\_del\_route net/ipv6/ip6\_fib.c:1998 \[inline\]
  fib6\_del+0xa70/0x17b0 net/ipv6/ip6\_fib.c:2043
  fib6\_clean\_node+0x426/0x5b0 net/ipv6/ip6\_fib.c:2205
  fib6\_walk\_continue+0x44f/0x8d0 net/ipv6/ip6\_fib.c:2127
  fib6\_walk+0x182/0x370 net/ipv6/ip6\_fib.c:2175
  fib6\_clean\_tree+0xd7/0x120 net/ipv6/ip6\_fib.c:2255
  \_\_fib6\_clean\_all+0x100/0x2d0 net/ipv6/ip6\_fib.c:2271
  rt6\_sync\_down\_dev net/ipv6/route.c:4906 \[inline\]
  rt6\_disable\_ip+0x7ed/0xa00 net/ipv6/route.c:4911
  addrconf\_ifdown.isra.0+0x117/0x1b40 net/ipv6/addrconf.c:3855
  addrconf\_notify+0x223/0x19e0 net/ipv6/addrconf.c:3778
  notifier\_call\_chain+0xb9/0x410 kernel/notifier.c:93
  call\_netdevice\_notifiers\_info+0xbe/0x140 net/core/dev.c:1992
  call\_netdevice\_notifiers\_extack net/core/dev.c:2030 \[inline\]
  call\_netdevice\_notifiers net/core/dev.c:2044 \[inline\]
  dev\_close\_many+0x333/0x6a0 net/core/dev.c:1585
  unregister\_netdevice\_many\_notify+0x46d/0x19f0 net/core/dev.c:11193
  unregister\_netdevice\_many net/core/dev.c:11276 \[inline\]
  default\_device\_exit\_batch+0x85b/0xae0 net/core/dev.c:11759
  ops\_exit\_list+0x128/0x180 net/core/net\_namespace.c:178
  cleanup\_net+0x5b7/0xbf0 net/core/net\_namespace.c:640
  process\_one\_work+0x9fb/0x1b60 kernel/workqueue.c:3231
  process\_scheduled\_works kernel/workqueue.c:3312 \[inline\]
  worker\_thread+0x6c8/0xf70 kernel/workqueue.c:3393
  kthread+0x2c1/0x3a0 kernel/kthread.c:389
  ret\_from\_fork+0x45/0x80 arch/x86/kernel/process.c:147
  ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:244

## Affected and fixed versions

- Linux: \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c90af1cced2f669a7b2304584be4ada495eaa0e5; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c693698787660c97950bc1f93a8dd19d8307153d; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< a0bc020592b54a8f3fa2b7f244b6e39e526c2e12; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 2498960dac9b6fc49b6d1574f7cd1a4872744adf; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 09e5a5a80e205922151136069e440477d6816914; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< b01e1c030770ff3b4fe37fc7cc6bca03f594133f (cvelist)
- Linux: 4.2 (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-40905. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40905.md
Affected: Linux >= d52d3997f843ffefaa8d8462790ffcaca6c74192, < c90af1cced2f669a7b2304584be4ada495eaa0e5; >= d52d3997f843ffefaa8d8462790ffcaca6c74192, < c693698787660c97950bc1f93a8dd19d8307153d; >= d52d3997f843ffefaa8d8462790ffcaca6c74192, < a0bc020592b54a8f3fa2b7f244b6e39e526c2e12; >= d52d3997f843ffefaa8d846…
Fixed in: Linux 2498960dac9b6fc49b6d1574f7cd1a4872744adf, Linux 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef, Linux 09e5a5a80e205922151136069e440477d6816914

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-40905 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c90af1cced2f669a7b2304584be4ada495eaa0e5; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< c693698787660c97950bc1f93a8dd19d8307153d; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< a0bc020592b54a8f3fa2b7f244b6e39e526c2e12; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 2498960dac9b6fc49b6d1574f7cd1a4872744adf; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< 09e5a5a80e205922151136069e440477d6816914; \>= d52d3997f843ffefaa8d8462790ffcaca6c74192, \< b01e1c030770ff3b4fe37fc7cc6bca03f594133f; Linux 4.2.

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

Yes. Fixed in Linux 2498960dac9b6fc49b6d1574f7cd1a4872744adf, Linux 7e796c3fefa8b17b30e7252886ae8cffacd2b9ef, Linux 09e5a5a80e205922151136069e440477d6816914. No fix listed yet: follow the vendor advisory.

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

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/c90af1cced2f669a7b2304584be4ada495eaa0e5>
- patch: <https://git.kernel.org/stable/c/c693698787660c97950bc1f93a8dd19d8307153d>
- patch: <https://git.kernel.org/stable/c/a0bc020592b54a8f3fa2b7f244b6e39e526c2e12>
- patch: <https://git.kernel.org/stable/c/2498960dac9b6fc49b6d1574f7cd1a4872744adf>
- patch: <https://git.kernel.org/stable/c/7e796c3fefa8b17b30e7252886ae8cffacd2b9ef>
- patch: <https://git.kernel.org/stable/c/09e5a5a80e205922151136069e440477d6816914>
- patch: <https://git.kernel.org/stable/c/b01e1c030770ff3b4fe37fc7cc6bca03f594133f>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.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-40905>

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