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 22CBD4D179D for ; Sun, 18 Oct 2026 15:25:42 +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=1792337145; cv=none; b=WLRj485Id611B2v54RbZvwwL2sc9UB4urRkIM88UTV8Aio2Wa7h7pOwNhaRiuaIEvzf38Ym6PQv7JmluJZVLzrZ1fu3sJv+tKjBO9D2AqLIkAlG4/XUCOyh3HFhZXth3Hu4OawZlIraZSkIB87X0qjCZWYt4VpdXmfUVseNyWgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337145; c=relaxed/simple; bh=PwrJ2f1U7YPDDIMa/WHh1lG3Mv3O2K8BLo0w6bLEu3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VTOSSAnaLfstTf/2JkyDi7XI0GyJIcUiE9qxzJONgqMFRSQp3u4s1zNcvKkyBXti8WyCijcVQg8cO6p7/xogjM9iTdHboO/h86/+a81SSFQxTAgFs74iFcGdqFMcytETG9OSp94Oi8C2wQ4KYtuK++xoiFRi9jqlZrAi7InDlO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bvuL2sti; 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="bvuL2sti" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E75D1F000C4; Sun, 18 Oct 2026 15:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337141; bh=M8kzviWsjfLvdHT2xdAyZcwHzh6onxRo4QDRqgTfhEw=; h=From:To:Cc:Subject:Date:Reply-To; b=bvuL2sti9FJjNLCs+W3qb7WDf0AwjIi8MuCvstNeipY6W1VFQIvmCxLLPqyLyTVry 9QwBojPCXGHPg1FY6vdhyz2WOVhSW3tZHYhPL7M+tbfiXtEZh5eB1nHbjeFLoATqyr G+NpafcbabERRgyeLA3oVAPTXRp+xhHfQ8fnf4lE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98525: mctp: route: iterate socket tag list in mctp_lookup_prealloc_tag() Date: Sun, 18 Oct 2026 17:16:29 +0200 Message-ID: <2026101823-CVE-2026-98525-d461@gregkh> X-Mailer: git-send-email 2.56.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=3203; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zwmHXPsynbBx8qprYHUoFHg626qQstjNYU6OcbSRBzk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHnXvOil716/t+tVvrv4RDscZHNx31LIXqP6IdE/VC 7nMfvlMRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEPpNhviN3u/Z9ueg8uVsT 37EXv/iz8X5eK8M8HVF+u511x8t2Ji7bacGX/0w++4E5AA== 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: mctp: route: iterate socket tag list in mctp_lookup_prealloc_tag() When a socket transmits a packet with MCTP_TAG_PREALLOC set, mctp_lookup_prealloc_tag() iterates over the per-netns &mns->keys list and matches netid, req_tag, peer_addr, and manual_alloc, without checking whether tmp->sk == &msk->sk. This allows any MCTP socket in the same network namespace to use and consume another socket's preallocated tag. Iterate the socket's own tag list (&msk->keys via sklist) instead of the namespace-wide &mns->keys list in mctp_lookup_prealloc_tag(), ensuring that only tags allocated by msk are matched. Tested in QEMU against Linux 7.3.0-rc3 by allocating a manual tag (0x18) on socket A via SIOCMCTPALLOCTAG for peer EID 9 and sending a 4-byte message with MCTP_TAG_PREALLOC from socket B in the same network namespace. On the unfixed kernel, sendto(sock_b) using socket A's preallocated tag succeeds (ret = 4); with this patch applied, sendto(sock_b) fails with -ENOENT (errno = 2) while sendto(sock_a) succeeds (ret = 4). The Linux kernel CVE team has assigned CVE-2026-98525 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 63ed1aab3d40aa61aaa66819bdce9377ac7f40fa and fixed in 6.12.112 with commit 09299addab11857e92eca55cd8ef3350b927c90c Issue introduced in 5.18 with commit 63ed1aab3d40aa61aaa66819bdce9377ac7f40fa and fixed in 6.18.55 with commit e35cb500dd14882f8dee61783fccd1823fd3ab0d Issue introduced in 5.18 with commit 63ed1aab3d40aa61aaa66819bdce9377ac7f40fa and fixed in 7.2.9 with commit f178300e2f56ca9ec2a3a0090608730bbee0af7b Issue introduced in 5.18 with commit 63ed1aab3d40aa61aaa66819bdce9377ac7f40fa and fixed in 7.3-rc5 with commit 26cc0e69cce062cd3aa6fae33074684669c35a71 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-98525 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/mctp/route.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/09299addab11857e92eca55cd8ef3350b927c90c https://git.kernel.org/stable/c/e35cb500dd14882f8dee61783fccd1823fd3ab0d https://git.kernel.org/stable/c/f178300e2f56ca9ec2a3a0090608730bbee0af7b https://git.kernel.org/stable/c/26cc0e69cce062cd3aa6fae33074684669c35a71