# CVE-2023-53821: ip6\_vti: fix slab-use-after-free in decode\_session6

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **Published:** 2025-12-09T01:29:34.073Z
- **Modified:** 2026-06-17T06:46:07.850Z

## Who should check

- Anyone running Linux \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0f0ab8d52ee0062b28367dea23c29e254a26d7db; \>= f855691975bb06373a98711e4cfe2c224244b536, \< fa6c6c04f6c9b21b315023f487e5a07ae7fcf647; \>= f855691975bb06373a98711e4cfe2c224244b536, \< eb47e612e59c358c3968a92f90dd36c78c9a2106; \>= f855691975bb06373a98711e4cfe2c224244b536, \< ec23b25e5687dbd644c0f57bcb6af22dd5a6dd36; \>= f855691975bb06373a98711e4cfe2c224244b536, \< a1639a82ce14af76b6419778d343ccbff86ee626; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 55ad2309205cc00c585344374c7472420e1b2c12; \>= f855691975bb06373a98711e4cfe2c224244b536, \< c070688bfbe7759e61e697e421b2a331b0dd74bc; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 9fd41f1ba638938c9a1195d09bc6fa3be2712f25
- Anyone running Linux 3.19

## Description

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

ip6\_vti: fix slab-use-after-free in decode\_session6

When ipv6\_vti device is set to the qdisc of the sfb type, the cb field
of the sent skb may be modified during enqueuing. Then,
slab-use-after-free may occur when ipv6\_vti device sends IPv6 packets.

The stack information is as follows:
BUG: KASAN: slab-use-after-free in decode\_session6+0x103f/0x1890
Read of size 1 at addr ffff88802e08edc2 by task swapper/0/0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.4.0-next-20230707-00001-g84e2cad7f979 \#410
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1.fc33 04/01/2014
Call Trace:
\<IRQ\>
dump\_stack\_lvl+0xd9/0x150
print\_address\_description.constprop.0+0x2c/0x3c0
kasan\_report+0x11d/0x130
decode\_session6+0x103f/0x1890
\_\_xfrm\_decode\_session+0x54/0xb0
vti6\_tnl\_xmit+0x3e6/0x1ee0
dev\_hard\_start\_xmit+0x187/0x700
sch\_direct\_xmit+0x1a3/0xc30
\_\_qdisc\_run+0x510/0x17a0
\_\_dev\_queue\_xmit+0x2215/0x3b10
neigh\_connected\_output+0x3c2/0x550
ip6\_finish\_output2+0x55a/0x1550
ip6\_finish\_output+0x6b9/0x1270
ip6\_output+0x1f1/0x540
ndisc\_send\_skb+0xa63/0x1890
ndisc\_send\_rs+0x132/0x6f0
addrconf\_rs\_timer+0x3f1/0x870
call\_timer\_fn+0x1a0/0x580
expire\_timers+0x29b/0x4b0
run\_timer\_softirq+0x326/0x910
\_\_do\_softirq+0x1d4/0x905
irq\_exit\_rcu+0xb7/0x120
sysvec\_apic\_timer\_interrupt+0x97/0xc0
\</IRQ\>
Allocated by task 9176:
kasan\_save\_stack+0x22/0x40
kasan\_set\_track+0x25/0x30
\_\_kasan\_slab\_alloc+0x7f/0x90
kmem\_cache\_alloc\_node+0x1cd/0x410
kmalloc\_reserve+0x165/0x270
\_\_alloc\_skb+0x129/0x330
netlink\_sendmsg+0x9b1/0xe30
sock\_sendmsg+0xde/0x190
\_\_\_\_sys\_sendmsg+0x739/0x920
\_\_\_sys\_sendmsg+0x110/0x1b0
\_\_sys\_sendmsg+0xf7/0x1c0
do\_syscall\_64+0x39/0xb0
entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
Freed by task 9176:
kasan\_save\_stack+0x22/0x40
kasan\_set\_track+0x25/0x30
kasan\_save\_free\_info+0x2b/0x40
\_\_\_\_kasan\_slab\_free+0x160/0x1c0
slab\_free\_freelist\_hook+0x11b/0x220
kmem\_cache\_free+0xf0/0x490
skb\_free\_head+0x17f/0x1b0
skb\_release\_data+0x59c/0x850
consume\_skb+0xd2/0x170
netlink\_unicast+0x54f/0x7f0
netlink\_sendmsg+0x926/0xe30
sock\_sendmsg+0xde/0x190
\_\_\_\_sys\_sendmsg+0x739/0x920
\_\_\_sys\_sendmsg+0x110/0x1b0
\_\_sys\_sendmsg+0xf7/0x1c0
do\_syscall\_64+0x39/0xb0
entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88802e08ed00
which belongs to the cache skbuff\_small\_head of size 640
The buggy address is located 194 bytes inside of
freed 640-byte region \[ffff88802e08ed00, ffff88802e08ef80)

As commit f855691975bb ("xfrm6: Fix the nexthdr offset in
\_decode\_session6.") showed, xfrm\_decode\_session was originally intended
only for the receive path. IP6CB(skb)-\>nhoff is not set during
transmission. Therefore, set the cb field in the skb to 0 before
sending packets.

## Affected and fixed versions

- Linux: \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0f0ab8d52ee0062b28367dea23c29e254a26d7db; \>= f855691975bb06373a98711e4cfe2c224244b536, \< fa6c6c04f6c9b21b315023f487e5a07ae7fcf647; \>= f855691975bb06373a98711e4cfe2c224244b536, \< eb47e612e59c358c3968a92f90dd36c78c9a2106; \>= f855691975bb06373a98711e4cfe2c224244b536, \< ec23b25e5687dbd644c0f57bcb6af22dd5a6dd36; \>= f855691975bb06373a98711e4cfe2c224244b536, \< a1639a82ce14af76b6419778d343ccbff86ee626; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 55ad2309205cc00c585344374c7472420e1b2c12; \>= f855691975bb06373a98711e4cfe2c224244b536, \< c070688bfbe7759e61e697e421b2a331b0dd74bc; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 9fd41f1ba638938c9a1195d09bc6fa3be2712f25 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53821.md
Affected: Linux >= f855691975bb06373a98711e4cfe2c224244b536, < 0f0ab8d52ee0062b28367dea23c29e254a26d7db; >= f855691975bb06373a98711e4cfe2c224244b536, < fa6c6c04f6c9b21b315023f487e5a07ae7fcf647; >= f855691975bb06373a98711e4cfe2c224244b536, < eb47e612e59c358c3968a92f90dd36c78c9a2106; >= f855691975bb06373a98711…
Fixed in: Linux 0f0ab8d52ee0062b28367dea23c29e254a26d7db, Linux 55ad2309205cc00c585344374c7472420e1b2c12, Linux 9fd41f1ba638938c9a1195d09bc6fa3be2712f25

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0f0ab8d52ee0062b28367dea23c29e254a26d7db; \>= f855691975bb06373a98711e4cfe2c224244b536, \< fa6c6c04f6c9b21b315023f487e5a07ae7fcf647; \>= f855691975bb06373a98711e4cfe2c224244b536, \< eb47e612e59c358c3968a92f90dd36c78c9a2106; \>= f855691975bb06373a98711e4cfe2c224244b536, \< ec23b25e5687dbd644c0f57bcb6af22dd5a6dd36; \>= f855691975bb06373a98711e4cfe2c224244b536, \< a1639a82ce14af76b6419778d343ccbff86ee626; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 55ad2309205cc00c585344374c7472420e1b2c12; \>= f855691975bb06373a98711e4cfe2c224244b536, \< c070688bfbe7759e61e697e421b2a331b0dd74bc; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 9fd41f1ba638938c9a1195d09bc6fa3be2712f25; Linux 3.19.

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

Yes. Fixed in Linux 0f0ab8d52ee0062b28367dea23c29e254a26d7db, Linux 55ad2309205cc00c585344374c7472420e1b2c12, Linux 9fd41f1ba638938c9a1195d09bc6fa3be2712f25. Upgrade Linux to 9fd41f1ba638938c9a1195d09bc6fa3be2712f25 or later.

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

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

- other: <https://git.kernel.org/stable/c/0f0ab8d52ee0062b28367dea23c29e254a26d7db>
- other: <https://git.kernel.org/stable/c/fa6c6c04f6c9b21b315023f487e5a07ae7fcf647>
- other: <https://git.kernel.org/stable/c/eb47e612e59c358c3968a92f90dd36c78c9a2106>
- other: <https://git.kernel.org/stable/c/ec23b25e5687dbd644c0f57bcb6af22dd5a6dd36>
- other: <https://git.kernel.org/stable/c/a1639a82ce14af76b6419778d343ccbff86ee626>
- other: <https://git.kernel.org/stable/c/55ad2309205cc00c585344374c7472420e1b2c12>
- other: <https://git.kernel.org/stable/c/c070688bfbe7759e61e697e421b2a331b0dd74bc>
- other: <https://git.kernel.org/stable/c/9fd41f1ba638938c9a1195d09bc6fa3be2712f25>

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

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