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 D57BD3B7748 for ; Wed, 25 Mar 2026 10:31:41 +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=1774434701; cv=none; b=nVhsw1zvJJ2y3IRnpOll6yL3bh7YzqstnRhSd29ZRgqfLqEpcDO41uX+v+vEWIMxtmFPUR3ALZFZdbuy6Mz+qYbHfgJqOHgRBb+E5qwnb+j6sU7dpoxBGy5kLNAvKSfv6LakHCXqVDG04n/wcj0NHnj2T7+VMBOBml0KKQ+89L4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434701; c=relaxed/simple; bh=ZSw+PzLIRIVedkZlvQxF5eAtOH5IkZHuW6f1l4XmdU0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eQ8EyLPdvL+KT8kbxPTVG0+Xk1O3RUDmv9uX9umO9RyTyA8x90DxZcANYSAzj8LB5cN2NkkY2Xl2zOpt8p6tS1RaamXmUh/RpoLg6Awd5UnjaQ9nZ37GnO/c2q9UhMeuwItyO8q5sijnxm3zQwdAI0tHjri5M1nPRCCoC1PV0dw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zfLIV9Ch; 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="zfLIV9Ch" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58D3FC4CEF7; Wed, 25 Mar 2026 10:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434701; bh=ZSw+PzLIRIVedkZlvQxF5eAtOH5IkZHuW6f1l4XmdU0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zfLIV9ChGTDL+2CkXfX/2b/lzslmkkwVo5QZT7VQ7TQ9CzlSEpvHbiV4ESrdvij23 6BJydfp98XNW+2dtN2ZTCFW/S3Lx3CaRqvpsG2O/HoqS3QwY7LNBuPge4jsVqiCK98 gW6e03OXxNE6Yd5SPqU3Knxc+8nChVKdbUt9WfVM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23372: nfc: rawsock: cancel tx_work before socket teardown Date: Wed, 25 Mar 2026 11:27:56 +0100 Message-ID: <2026032541-CVE-2026-23372-7bc9@gregkh> X-Mailer: git-send-email 2.53.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=3281; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Mu3nh4oUGcPKCuyq91O8rzde8bMvct+KOM4yBR/6s/M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdyQ+mGEoVnpM/nR1sUz+wgo79dpGp6s9gZliE6Yxs RdOO7iyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyKIphfnjS5j0W/qEnlvmq /zl7Oq/qw54GVYb52TnOz1pOBwSv+5BSkJnGbegZe8EFAA== 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: nfc: rawsock: cancel tx_work before socket teardown In rawsock_release(), cancel any pending tx_work and purge the write queue before orphaning the socket. rawsock_tx_work runs on the system workqueue and calls nfc_data_exchange which dereferences the NCI device. Without synchronization, tx_work can race with socket and device teardown when a process is killed (e.g. by SIGKILL), leading to use-after-free or leaked references. Set SEND_SHUTDOWN first so that if tx_work is already running it will see the flag and skip transmitting, then use cancel_work_sync to wait for any in-progress execution to finish, and finally purge any remaining queued skbs. The Linux kernel CVE team has assigned CVE-2026-23372 to this issue. Affected and fixed versions =========================== Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 6.1.167 with commit 3ae592ed91bb4b6b51df256b51045c13d2656049 Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 6.6.130 with commit 722a28b635ec281bb08a23885223526d8e7d6526 Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 6.12.77 with commit 78141b8832e16d80d09cbefb4258612db0777a24 Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 6.18.17 with commit edc988613def90c5b558e025b1b423f48007be06 Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 6.19.7 with commit da4515fc8263c5933ed605e396af91079806dc45 Issue introduced in 3.1 with commit 23b7869c0fd08d73c9f83a2db88a13312d6198bb and fixed in 7.0-rc3 with commit d793458c45df2aed498d7f74145eab7ee22d25aa 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-23372 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/nfc/rawsock.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/3ae592ed91bb4b6b51df256b51045c13d2656049 https://git.kernel.org/stable/c/722a28b635ec281bb08a23885223526d8e7d6526 https://git.kernel.org/stable/c/78141b8832e16d80d09cbefb4258612db0777a24 https://git.kernel.org/stable/c/edc988613def90c5b558e025b1b423f48007be06 https://git.kernel.org/stable/c/da4515fc8263c5933ed605e396af91079806dc45 https://git.kernel.org/stable/c/d793458c45df2aed498d7f74145eab7ee22d25aa