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 87D753D45CF for ; Mon, 10 Aug 2026 12:13:12 +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=1786363993; cv=none; b=gitFiqJDhO+yhOM4a6VoL89A3+MvyMr0RcydVELBGgTPmW1wF0J7PoV9P9Pr+QSYPBMd+eVQ2/c5lP3+zQ9a1Zvnq1v8auz3SneKzYN4wNWkBvHsixuyNhp5+wJs1OJzp3iaMSfp0DB/c+H+vMZ/HobgLwbRK6LxftSdU6paOnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363993; c=relaxed/simple; bh=8kg1JSitkRqF1ncZbd4kOjyZhazKy6kE50PFNp1fvNw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gJJhpX3Oe05Co/GRlc0AZK5RwuFPceh4t1JbUJY5/PaWYomaT+pExSyo7WBelEpempDgd59NYSezmaK9A8kjWnLG03OmJ7snMjntqlwq6cPVHfKq8ordLXFCW8UmlLDrEGdLSj9bq5EhZKRrTViaIZI4DPECWDXiC4v5+cYFgUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FyWNJvtA; 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="FyWNJvtA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B7BB1F00A3A; Mon, 10 Aug 2026 12:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363992; bh=S2gBh/jW5IRleRSQCbqp8l3YfRxKWeNaA4jwu1JzBEQ=; h=From:To:Cc:Subject:Date:Reply-To; b=FyWNJvtATbSBd/NwyYz0N2TH+WSEHLarN4n+cA2/uM2BpRzI0iUGJAAz367UrBvDT lxZo8WbQ3LS3dn1YqW0mVxeC+7o3ERy/r/KKSGIZnXhAjouI7SEP4MMf93gE/p5IE9 IWPJGmAAvGXTPB8+FPv/oLYb8TIakO1KdDbTxz60= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68387: can: raw: add locking for raw flags bitfield Date: Mon, 10 Aug 2026 14:01:44 +0200 Message-ID: <2026081045-CVE-2026-68387-4e1f@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=2547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l3CqN3oMibE01hZF6ubLedw/DCpIA+vfz84Y2apEApA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe3Z9fuZWP7tEScS84vDKLsXTfR3Cea8X6ufF3fsXe uG2yDzhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInfMMC5a963qtoZ4awyVh qjsre8rzBe1xPxjmCgadu7Q3nj1IZnP3So+bDw+nV+qkAQA= 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: add locking for raw flags bitfield With commit 890e5198a6e5 ("can: raw: use bitfields to store flags in struct raw_sock") the formerly separate integer values have been integrated into a single bitfield. This led to a read-modify-write operation when changing a flag in raw_setsockopt() which now needs a locking to prevent concurrent access. Instead of adding a lock/unlock hell in each of the flag manipulations this patch introduces a wrapper for a new raw_setsockopt_locked() function analogue to the isotp_setsockopt[_locked]() approach in net/can/isotp.c [mkl: use Closes tag instead of Link] The Linux kernel CVE team has assigned CVE-2026-68387 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 890e5198a6e5b238627c245fafea1a92670a86cd and fixed in 6.18.42 with commit 00ba4bf8798242253fefc1fa6a78db1d445fd024 Issue introduced in 6.18 with commit 890e5198a6e5b238627c245fafea1a92670a86cd and fixed in 7.1.6 with commit 57791aab1129c9405f84bb0882de58967d8b44cd Issue introduced in 6.18 with commit 890e5198a6e5b238627c245fafea1a92670a86cd and fixed in 7.2-rc4 with commit 1e5185c090589f4146d728ab36417d8a5419f127 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-68387 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/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/00ba4bf8798242253fefc1fa6a78db1d445fd024 https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127