Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D4A939023D for ; Sun, 19 Jul 2026 12:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462601; cv=none; b=u5Q3CuiWkP/QslqKJOB4P4S0zgQwDoM0PMU0I0D96WFgf8bP8Yseki4294GW7NHzN4PR9Cjui1QugLMyrSiHbkCrKbl0ho9RHTqxrErK72vkBCiMgjaLNigfWcOKwWHbpM94tYIcVRkNQVwHJIE/qNNJl4MKgUdC7BJlMaCkZYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462601; c=relaxed/simple; bh=rbbcL3rFvHLaQfMgT1u0y3aP0AfpsdlAH4jOBP3h3R4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TWeGs2c4C2heV3PZfUPgTbvWVK5wHZTn+6fOjwOE+X/S+fLRSy7wiu7SzjrwiGt2MxTlR6Xz9goNQJPM3RNx7oljojfSqHNRgRYn7VJMprPu/qZfPL+YAA6gt7W5sebPwjtRz1SoyAPr4NlY+PAaYHzGv5N2swb3V94qpYSnlG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X6APlG6c; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="X6APlG6c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 993DB1F000E9; Sun, 19 Jul 2026 12:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462600; bh=P+fG+36civ7eK3cFVhs8Kp7L92OCgB04RO6dKBvFV6Q=; h=From:To:Cc:Subject:Date:Reply-To; b=X6APlG6co9rCbYll7BwiZG8p6t82OlumQ2a4Of8JChwoxXVcr54gc0iLkXsC1cV37 YcdaWHVePQARi8btAMtKGltNqgCTFTMPbfT0hIrCIaUk5BcXpCba7bvnObBX3ojh5h i9gG0xd9pGIAsxxNc8f4RVQHR9s8YzN562yiuLtc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63801: tipc: fix slab-use-after-free Read in tipc_aead_decrypt_done Date: Sun, 19 Jul 2026 14:02:18 +0200 Message-ID: <2026071901-CVE-2026-63801-f5e2@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6712; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fPPdnorhS0fNSAhGPqIU+3JVA7BJscFoBAYLlR9MQDA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe3Zezi0I/SJTUMC6Wli1QLykbnP6vMw7t6qPcd4tY RKbtqW2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSeYxhnn2F9IyLWmfPBFZy lTB6bPlw+UvpdIZ5Nq//m5wNTp96/HX9tbpNU7oXP+DwBQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: tipc: fix slab-use-after-free Read in tipc_aead_decrypt_done tipc_aead_decrypt() goes straight from tipc_bearer_hold(b) to crypto_aead_decrypt(req) without taking a reference on the netns, unlike the encrypt path. When crypto_aead_decrypt() is offloaded asynchronously (e.g. the SIMD aead wrapper queuing to cryptd), the cryptd worker runs tipc_aead_decrypt_done() later. If the bearer's netns is torn down in the meantime, cleanup_net() -> tipc_exit_net() -> tipc_crypto_stop() frees the per-netns tipc_crypto, and the completion then reads it: tipc_aead_decrypt_done() dereferences aead->crypto->stats and aead->crypto->net, and tipc_crypto_rcv_complete() dereferences aead->crypto->aead[] and the node table -- reading freed memory. Decoded KASAN splat (v7.1-rc7, CONFIG_KASAN_INLINE + TIPC + TIPC_CRYPTO): BUG: KASAN: slab-use-after-free in tipc_aead_decrypt_done (net/tipc/crypto.c:999) Read of size 8 at addr ffff8881056258a8 by task kworker/u16:2/51 Workqueue: events_unbound Call Trace: tipc_aead_decrypt_done (net/tipc/crypto.c:999) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3397 kernel/workqueue.c:3478) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Allocated by task 169: __kasan_kmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415) tipc_crypto_start (net/tipc/crypto.c:1502) tipc_init_net (net/tipc/core.c:72) ops_init (net/core/net_namespace.c:137) setup_net (net/core/net_namespace.c:446) copy_net_ns (net/core/net_namespace.c:579) create_new_namespaces (kernel/nsproxy.c:132) __x64_sys_unshare (kernel/fork.c:3316) do_syscall_64 (arch/x86/entry/syscall_64.c:63) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Freed by task 8: kfree (mm/slub.c:6566) tipc_exit_net (net/tipc/core.c:119) cleanup_net (net/core/net_namespace.c:704) process_one_work (kernel/workqueue.c:3314) kthread (kernel/kthread.c:436) This is the same class of bug that commit e279024617134 ("net/tipc: fix slab-use-after-free Read in tipc_aead_encrypt_done") fixed for the encrypt side. The encrypt path takes maybe_get_net(aead->crypto->net) before crypto_aead_encrypt() and drops it with put_net() on the synchronous return paths and in tipc_aead_encrypt_done(); the -EINPROGRESS/-EBUSY return keeps the reference for the async callback to release. The decrypt path was left without the equivalent guard. Mirror the encrypt-side fix on the decrypt path: take a net reference before crypto_aead_decrypt() (failing with -ENODEV and the matching bearer put if it cannot be acquired), keep it across the -EINPROGRESS/-EBUSY async return, and drop it with put_net() on the synchronous success/error return and at the end of tipc_aead_decrypt_done(). Reproduced under KASAN on v7.1-rc7: a UDP bearer with a cluster key is flooded with crafted encrypted frames from an unknown peer (driving the cluster-key decrypt path) while the bearer's netns is repeatedly torn down. The completion must run asynchronously to outlive tipc_crypto_stop(); on x86 the stock aesni gcm(aes) now decrypts synchronously, so the async path was exercised via cryptd offload. The unguarded aead->crypto dereference in tipc_aead_decrypt_done() is the unpatched upstream path; tipc_aead_decrypt() still lacks maybe_get_net(aead->crypto->net), so the completion can outlive the free on any config where crypto_aead_decrypt() goes async. Found by 0sec automated security-research tooling (https://0sec.ai). The Linux kernel CVE team has assigned CVE-2026-63801 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 5.10.260 with commit 171d31245d11bf84836fad3b394cb465a4d008ec Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 5.15.211 with commit 2d1f21419ec121232c916d3a3fc9b6766473a0e7 Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 6.1.177 with commit 0a780653b2a7569a7af9be7d0b00b1251baca63a Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 6.6.144 with commit eaca7dae02fab70c8d223cffe03cec1b93249ce2 Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 6.12.95 with commit dca7713fe044a2067387948557ea099056e1679e Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 6.18.38 with commit e18769616fd5a90ec1e12aabbba544c488284292 Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 7.1.3 with commit 1eea5e1820a2f5164d706bd1277bc97ff31ce32d Issue introduced in 5.5 with commit fc1b6d6de2208774efd2a20bf0daddb02d18b1e0 and fixed in 7.2-rc1 with commit bda3348872a2ef0d19f2df6aa8cb5025adce2f20 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-63801 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/tipc/crypto.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/171d31245d11bf84836fad3b394cb465a4d008ec https://git.kernel.org/stable/c/2d1f21419ec121232c916d3a3fc9b6766473a0e7 https://git.kernel.org/stable/c/0a780653b2a7569a7af9be7d0b00b1251baca63a https://git.kernel.org/stable/c/eaca7dae02fab70c8d223cffe03cec1b93249ce2 https://git.kernel.org/stable/c/dca7713fe044a2067387948557ea099056e1679e https://git.kernel.org/stable/c/e18769616fd5a90ec1e12aabbba544c488284292 https://git.kernel.org/stable/c/1eea5e1820a2f5164d706bd1277bc97ff31ce32d https://git.kernel.org/stable/c/bda3348872a2ef0d19f2df6aa8cb5025adce2f20