Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154233; b=QI93QtMB0PBq8zKYWkJ7AVkRw1z2EOIu+pAVzI1D4IqydUFzz5oKuc5nol68EebVf1Da 64j4TxAr6IW494meewrGVbcjXj7NmamCxkazCh7ij2qdAKkaNW9eQ8+6QLUjMnIi+8Fmf SmcvS/HRAFJDsSZRqvubz390CdGBuaBm2p3/QMMPufYiiWcPTm2y0wWGEWwrERCGwkoqx s/tfV44HdxlI0MNZvRXISHsK0fzyHTYMX70rbCjUQg5vht/Ul7W0T/UszIS63Nqe2pVUs i2WEhJqP6Y8sG3Gf5/NSDow9AG8Xxkx3aZ+bggimSPhpwCZuwrNKhFB+7M2ZR7KMWvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154233; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=OAwYeiDXbkQE7QIEz8A9RKrOsdZrd1bK36mD6eTB+w8=; b=fcPy98a86t6NRedfMh/LX345JvDDXWM6Uzf45+v9/8rJlj6W5c9qOAAFwH3kj2RZ9m88 PnYrmcXwg+LrSIWHyatkuYvCiHkqfAdoVI44ktv5IOZZhkwO2fIs6qV1pjHmgjb7kgj4k AmcLEU3MTuMggYr/gyN5mmjnwfrRGhihRep4boXbREne56UPNgvW8mJzTArdJ+1sehRhh k/eWalJAbLHRy6QRquesGzm2rL2FDuQxB0Rsu0bUR75aaLsjq3wUNxqnnn4gSHAX6t9tJ 0NNm/To5i7cXnS6f0FFCj7oqoe1LirAYNIU62LJh672hF2yiX6fFTVmp9vXh8RrKBoA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=u7WpXMN7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C2B8606A33D for ; Fri, 20 Nov 2026 05:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=u7WpXMN7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED4FF1F000D3; Fri, 20 Nov 2026 05:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154233; bh=OAwYeiDXbkQE7QIEz8A9RKrOsdZrd1bK36mD6eTB+w8=; h=From:To:Cc:Subject:Date:Reply-To; b=u7WpXMN7h6qeUAfachcXeN0gL941jevHak0BYAJroQFEbi5Hk8IQtlpLu7Me12Jst 60vkYjt96UzbksMbReDCOeSsaAHtwjLrg3FWSgVXNh7Fvw1xOCy2/GXzxtHbwud8v2 Bpc0Z4UimNFdCsdCODaCycXox83AMlC+FzM3mbrg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99671: can: raw, isotp: copy socket options outside of lock_sock() Date: Fri, 20 Nov 2026 06:50:57 +0100 Message-ID: <2026112051-CVE-2026-99671-3aa2@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3921; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=J9wvox3xhzngQHjFr0n6aNLz5RzNLVptXTbH48wyXc4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/79drSSkunsO+mnnfn7y4JVltvzjFCt98U3KTsdHXV Jf4Gr2zI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyfjHDguPheyMkwk5dMFC/ /EKwtfrKvx9JwgzzjJTL5yRNyCrdKvjxw43Pu1sOzgg3BwA= 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: can: raw, isotp: copy socket options outside of lock_sock() The CAN_RAW and CAN_ISOTP specific socket options are copied from and to user space while holding lock_sock(). A copy that faults or stalls, e.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its whole duration. raw_notify() and isotp_notify() take lock_sock() of a socket that is bound to the vanishing device while holding RTNL. As the CAN_RAW options can also be changed on a bound socket, a stalled copy can block RTNL on an unregistration or namespace change of the bound device. Before "can: protect the receive lists with a per-device lock", raw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only copies its options for unbound sockets, which isotp_notify() skips without taking lock_sock(). Keep the user space copies out of the locked sections: Check the option name and length and copy the option values, including the CAN_RAW_FILTER filters, to kernel memory before lock_sock(). raw_setsockopt_locked() and isotp_setsockopt_locked() get the copied values directly and drop their now redundant length checks and copies. As a side effect, a failing copy can not leave partially overwritten options behind anymore. In raw_getsockopt() duplicate the filters under lock_sock() and copy them to user space after release_sock(). As the option name and length are now checked before lock_sock(), the order of the checks in isotp_setsockopt() and accordingly the order of the returned error values changes. This is in line with POSIX, which does not define an order in which multiple error conditions are detected and reported. The generic SOL_SOCKET options in sk_setsockopt() are not affected by this patch. The Linux kernel CVE team has assigned CVE-2026-99671 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit c18ce101f2e47d97ace125033e2896895a6db3dd and fixed in 6.12.118 with commit ecc81d48ae70513db45de567ae164a1993b792c5 Issue introduced in 2.6.25 with commit c18ce101f2e47d97ace125033e2896895a6db3dd and fixed in 6.18.64 with commit 233eb0922c17063911dd4e947ef91ef5125b9665 Issue introduced in 2.6.25 with commit c18ce101f2e47d97ace125033e2896895a6db3dd and fixed in 7.3.5 with commit 12b2ddd7d01b7e5ec466c128ff862197d59c2440 Issue introduced in 2.6.25 with commit c18ce101f2e47d97ace125033e2896895a6db3dd and fixed in 7.4-rc2 with commit 43c973a0887d3d7b2ee0a446603c97bf0f38c58e 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-99671 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/can/isotp.c net/can/raw.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/ecc81d48ae70513db45de567ae164a1993b792c5 https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665 https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440 https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e