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 B8DF63537F5 for ; Sat, 15 Aug 2026 06:12:35 +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=1786774356; cv=none; b=ceIT1oAVFVABeRwzuvS9c44kfo+hkWEic72DSZ5nrqlYzsvhUECnADeuaLmm6wG475yqIiF3taEGtvmp4WrZo0KDeFT5ZmDPDLSaUJ0Er/W6lltBB5T4mfPsTVu1+1QSgSmhUMvWFA6CT+AWOqNiV2bWmObJENzOLOIUy43NmDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774356; c=relaxed/simple; bh=BMLYvNFNORwog9HcMwEKLnI8jnj1MO9E6ETF8D7GwJA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RkTjEBi0+/a5D6+8BcQ7ltPFkgNdWITlyjBmqBIKOv7GK64kxCxGmaDzNr7pVdUm3E8vPTAYUpycntQlmhNhaXhIIJuJRBqp3Nyl/uVpNoiWnoLXSZUSqLrkrRLuxzTDHAzlOSbEZCpbsgcu50GVfvDwTuXd14MyS0HRZ+5fMks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sGDKRsBD; 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="sGDKRsBD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F0A31F000E9; Sat, 15 Aug 2026 06:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774355; bh=q3kFijQCMVp4AhDsjJzivCaNff2mi/EjJKS7fmz6J0w=; h=From:To:Cc:Subject:Date:Reply-To; b=sGDKRsBDoDJWUKw6xlQh6T9pcEgxD7YJoiIvDCnVXdW8jjQln0iWk/4/mLskVaEDv kqXhmkdV7GEVsZUZXUJhTiM0puVDIZkDa+a/yBcGfWVQ9yh+2BlYgUurNn0foLfBK6 DsZwAGJCqE2kc5Tg4quRCxSR4+NLt3pBvmtH/dEg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72124: can: isotp: serialize TX state transitions under so->rx_lock Date: Sat, 15 Aug 2026 15:03:23 +0900 Message-ID: <2026081529-CVE-2026-72124-a0d0@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=4051; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WgtcRzeG2MYOcdm+gQnHYqurjn102qXGyQzkbzTSRak=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDDvD1+wWzTVeK3gid9Wnr6uenrirV/pvzeWMU8Gvz 675+ts8oyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8uIVw4JNS6dNVb9jq7Hq 5PXQKU9DLtqtn5bAMD8hle+5LdMeDqdtbj5RE0XPS11xMwcA 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: isotp: serialize TX state transitions under so->rx_lock The TX state machine (so->tx.state) is driven from three contexts: sendmsg() claiming and progressing a transfer, the RX path consuming Flow Control/echo frames, and two hrtimers timing out a stalled transfer. Mixing a lock-free cmpxchg() claim in sendmsg() with hrtimer_cancel() calls made under so->rx_lock elsewhere left windows where a frame or timer callback could act on a state that had already moved on, corrupting an unrelated transfer. so->rx_lock now covers the full lifecycle of a TX claim: sendmsg() takes it to check so->tx.state is ISOTP_IDLE, switch it to ISOTP_SENDING, bump so->tx_gen and drain the previous transfer's timers - all as one critical section. isotp_rcv_fc()/isotp_rcv_cf() already run under this lock via isotp_rcv(), and isotp_rcv_echo() now takes it itself, so none of them can ever observe a transfer mid-claim. This also means a transfer can no longer be handed to sendmsg()'s cleanup paths (signal or send error) while another thread is concurrently claiming or finishing it, so those paths can cancel timers and reset the state unconditionally. isotp_release() claims the socket the same way, so a racing sendmsg() sees a consistent ISOTP_SHUTDOWN and skips arming its timer or sending. Only the hrtimer callbacks stay outside so->rx_lock, since they run under so->rx_lock's cancellation elsewhere and taking it themselves would deadlock. so->tx_gen lets them recognize whether the transfer they timed out is still the one currently active, so they don't report an error against a transfer that has since completed or been superseded. The Linux kernel CVE team has assigned CVE-2026-72124 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit e057dd3fc20ffb3d7f150af46542a51b59b90127 and fixed in 6.6.148 with commit 0b05eca9589f609e2491b528dccf683168a4cda8 Issue introduced in 5.10 with commit e057dd3fc20ffb3d7f150af46542a51b59b90127 and fixed in 6.12.101 with commit a7d90e7b5e75d7406c889fe36e9a61ee364a00cb Issue introduced in 5.10 with commit e057dd3fc20ffb3d7f150af46542a51b59b90127 and fixed in 6.18.40 with commit 37beb16e08cae94cc05840c7274225e3b0b38ae7 Issue introduced in 5.10 with commit e057dd3fc20ffb3d7f150af46542a51b59b90127 and fixed in 7.1.5 with commit 4f1fdf1a1c317bcac0c6b6c8e12642c9983de1ca Issue introduced in 5.10 with commit e057dd3fc20ffb3d7f150af46542a51b59b90127 and fixed in 7.2-rc4 with commit cf070fe33bfbd1a4c21236078fadb35dd223a157 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-72124 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 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/0b05eca9589f609e2491b528dccf683168a4cda8 https://git.kernel.org/stable/c/a7d90e7b5e75d7406c889fe36e9a61ee364a00cb https://git.kernel.org/stable/c/37beb16e08cae94cc05840c7274225e3b0b38ae7 https://git.kernel.org/stable/c/4f1fdf1a1c317bcac0c6b6c8e12642c9983de1ca https://git.kernel.org/stable/c/cf070fe33bfbd1a4c21236078fadb35dd223a157