# CVE-2021-47103: inet: fully convert sk-\>sk\_rx\_dst to RCU rules

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.95% (percentile 60, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-03-04T18:10:57.116Z
- **Modified:** 2026-08-05T08:46:00.322Z

## Who should check

- Anyone running Linux \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 68c34ce11ef23328692aa35fa6aaafdd75913100; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 92e6e36ecd16808866ac6172b9491b5097cde449; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 75a578000ae5e511e5d0e8433c94a14d9c99c412; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< c3bb4a7e8cbc984e1cdac0fe6af60e880214ed6e; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< f039b43cbaea5e0700980c2f0052da05a70782e0; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 0249a4b8a554f2eb6a27b62516fa50168584faa4; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 8f905c0e7354ef261360fb7535ea079b1082c105
- Anyone running Linux 3.6

## Description

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

inet: fully convert sk-\>sk\_rx\_dst to RCU rules

syzbot reported various issues around early demux,
one being included in this changelog \[1\]

sk-\>sk\_rx\_dst is using RCU protection without clearly
documenting it.

And following sequences in tcp\_v4\_do\_rcv()/tcp\_v6\_do\_rcv()
are not following standard RCU rules.

\[a\]    dst\_release(dst);
\[b\]    sk-\>sk\_rx\_dst = NULL;

They look wrong because a delete operation of RCU protected
pointer is supposed to clear the pointer before
the call\_rcu()/synchronize\_rcu() guarding actual memory freeing.

In some cases indeed, dst could be freed before \[b\] is done.

We could cheat by clearing sk\_rx\_dst before calling
dst\_release(), but this seems the right time to stick
to standard RCU annotations and debugging facilities.

\[1\]
BUG: KASAN: use-after-free in dst\_check include/net/dst.h:470 \[inline\]
BUG: KASAN: use-after-free in tcp\_v4\_early\_demux+0x95b/0x960 net/ipv4/tcp\_ipv4.c:1792
Read of size 2 at addr ffff88807f1cb73a by task syz-executor.5/9204

CPU: 0 PID: 9204 Comm: syz-executor.5 Not tainted 5.16.0-rc5-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 print\_address\_description.constprop.0.cold+0x8d/0x320 mm/kasan/report.c:247
 \_\_kasan\_report mm/kasan/report.c:433 \[inline\]
 kasan\_report.cold+0x83/0xdf mm/kasan/report.c:450
 dst\_check include/net/dst.h:470 \[inline\]
 tcp\_v4\_early\_demux+0x95b/0x960 net/ipv4/tcp\_ipv4.c:1792
 ip\_rcv\_finish\_core.constprop.0+0x15de/0x1e80 net/ipv4/ip\_input.c:340
 ip\_list\_rcv\_finish.constprop.0+0x1b2/0x6e0 net/ipv4/ip\_input.c:583
 ip\_sublist\_rcv net/ipv4/ip\_input.c:609 \[inline\]
 ip\_list\_rcv+0x34e/0x490 net/ipv4/ip\_input.c:644
 \_\_netif\_receive\_skb\_list\_ptype net/core/dev.c:5508 \[inline\]
 \_\_netif\_receive\_skb\_list\_core+0x549/0x8e0 net/core/dev.c:5556
 \_\_netif\_receive\_skb\_list net/core/dev.c:5608 \[inline\]
 netif\_receive\_skb\_list\_internal+0x75e/0xd80 net/core/dev.c:5699
 gro\_normal\_list net/core/dev.c:5853 \[inline\]
 gro\_normal\_list net/core/dev.c:5849 \[inline\]
 napi\_complete\_done+0x1f1/0x880 net/core/dev.c:6590
 virtqueue\_napi\_complete drivers/net/virtio\_net.c:339 \[inline\]
 virtnet\_poll+0xca2/0x11b0 drivers/net/virtio\_net.c:1557
 \_\_napi\_poll+0xaf/0x440 net/core/dev.c:7023
 napi\_poll net/core/dev.c:7090 \[inline\]
 net\_rx\_action+0x801/0xb40 net/core/dev.c:7177
 \_\_do\_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke\_softirq kernel/softirq.c:432 \[inline\]
 \_\_irq\_exit\_rcu+0x123/0x180 kernel/softirq.c:637
 irq\_exit\_rcu+0x5/0x20 kernel/softirq.c:649
 common\_interrupt+0x52/0xc0 arch/x86/kernel/irq.c:240
 asm\_common\_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:629
RIP: 0033:0x7f5e972bfd57
Code: 39 d1 73 14 0f 1f 80 00 00 00 00 48 8b 50 f8 48 83 e8 08 48 39 ca 77 f3 48 39 c3 73 3e 48 89 13 48 8b 50 f8 48 89 38 49 8b 0e \<48\> 8b 3e 48 83 c3 08 48 83 c6 08 eb bc 48 39 d1 72 9e 48 39 d0 73
RSP: 002b:00007fff8a413210 EFLAGS: 00000283
RAX: 00007f5e97108990 RBX: 00007f5e97108338 RCX: ffffffff81d3aa45
RDX: ffffffff81d3aa45 RSI: 00007f5e97108340 RDI: ffffffff81d3aa45
RBP: 00007f5e97107eb8 R08: 00007f5e97108d88 R09: 0000000093c2e8d9
R10: 0000000000000000 R11: 0000000000000000 R12: 00007f5e97107eb0
R13: 00007f5e97108338 R14: 00007f5e97107ea8 R15: 0000000000000019
 \</TASK\>

Allocated by task 13:
 kasan\_save\_stack+0x1e/0x50 mm/kasan/common.c:38
 kasan\_set\_track mm/kasan/common.c:46 \[inline\]
 set\_alloc\_info mm/kasan/common.c:434 \[inline\]
 \_\_kasan\_slab\_alloc+0x90/0xc0 mm/kasan/common.c:467
 kasan\_slab\_alloc include/linux/kasan.h:259 \[inline\]
 slab\_post\_alloc\_hook mm/slab.h:519 \[inline\]
 slab\_alloc\_node mm/slub.c:3234 \[inline\]
 slab\_alloc mm/slub.c:3242 \[inline\]
 kmem\_cache\_alloc+0x202/0x3a0 mm/slub.c:3247
 dst\_alloc+0x146/0x1f0 net/core/dst.c:92
 rt\_dst\_alloc+0x73/0x430 net/ipv4/route.c:1613
 ip\_route\_input\_slow+0x1817/0x3a20 net/ipv4/route.c:234
---truncated---

## Affected and fixed versions

- Linux: \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 68c34ce11ef23328692aa35fa6aaafdd75913100; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 92e6e36ecd16808866ac6172b9491b5097cde449; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 75a578000ae5e511e5d0e8433c94a14d9c99c412; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< c3bb4a7e8cbc984e1cdac0fe6af60e880214ed6e; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< f039b43cbaea5e0700980c2f0052da05a70782e0; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 0249a4b8a554f2eb6a27b62516fa50168584faa4; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 8f905c0e7354ef261360fb7535ea079b1082c105 (cvelist)
- Linux: 3.6 (cvelist)

## Mitigation

- Upgrade Linux to 8f905c0e7354ef261360fb7535ea079b1082c105 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-47103. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47103.md
Affected: Linux >= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, < 68c34ce11ef23328692aa35fa6aaafdd75913100; >= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, < 92e6e36ecd16808866ac6172b9491b5097cde449; >= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, < 75a578000ae5e511e5d0e8433c94a14d9c99c412; >= 41063e9dd11956f2d285e12…
Fixed in: Linux 68c34ce11ef23328692aa35fa6aaafdd75913100, Linux 92e6e36ecd16808866ac6172b9491b5097cde449, Linux 75a578000ae5e511e5d0e8433c94a14d9c99c412, Linux 0249a4b8a554f2eb6a27b62516fa50168584faa4, Linux 8f905c0e7354ef261360fb7535ea079b1082c105

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

There is no confirmed exploitation: CVE-2021-47103 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.95% chance of exploitation in the next 30 days (as of 2026-11-26).

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 68c34ce11ef23328692aa35fa6aaafdd75913100; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 92e6e36ecd16808866ac6172b9491b5097cde449; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 75a578000ae5e511e5d0e8433c94a14d9c99c412; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< c3bb4a7e8cbc984e1cdac0fe6af60e880214ed6e; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< f039b43cbaea5e0700980c2f0052da05a70782e0; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 0249a4b8a554f2eb6a27b62516fa50168584faa4; \>= 41063e9dd11956f2d285e12e4342e1d232ba0ea2, \< 8f905c0e7354ef261360fb7535ea079b1082c105; Linux 3.6.

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

Yes. Fixed in Linux 68c34ce11ef23328692aa35fa6aaafdd75913100, Linux 92e6e36ecd16808866ac6172b9491b5097cde449, Linux 75a578000ae5e511e5d0e8433c94a14d9c99c412, Linux 0249a4b8a554f2eb6a27b62516fa50168584faa4, Linux 8f905c0e7354ef261360fb7535ea079b1082c105. Upgrade Linux to 8f905c0e7354ef261360fb7535ea079b1082c105 or later.

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

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

- exploit: <https://git.kernel.org/stable/c/68c34ce11ef23328692aa35fa6aaafdd75913100>
- exploit: <https://git.kernel.org/stable/c/92e6e36ecd16808866ac6172b9491b5097cde449>
- exploit: <https://git.kernel.org/stable/c/75a578000ae5e511e5d0e8433c94a14d9c99c412>
- exploit: <https://git.kernel.org/stable/c/c3bb4a7e8cbc984e1cdac0fe6af60e880214ed6e>
- exploit: <https://git.kernel.org/stable/c/f039b43cbaea5e0700980c2f0052da05a70782e0>
- exploit: <https://git.kernel.org/stable/c/0249a4b8a554f2eb6a27b62516fa50168584faa4>
- exploit: <https://git.kernel.org/stable/c/8f905c0e7354ef261360fb7535ea079b1082c105>

## 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-47103>

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