# CVE-2023-53500: xfrm: 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:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; 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-28)
- **CWE:** CWE-416
- **Published:** 2025-10-01T11:45:51.182Z
- **Modified:** 2026-10-15T22:17:41.187Z

## Who should check

- Anyone running Linux \>= f855691975bb06373a98711e4cfe2c224244b536, \< da4cbaa75ed088b6d70db77b9103a27e2359e243; \>= f855691975bb06373a98711e4cfe2c224244b536, \< db0e50741f0387f388e9ec824ea7ae8456554d5b; \>= f855691975bb06373a98711e4cfe2c224244b536, \< bafa236380816b41b2c4c6970d9067fefa4a6c9e; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 44b3d40967009304617a7a6486490c1d6c12f899; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0d27567fde5be5f0edc2db5c110142b7915b8fa8; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 86f15300a22656db3fa8c8967defbcd24fac4d37; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 53223f2ed1ef5c90dad814daaaefea4e68a933c8
- Anyone running Linux 3.19

## Description

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

xfrm: fix slab-use-after-free in decode\_session6

When the xfrm 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 the xfrm 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 ffff8881111458ef by task swapper/3/0
CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.4.0-next-20230707 \#409
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
xfrmi\_xmit+0x173/0x1ca0
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\>
\<TASK\>
asm\_sysvec\_apic\_timer\_interrupt+0x1a/0x20
RIP: 0010:intel\_idle\_hlt+0x23/0x30
Code: 1f 84 00 00 00 00 00 f3 0f 1e fa 41 54 41 89 d4 0f 1f 44 00 00 66 90 0f 1f 44 00 00 0f 00 2d c4 9f ab 00 0f 1f 44 00 00 fb f4 \<fa\> 44 89 e0 41 5c c3 66 0f 1f 44 00 00 f3 0f 1e fa 41 54 41 89 d4
RSP: 0018:ffffc90000197d78 EFLAGS: 00000246
RAX: 00000000000a83c3 RBX: ffffe8ffffd09c50 RCX: ffffffff8a22d8e5
RDX: 0000000000000001 RSI: ffffffff8d3f8080 RDI: ffffe8ffffd09c50
RBP: ffffffff8d3f8080 R08: 0000000000000001 R09: ffffed1026ba6d9d
R10: ffff888135d36ceb R11: 0000000000000001 R12: 0000000000000001
R13: ffffffff8d3f8100 R14: 0000000000000001 R15: 0000000000000000
cpuidle\_enter\_state+0xd3/0x6f0
cpuidle\_enter+0x4e/0xa0
do\_idle+0x2fe/0x3c0
cpu\_startup\_entry+0x18/0x20
start\_secondary+0x200/0x290
secondary\_startup\_64\_no\_verify+0x167/0x16b
\</TASK\>
Allocated by task 939:
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
inet6\_ifa\_notify+0x118/0x230
\_\_ipv6\_ifa\_notify+0x177/0xbe0
addrconf\_dad\_completed+0x133/0xe00
addrconf\_dad\_work+0x764/0x1390
process\_one\_work+0xa32/0x16f0
worker\_thread+0x67d/0x10c0
kthread+0x344/0x440
ret\_from\_fork+0x1f/0x30
The buggy address belongs to the object at ffff888111145800
which belongs to the cache skbuff\_small\_head of size 640
The buggy address is located 239 bytes inside of
freed 640-byte region \[ffff888111145800, ffff888111145a80)

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, \< da4cbaa75ed088b6d70db77b9103a27e2359e243; \>= f855691975bb06373a98711e4cfe2c224244b536, \< db0e50741f0387f388e9ec824ea7ae8456554d5b; \>= f855691975bb06373a98711e4cfe2c224244b536, \< bafa236380816b41b2c4c6970d9067fefa4a6c9e; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 44b3d40967009304617a7a6486490c1d6c12f899; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0d27567fde5be5f0edc2db5c110142b7915b8fa8; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 86f15300a22656db3fa8c8967defbcd24fac4d37; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 53223f2ed1ef5c90dad814daaaefea4e68a933c8 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53500.md
Affected: Linux >= f855691975bb06373a98711e4cfe2c224244b536, < da4cbaa75ed088b6d70db77b9103a27e2359e243; >= f855691975bb06373a98711e4cfe2c224244b536, < db0e50741f0387f388e9ec824ea7ae8456554d5b; >= f855691975bb06373a98711e4cfe2c224244b536, < bafa236380816b41b2c4c6970d9067fefa4a6c9e; >= f855691975bb06373a98711…
Fixed in: Linux 44b3d40967009304617a7a6486490c1d6c12f899, Linux 0d27567fde5be5f0edc2db5c110142b7915b8fa8, Linux 86f15300a22656db3fa8c8967defbcd24fac4d37, Linux 53223f2ed1ef5c90dad814daaaefea4e68a933c8

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

There is no confirmed exploitation: CVE-2023-53500 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-28).

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

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

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

Linux \>= f855691975bb06373a98711e4cfe2c224244b536, \< da4cbaa75ed088b6d70db77b9103a27e2359e243; \>= f855691975bb06373a98711e4cfe2c224244b536, \< db0e50741f0387f388e9ec824ea7ae8456554d5b; \>= f855691975bb06373a98711e4cfe2c224244b536, \< bafa236380816b41b2c4c6970d9067fefa4a6c9e; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 44b3d40967009304617a7a6486490c1d6c12f899; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 0d27567fde5be5f0edc2db5c110142b7915b8fa8; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 86f15300a22656db3fa8c8967defbcd24fac4d37; \>= f855691975bb06373a98711e4cfe2c224244b536, \< 53223f2ed1ef5c90dad814daaaefea4e68a933c8; Linux 3.19.

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

Yes. Fixed in Linux 44b3d40967009304617a7a6486490c1d6c12f899, Linux 0d27567fde5be5f0edc2db5c110142b7915b8fa8, Linux 86f15300a22656db3fa8c8967defbcd24fac4d37, Linux 53223f2ed1ef5c90dad814daaaefea4e68a933c8. Upgrade Linux to 53223f2ed1ef5c90dad814daaaefea4e68a933c8 or later.

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

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/da4cbaa75ed088b6d70db77b9103a27e2359e243>
- patch: <https://git.kernel.org/stable/c/db0e50741f0387f388e9ec824ea7ae8456554d5b>
- patch: <https://git.kernel.org/stable/c/bafa236380816b41b2c4c6970d9067fefa4a6c9e>
- patch: <https://git.kernel.org/stable/c/44b3d40967009304617a7a6486490c1d6c12f899>
- patch: <https://git.kernel.org/stable/c/0d27567fde5be5f0edc2db5c110142b7915b8fa8>
- patch: <https://git.kernel.org/stable/c/86f15300a22656db3fa8c8967defbcd24fac4d37>
- patch: <https://git.kernel.org/stable/c/53223f2ed1ef5c90dad814daaaefea4e68a933c8>

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

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