Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C1A342F9C2C for ; Sat, 31 Jan 2026 11:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859604; cv=none; b=uMkJs5w4+7EUIUbjHyR/uePcrcjeOoj9TrQD058P03inQz5XfUCrtP/gFoPafTD+d6gWozBJ5FOLfd4eYWSuMWYwMzEfzzaQDnM8XqXRqdl8QOP3+d6FYjU+WlZFdyqHhNcdNFmImPGkLTG0zf32V1+B+oxpZOpD56NYgZTB6Fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859604; c=relaxed/simple; bh=qEpSFfibJqOZgP41SEjBtv2oZ2X0gndRCLBjtyXg66U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ep/LX8Eg6VIyEC2q0ckLUBf/u3xbTiDSWq7743yMd5SzJtqWL8mmRx2SYX+wE5xNd0BN6blC81zYRK79gWP84uMMHqg5fJuxjbBsyjsk/+/VPWz3tnJlbHYh1W7zUIgWxFyt2wXnwl3up4hGERl+Eqm5yDvTqaFlX5JbKVl5n8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QCqhEYEZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QCqhEYEZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2481DC4CEF1; Sat, 31 Jan 2026 11:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769859604; bh=qEpSFfibJqOZgP41SEjBtv2oZ2X0gndRCLBjtyXg66U=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QCqhEYEZRQhM44hJCOmkzTKVY44uuok2udsMQ/gZ1duxSmGhNbasMMwIqanvKSGqZ BFN2T75RIJG4En2P7VsIvcoSNyOzgOXLJ+yy2VMyGzvuNHA1j1gZ+mpVOXAPuMo1q1 b4tUR2oUAR8FRYsKw6dl4jeWGm8gJQqVfBAKdam0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71182: can: j1939: make j1939_session_activate() fail if device is no longer registered Date: Sat, 31 Jan 2026 12:39:33 +0100 Message-ID: <2026013134-CVE-2025-71182-54d0@gregkh> X-Mailer: git-send-email 2.52.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=2972; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GRbg9l98nPkhwsXhg+iwKuiTEyFzS1O2vjhBCtyXUAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm1L7/9YuTb+3yuW7zB3fCGFVc/CE/0Nflv/NXp0+Lnb RnPXlTUdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEArcwzOHonJd8oXeN41er P7JSAZzCvPGXTjPMFV0yz2z7evX511r9li2ayl7CfOA9CwA= 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: j1939: make j1939_session_activate() fail if device is no longer registered syzbot is still reporting unregister_netdevice: waiting for vcan0 to become free. Usage count = 2 even after commit 93a27b5891b8 ("can: j1939: add missing calls in NETDEV_UNREGISTER notification handler") was added. A debug printk() patch found that j1939_session_activate() can succeed even after j1939_cancel_active_session() from j1939_netdev_notify(NETDEV_UNREGISTER) has completed. Since j1939_cancel_active_session() is processed with the session list lock held, checking ndev->reg_state in j1939_session_activate() with the session list lock held can reliably close the race window. The Linux kernel CVE team has assigned CVE-2025-71182 to this issue. Affected and fixed versions =========================== Fixed in 5.10.248 with commit ebb0dfd718dd31c8d3600612ca4b7207ec3d923a Fixed in 5.15.198 with commit c3a4316e3c746af415c0fd6c6d489ad13f53714d Fixed in 6.1.161 with commit 46ca9dc978923c5e1247a9e9519240ba7ace413c Fixed in 6.6.121 with commit 78d87b72cebe2a993fd5b017e9f14fb6278f2eae Fixed in 6.12.66 with commit ba6f0d1832eeb5eb3a6dc5cb30e0f720b3cb3536 Fixed in 6.18.6 with commit 79dd3f1d9dd310c2af89b09c71f34d93973b200f Fixed in 6.19-rc2 with commit 5d5602236f5db19e8b337a2cd87a90ace5ea776d 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-2025-71182 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/j1939/transport.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/ebb0dfd718dd31c8d3600612ca4b7207ec3d923a https://git.kernel.org/stable/c/c3a4316e3c746af415c0fd6c6d489ad13f53714d https://git.kernel.org/stable/c/46ca9dc978923c5e1247a9e9519240ba7ace413c https://git.kernel.org/stable/c/78d87b72cebe2a993fd5b017e9f14fb6278f2eae https://git.kernel.org/stable/c/ba6f0d1832eeb5eb3a6dc5cb30e0f720b3cb3536 https://git.kernel.org/stable/c/79dd3f1d9dd310c2af89b09c71f34d93973b200f https://git.kernel.org/stable/c/5d5602236f5db19e8b337a2cd87a90ace5ea776d