CVE
CVE-2023-53500
CNA 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:…
Affected versions
All Linux kernel vulnerabilities →
- 6.5-rc6This version only
- 6.5-rc5This version only
- 6.5-rc4This version only
- 6.5-rc3This version only
- 6.5-rc2This version only
- 6.5-rc1This version only
- ≥ 6.2, < 6.4.12Fixed in 6.4.12
- ≥ 5.16, < 6.1.47Fixed in 6.1.47
- ≥ 5.11, < 5.15.128Fixed in 5.15.128
- ≥ 5.5, < 5.10.192Fixed in 5.10.192
- ≥ 4.20, < 5.4.255Fixed in 5.4.255
- ≥ 3.19.1, < 4.19.293Fixed in 4.19.293
- 3.19This version only
- 3.19-rc7This version only
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/0d27567fde5be5f0edc2db5c110142b7915b8fa8 · Patch
- git.kernel.org/stable/c/44b3d40967009304617a7a6486490c1d6c12f899 · Patch
- git.kernel.org/stable/c/53223f2ed1ef5c90dad814daaaefea4e68a933c8 · Patch
- git.kernel.org/stable/c/86f15300a22656db3fa8c8967defbcd24fac4d37 · Patch
- git.kernel.org/stable/c/bafa236380816b41b2c4c6970d9067fefa4a6c9e · Patch
- git.kernel.org/stable/c/da4cbaa75ed088b6d70db77b9103a27e2359e243 · Patch
- git.kernel.org/stable/c/db0e50741f0387f388e9ec824ea7ae8456554d5b · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.