# CVE-2023-53343: icmp6: Fix null-ptr-deref of ip6\_null\_entry-\>rt6i\_idev in icmp6\_dev().

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-17T14:56:36.285Z
- **Modified:** 2026-06-17T06:44:56.967Z

## Who should check

- Anyone running Linux \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 8803c59fde4dd370a627dfbf7183682fa0cabf70; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 61b4c4659746959056450b92a5d7e6bc1243b31b; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< d30ddd7ff15df9d91a793ce3f06f0190ff7afacc; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 1462e9d9aa52d14665eaca6d89d22c4af44ede04; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< aa657d319e6c7502a4eb85cc0ee80cc81b8e5724; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 2aaa8a15de73874847d62eb595c6683bface80fd
- Anyone running Linux 4.14

## Description

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

icmp6: Fix null-ptr-deref of ip6\_null\_entry-\>rt6i\_idev in icmp6\_dev().

With some IPv6 Ext Hdr (RPL, SRv6, etc.), we can send a packet that
has the link-local address as src and dst IP and will be forwarded to
an external IP in the IPv6 Ext Hdr.

For example, the script below generates a packet whose src IP is the
link-local address and dst is updated to 11::.

  \# for f in $(find /proc/sys/net/ -name \*seg6\_enabled\*); do echo 1 \> $f; done
  \# python3
  \>\>\> from socket import \*
  \>\>\> from scapy.all import \*
  \>\>\>
  \>\>\> SRC\_ADDR = DST\_ADDR = "fe80::5054:ff:fe12:3456"
  \>\>\>
  \>\>\> pkt = IPv6(src=SRC\_ADDR, dst=DST\_ADDR)
  \>\>\> pkt /= IPv6ExtHdrSegmentRouting(type=4, addresses=\["11::", "22::"\], segleft=1)
  \>\>\>
  \>\>\> sk = socket(AF\_INET6, SOCK\_RAW, IPPROTO\_RAW)
  \>\>\> sk.sendto(bytes(pkt), (DST\_ADDR, 0))

For such a packet, we call ip6\_route\_input() to look up a route for the
next destination in these three functions depending on the header type.

  \* ipv6\_rthdr\_rcv()
  \* ipv6\_rpl\_srh\_rcv()
  \* ipv6\_srh\_rcv()

If no route is found, ip6\_null\_entry is set to skb, and the following
dst\_input(skb) calls ip6\_pkt\_drop().

Finally, in icmp6\_dev(), we dereference skb\_rt6\_info(skb)-\>rt6i\_idev-\>dev
as the input device is the loopback interface.  Then, we have to check if
skb\_rt6\_info(skb)-\>rt6i\_idev is NULL or not to avoid NULL pointer deref
for ip6\_null\_entry.

BUG: kernel NULL pointer dereference, address: 0000000000000000
 PF: supervisor read access in kernel mode
 PF: error\_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 \[\#1\] PREEMPT SMP PTI
CPU: 0 PID: 157 Comm: python3 Not tainted 6.4.0-11996-gb121d614371c \#35
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
RIP: 0010:icmp6\_send (net/ipv6/icmp.c:436 net/ipv6/icmp.c:503)
Code: fe ff ff 48 c7 40 30 c0 86 5d 83 e8 c6 44 1c 00 e9 c8 fc ff ff 49 8b 46 58 48 83 e0 fe 0f 84 4a fb ff ff 48 8b 80 d0 00 00 00 \<48\> 8b 00 44 8b 88 e0 00 00 00 e9 34 fb ff ff 4d 85 ed 0f 85 69 01
RSP: 0018:ffffc90000003c70 EFLAGS: 00000286
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 00000000000000e0
RDX: 0000000000000021 RSI: 0000000000000000 RDI: ffff888006d72a18
RBP: ffffc90000003d80 R08: 0000000000000000 R09: 0000000000000001
R10: ffffc90000003d98 R11: 0000000000000040 R12: ffff888006d72a10
R13: 0000000000000000 R14: ffff8880057fb800 R15: ffffffff835d86c0
FS:  00007f9dc72ee740(0000) GS:ffff88807dc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000057b2000 CR4: 00000000007506f0
PKRU: 55555554
Call Trace:
 \<IRQ\>
 ip6\_pkt\_drop (net/ipv6/route.c:4513)
 ipv6\_rthdr\_rcv (net/ipv6/exthdrs.c:640 net/ipv6/exthdrs.c:686)
 ip6\_protocol\_deliver\_rcu (net/ipv6/ip6\_input.c:437 (discriminator 5))
 ip6\_input\_finish (./include/linux/rcupdate.h:781 net/ipv6/ip6\_input.c:483)
 \_\_netif\_receive\_skb\_one\_core (net/core/dev.c:5455)
 process\_backlog (./include/linux/rcupdate.h:781 net/core/dev.c:5895)
 \_\_napi\_poll (net/core/dev.c:6460)
 net\_rx\_action (net/core/dev.c:6529 net/core/dev.c:6660)
 \_\_do\_softirq (./arch/x86/include/asm/jump\_label.h:27 ./include/linux/jump\_label.h:207 ./include/trace/events/irq.h:142 kernel/softirq.c:554)
 do\_softirq (kernel/softirq.c:454 kernel/softirq.c:441)
 \</IRQ\>
 \<TASK\>
 \_\_local\_bh\_enable\_ip (kernel/softirq.c:381)
 \_\_dev\_queue\_xmit (net/core/dev.c:4231)
 ip6\_finish\_output2 (./include/net/neighbour.h:544 net/ipv6/ip6\_output.c:135)
 rawv6\_sendmsg (./include/net/dst.h:458 ./include/linux/netfilter.h:303 net/ipv6/raw.c:656 net/ipv6/raw.c:914)
 sock\_sendmsg (net/socket.c:725 net/socket.c:748)
 \_\_sys\_sendto (net/socket.c:2134)
 \_\_x64\_sys\_sendto (net/socket.c:2146 net/socket.c:2142 net/socket.c:2142)
 do\_syscall\_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
 entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:120)
RIP: 0033:0x7f9dc751baea
Code: d8 64 89 02 48 c7 c0 ff f
---truncated---

## Affected and fixed versions

- Linux: \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 8803c59fde4dd370a627dfbf7183682fa0cabf70; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 61b4c4659746959056450b92a5d7e6bc1243b31b; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< d30ddd7ff15df9d91a793ce3f06f0190ff7afacc; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 1462e9d9aa52d14665eaca6d89d22c4af44ede04; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< aa657d319e6c7502a4eb85cc0ee80cc81b8e5724; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 2aaa8a15de73874847d62eb595c6683bface80fd (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 2aaa8a15de73874847d62eb595c6683bface80fd or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53343.md
Affected: Linux >= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, < 8803c59fde4dd370a627dfbf7183682fa0cabf70; >= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, < 61b4c4659746959056450b92a5d7e6bc1243b31b; >= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, < d30ddd7ff15df9d91a793ce3f06f0190ff7afacc; >= 4832c30d5458387ff2533ff…
Fixed in: Linux 8803c59fde4dd370a627dfbf7183682fa0cabf70, Linux 61b4c4659746959056450b92a5d7e6bc1243b31b, Linux 3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8, Linux 1462e9d9aa52d14665eaca6d89d22c4af44ede04, Linux 2aaa8a15de73874847d62eb595c6683bface80fd

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-2023-53343 being exploited?

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

### How serious is CVE-2023-53343?

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

### Which versions are affected by CVE-2023-53343?

Linux \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 8803c59fde4dd370a627dfbf7183682fa0cabf70; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 61b4c4659746959056450b92a5d7e6bc1243b31b; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< d30ddd7ff15df9d91a793ce3f06f0190ff7afacc; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 1462e9d9aa52d14665eaca6d89d22c4af44ede04; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< aa657d319e6c7502a4eb85cc0ee80cc81b8e5724; \>= 4832c30d5458387ff2533ff66fbde26ad8bb5a2d, \< 2aaa8a15de73874847d62eb595c6683bface80fd; Linux 4.14.

### Is there a fix for CVE-2023-53343?

Yes. Fixed in Linux 8803c59fde4dd370a627dfbf7183682fa0cabf70, Linux 61b4c4659746959056450b92a5d7e6bc1243b31b, Linux 3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8, Linux 1462e9d9aa52d14665eaca6d89d22c4af44ede04, Linux 2aaa8a15de73874847d62eb595c6683bface80fd. Upgrade Linux to 2aaa8a15de73874847d62eb595c6683bface80fd or later.

### How do I check if I'm affected by CVE-2023-53343?

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/8803c59fde4dd370a627dfbf7183682fa0cabf70>
- patch: <https://git.kernel.org/stable/c/61b4c4659746959056450b92a5d7e6bc1243b31b>
- patch: <https://git.kernel.org/stable/c/d30ddd7ff15df9d91a793ce3f06f0190ff7afacc>
- patch: <https://git.kernel.org/stable/c/3fabca5d9cae0140b6aad09a1c6b9aa57089fbb8>
- patch: <https://git.kernel.org/stable/c/1462e9d9aa52d14665eaca6d89d22c4af44ede04>
- patch: <https://git.kernel.org/stable/c/aa657d319e6c7502a4eb85cc0ee80cc81b8e5724>
- patch: <https://git.kernel.org/stable/c/2aaa8a15de73874847d62eb595c6683bface80fd>

## 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-2023-53343>

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