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=1795154371; b=VWN1XaQRPlLXEMbV7JC7kyTYiTXejq6wg7Wl7/cGj9Um11RZDY4zx9Gb50zpF0qPuQV5 yn4zcU1AHJuJHEgegU37GCFTis3FBs0+0eLWH5+pPx5LkL61dBgH1qhJEBB5PxCeN+OLc mm3hOx1Ky3pPOM9DLQJvexeMatEAeQOJCtADTEtdbtspRtFCoGhYUR55n3fddEo0LdVDY FtpEa/hpLKi+skcCVdLwqruu2/yTgFBQ7yAalfmXgmilVylFT2HR+34bbTRuhIXlS40bY mZhfDHwa36EUcslTanY3T2L8ARCMF3cToQ+TnI2YWD3YC/1MEgAF5VwaWvP5esvpJqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154371; 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=DrfD917pn65+XrWQLcUeSEHRkhJEWxh7ajnqg/Ebetg=; b=DzPsrNhaj82i/Mmcn2r1VSQXNBEhbFkjz+Unye6i91f89+Xvo0iBru0/OaMVZZuO4HN9 t2W/d6MnrVxLMA27SvWiiZG3LNOUib0SRTz+74PWAQaWU+H8fIGDJU633IbzABCxoZy+4 yf+vTYHlzZcYDDx740gDUVKdmYpeVLVr23zqUt9KqAEOaOXY0cdPAte2/Ulmh626uXpTa skPw1oilOZDYlwhUG8RbfpDguoBHEtU5pT5t0ifkeGfJy2/HutCIJrd5bkhRudur+/VJq GLBYlDWhExuAOihmVB/7BbzQ4C31cxOKAJEEa7vx7BrCHQBTa1Kd/mLSkgwatuU3cMA== 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=0CSa1JaN; 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 AAB1C606A50A for ; Fri, 20 Nov 2026 05:59:31 +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=0CSa1JaN Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07FB91F000C4; Fri, 20 Nov 2026 05:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154371; bh=DrfD917pn65+XrWQLcUeSEHRkhJEWxh7ajnqg/Ebetg=; h=From:To:Cc:Subject:Date:Reply-To; b=0CSa1JaNemEuz63Dr5SIGcEgMFEW0EtDBQvkWN8JrRJhdOqPgmfFOfFtChKRx9b5S yibSWPYEWAaMkAA3Wz1OxQxQYVVE0Wos41brTTYprPeZAlphNcCH4Rx7mnW/g+u2D1 +07NbEoPZ2TxBRTBKgSV3ww9bYZDCy0c4S9Svm0s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99673: can: replace ARPHRD_CAN type checks with can_get_ml_priv() Date: Fri, 20 Nov 2026 06:50:59 +0100 Message-ID: <2026112052-CVE-2026-99673-0b6c@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=3978; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bvsMPY8o4oJJ6od4ROio6brvW5osK7Aez76LjLlJCpA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7zds3ygSVMl31XSyqcSiQw4XDHy011/VyHM/Os3gh Y75xGkCHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARDzWGefZnNgWaBB4VffF7 zutSpZjtDj49MgxzZZJ+f27obulQnRxwO9lzSc303D+1AA== 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: replace ARPHRD_CAN type checks with can_get_ml_priv() Commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") introduced an explicit way to assign the midlayer private pointer (dev->ml_priv) to named users like ML_PRIV_CAN. A valid pointer returned by can_get_ml_priv() therefore identifies a real CAN device. The referenced commit only converted the j1939 and proc code to this check, while the other parts of the CAN subsystem still rely on dev->type == ARPHRD_CAN. The TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware type to ARPHRD_CAN while dev->ml_priv remains NULL. Such a repurposed netdevice passes the ARPHRD_CAN checks. Commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") already made can_rx_register() reject such devices. But can_rx_unregister() still only checks dev->type and dereferences the NULL ml_priv when it walks the receive lists of the device. CAN_ISOTP reaches this path: isotp_bind() ignores the return values of can_rx_register() and binds the socket anyway. When the socket is released or the device is unregistered, isotp_release() and isotp_notify() remove the filters that have never been registered and trigger the NULL pointer dereference in can_rx_unregister(). This only requires owning a TUN/TAP device or CAP_NET_ADMIN in an unprivileged user namespace. Convert the remaining ARPHRD_CAN checks in af_can, bcm, gw, isotp and raw to can_get_ml_priv(). The Linux kernel CVE team has assigned CVE-2026-99673 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 4e096a18867a5a989b510f6999d9c6b6622e8f7b and fixed in 6.12.118 with commit c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b Issue introduced in 5.12 with commit 4e096a18867a5a989b510f6999d9c6b6622e8f7b and fixed in 6.18.64 with commit f4910431fdf7b2800f0bec9f161900511f9a8bcd Issue introduced in 5.12 with commit 4e096a18867a5a989b510f6999d9c6b6622e8f7b and fixed in 7.3.5 with commit 27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19 Issue introduced in 5.12 with commit 4e096a18867a5a989b510f6999d9c6b6622e8f7b and fixed in 7.4-rc2 with commit 962947b69589881167054bae5accc8abfd5aa4b6 Issue introduced in 5.4.110 with commit 4ac1feff6ea6495cbfd336f4438a6c6d140544a6 Issue introduced in 5.10.28 with commit 1a5751d58b14195f763b8c1d9ef33fb8a93e95e7 Issue introduced in 5.11.12 with commit 96340078d50a54f6a1252c62596bc44321c8bff9 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-99673 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/af_can.c net/can/bcm.c net/can/gw.c 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/c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b https://git.kernel.org/stable/c/f4910431fdf7b2800f0bec9f161900511f9a8bcd https://git.kernel.org/stable/c/27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19 https://git.kernel.org/stable/c/962947b69589881167054bae5accc8abfd5aa4b6