CVE
CVE-2026-64436
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: net: af_key: initialize alg_key_len for IPComp states pfkey_msg2xfrm_state() handles the IPComp (SADB_X_SATYPE_IPCOMP) case by allocating x->calg and copying only the algorithm name: x->calg = kmalloc_obj(*x->calg); if (!x->calg) { err = -ENOMEM; goto out; } strcpy(x->calg->alg_name, a->name); x->props.calgo = sa->sadb_sa_encrypt; Unlike the authentication (x->aalg) and encryption (x->ealg) branches of the same function, the compression branch never initializes calg->alg_key_len. IPComp carries no key and the allocation only reserves sizeof(struct xfrm_algo) (i.e. no room for a key), so the field is left containing uninitialized slab data. calg->alg_key_len is later used as a length by xfrm_algo_clone() when an IPComp state is cloned during XFRM_MSG_MIGRATE: xfrm_state_migrate() xfrm_state_clone_and_setup() x->calg = xfrm_algo_clone(orig->calg); kmemdup(orig, xfrm_alg_len(orig)); where xfrm_alg_len() returns sizeof(*alg) + (alg_key_len + 7) / 8. With a non-zero garbage alg_key_len, kmemdup() reads past the end of the 68-byte calg object. Adding an IPComp SA via PF_KEY and then migrating it triggers (net-next, KASAN, init_on_alloc=0): BUG: KASAN: slab-out-of-bounds in kmemdup_noprof+0x44/0x60 Read of size 4164 at addr ff11000025a74980 by task diag2/9287 CPU: 3 UID: 0 PID: 9287 Comm: diag2 7.1.0-rc6-g903db046d557 #1 Call Trace: <TASK> dump_stack_lvl+0x10e/0x1f0 print_report+0xf7/0x600 kasan_report+0xe4/0x120 kasan_check_range+0x105/0x1b0 __asan_memcpy+0x23/0x60 kmemdup_noprof+0x44/0x60 xfrm_state_migrate+0x70a/0x1da0 xfrm_migrate+0x753/0x18a0 xfrm_do_migrate+0xb47/0xf10 xfrm_user_rcv_msg+0x411/0xb50 netlink_rcv_skb+0x158/0x420 xfrm_netlink_rcv+0x71/0x90 netlink_unicast+0x584/0x850 netlink_sendmsg+0x8b0/0xdc0 ____sys_sendmsg+0x9f7/0xb90 ___sys_sendmsg+0x134/0x1d0 __sys_sendmsg+0x16d/0x220…
受影响版本
- ≥ 6.19, < 7.1.4修复版本 7.1.4
- ≥ 6.13, < 6.18.39修复版本 6.18.39
- ≥ 6.7, < 6.12.96修复版本 6.12.96
- ≥ 6.2, < 6.6.145修复版本 6.6.145
- ≥ 5.16, < 6.1.178修复版本 6.1.178
- ≥ 5.11, < 5.15.212修复版本 5.15.212
- ≥ 2.6.21, < 5.10.261修复版本 5.10.261
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/01b9115b55018123ef2449ac4951f89147a8428e · Patch
- git.kernel.org/stable/c/273c06b81d2e902b21acc801ae18c8276c8a9b69 · Patch
- git.kernel.org/stable/c/3f63d1752d90c0e28be931a48ab5d89bc97d637d · Patch
- git.kernel.org/stable/c/58e82fc3dedb57b1432292504415b224fd2d6acb · Patch
- git.kernel.org/stable/c/6de2a650917bedaaefd65b17cede83c5e2c1dedd · Patch
- git.kernel.org/stable/c/cea34abc94b0a81e3a8b5cfb41cf45af37c2c67e · Patch
- git.kernel.org/stable/c/d129c3177d7b1138fd5066fcc63a698b3ba415b0 · Patch
- git.kernel.org/stable/c/e8417353cbd078d10531ba3928e609c84ab09e6b · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。