CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.8 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_tunnel_key: Defer dst_release to RCU callback
Fix a race-condition use-after-free in tunnel_key_release_params().
The function releases the metadata_dst of the old params synchronously
via dst_release() while deferring the params struct free with
kfree_rcu(). A concurrent tunnel_key_act() reader on the datapath may
still hold the old params pointer (under rcu_read_lock_bh) and proceed
to call dst_clone(¶ms->tcft_enc_metadata->dst) after the writer's
dst_release has already pushed the dst's rcuref to RCUREF_DEAD.
[email protected] produced a poc which i (and Victor) verified
that KASAN reports:
==================================================================BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:112BUG: KASAN: slab-use-after-free in atomic_sub_return_release include/linux/atomic/atomic-instrumented.h:326BUG: KASAN: slab-use-after-free in __rcuref_put include/linux/rcuref.h:109BUG: KASAN: slab-use-after-free in rcuref_put include/linux/rcuref.h:173BUG: KASAN: slab-use-after-free in dst_release+0x5b/0x370net/core/dst.c:168Write of size 4 at addr ffff88806158de40 by task poc/9388
CPU: 0 UID: 0 PID: 9388 Comm: poc Tainted: G W 7.1.0-rc7 #7 PREEMPT(lazy)
Tainted: [W]=WARN
Hardware name: QEMU Ubuntu 25.10 PC v2 (i440FX + PIIX, + 10.1 machine, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:<TASK>__dump_stacklib/dump_stack.c:94dump_stack_lvl+0x100/0x190lib/dump_stack.c:120print_address_descriptionmm/kasan/report.c:378print_report+0x139/0x4admm/kasan/report.c:482kasan_report+0xe4/0x1d0mm/kasan/report.c:595check_region_inlinemm/kasan/generic.c:186kasan_check_range+0x125/0x200mm/kasan/generic.c:200instrument_atomic_read_writeinclude/linux/instrumented.h:112atomic_sub_return_releaseinclude/linux/atomic/atomic-instrumented.h:326__rcuref_putinclude/linux/rcuref.h:109rcuref_putinclude/linux/rcuref.h:173dst_release+0x5b/0x370net/core/dst.c:168refdst_dropinclude/net/dst.h:272skb_dst_dropinclude/net/dst.h:284skb_release_head_state+0x293/0x400net/core/skbuff.c:1163skb_release_allnet/core/skbuff.c:1187[..]
Allocated by task 9391:kasan_save_stack+0x30/0x50mm/kasan/common.c:57kasan_save_track+0x14/0x30mm/kasan/common.c:78poison_kmalloc_redzonemm/kasan/common.c:398__kasan_kmalloc+0x9a/0xb0mm/kasan/common.c:415kasan_kmallocinclude/linux/kasan.h:263__do_kmalloc_nodemm/slub.c:5296__kmalloc_noprof+0x2f1/0x830mm/slub.c:5308kmalloc_noprofinclude/linux/slab.h:954kzalloc_noprofinclude/linux/slab.h:1188offload_action_alloc+0x2f/0x130net/core/flow_offload.c:35tcf_action_offload_add_ex+0x1ba/0x880net/sched/act_api.c:258tcf_action_offload_addnet/sched/act_api.c:293tcf_action_init+0x66e/0xa20net/sched/act_api.c:1547tcf_action_add+0xf6/0x5d0net/sched/act_api.c:2101[..]
Freed by task 9391:kasan_save_stack+0x30/0x50mm/kasan/common.c:57kasan_save_track+0x14/0x30mm/kasan/common.c:78kasan_save_free_info+0x3b/0x70mm/kasan/generic.c:584poison_slab_objectmm/kasan/common.c:253__kasan_slab_free+0x6b/0x90mm/kasan/common.c:285kasan_slab_freeinclude/linux/kasan.h:235slab_free_hookmm/slub.c:2689slab_freemm/slub.c:6251kfree+0x21f/0x6b0mm/slub.c:6566tcf_action_offload_add_ex+0x4ad/0x880net/sched/act_api.c:284tcf_action_offload_addnet/sched/act_api.c:293tcf_action_init+0x66e/0xa20net/sched/act_api.c:1547tcf_action_add+0xf6/0x5d0net/sched/act_api.c:2101The buggy address belongs to the object at ffff88806158de00 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 64 bytes inside of
freed 256-byte region [ffff88806158de00, ffff88806158df00)
The buggy address belongs to the physical page: