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 E8FCBDF59 for ; Tue, 9 Dec 2025 01:33:18 +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=1765243999; cv=none; b=mSqbC68IryphLREtHBSxvaVSEwzH3QemQAbrAB0RGQJubGFnnOu/979pfvtwUelFOudJlYiOvsQQSIQP8cjQxxtdYu9vPrpozQK/A530CZFcnXYfEkVQH2Y8WKY8NRis4nMpo9Hl4RaXrsmv5E96HTg+AmVBAN3BdZkGTktofd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243999; c=relaxed/simple; bh=/EcJX4y4EbK3KC+39irh+CS/csi1fYWOAz5qhPGPWZQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VA9s28CUhi2EuOhKCB5mefW/V/gCMowPfPcPVBvKckzZKxJLI8sEMzxyqbekmZa8IQvoA+v4xaVJ/IBr36xanzZHHoAusns/Wuxm0Qzo2bocqoHWpv5sjfmEeuGmphPvIjgqh1aT3ruORL3JZteSYO29pkvr9BUiO9Afxgotalw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ptp9feWY; 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="ptp9feWY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8315AC4CEF1; Tue, 9 Dec 2025 01:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243998; bh=/EcJX4y4EbK3KC+39irh+CS/csi1fYWOAz5qhPGPWZQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ptp9feWYbVZZYr0q15yCEQ0peY3ZBwsmiPuhZ+Zptq9yJo/BVir2fZvEN+Ns0PB8H RjJs43bkPf17jZs6omvUAovzU+2TkJQqvqTJcDbvb5dFQmwA87q56BVx4mHkZyFkr+ gaYQzPGwcNd0YGP+VUzAoygNaVywDYUEUcFWy1BI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53853: netlink: annotate accesses to nlk->cb_running Date: Tue, 9 Dec 2025 10:31:37 +0900 Message-ID: <2025120902-CVE-2023-53853-424f@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=5200; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TxOwNB0JmGuuivacpGztEBh8xjQtkdc7jo0QjD3VhnM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1de4imcdtBXI+fraVGlHa8KigqIfyS81H9yYMrlgQ dqqNoczHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR098M8wPzrwiFtQidzc0T /xv9aM4Rt+6gPwzz03ZtjJj59s1Hsw83u6eF8+0+I3BZBgA= 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: netlink: annotate accesses to nlk->cb_running Both netlink_recvmsg() and netlink_native_seq_show() read nlk->cb_running locklessly. Use READ_ONCE() there. Add corresponding WRITE_ONCE() to netlink_dump() and __netlink_dump_start() syzbot reported: BUG: KCSAN: data-race in __netlink_dump_start / netlink_recvmsg write to 0xffff88813ea4db59 of 1 bytes by task 28219 on cpu 0: __netlink_dump_start+0x3af/0x4d0 net/netlink/af_netlink.c:2399 netlink_dump_start include/linux/netlink.h:308 [inline] rtnetlink_rcv_msg+0x70f/0x8c0 net/core/rtnetlink.c:6130 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2577 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6192 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] sock_write_iter+0x1aa/0x230 net/socket.c:1138 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x463/0x760 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88813ea4db59 of 1 bytes by task 28222 on cpu 1: netlink_recvmsg+0x3b4/0x730 net/netlink/af_netlink.c:2022 sock_recvmsg_nosec+0x4c/0x80 net/socket.c:1017 ____sys_recvmsg+0x2db/0x310 net/socket.c:2718 ___sys_recvmsg net/socket.c:2762 [inline] do_recvmmsg+0x2e5/0x710 net/socket.c:2856 __sys_recvmmsg net/socket.c:2935 [inline] __do_sys_recvmmsg net/socket.c:2958 [inline] __se_sys_recvmmsg net/socket.c:2951 [inline] __x64_sys_recvmmsg+0xe2/0x160 net/socket.c:2951 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00 -> 0x01 The Linux kernel CVE team has assigned CVE-2023-53853 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 4.14.316 with commit e25e9d8a210ed78bdf0f364576dbee13aefadbf8 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 4.19.284 with commit 840a647499b093621167de56ffa8756dfc69f242 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 5.4.244 with commit a507022c862e10744a92c4bf5709775450a110ad Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 5.10.181 with commit f92557f79a60cb142258f5fa7194f327573fadd8 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 5.15.113 with commit 1d5c8b01f1df0461256a6d75854ed806f50645a3 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 6.1.30 with commit a115dadf8995b1730c36c474401d97355705cb88 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 6.3.4 with commit 02e7afd659a4c9ce1e98fc01ab4c510f3de1f0b3 Issue introduced in 3.12 with commit 16b304f3404f8e0243d5ee2b70b68767b7b59b2b and fixed in 6.4 with commit a939d14919b799e6fff8a9c80296ca229ba2f8a4 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-2023-53853 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/netlink/af_netlink.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/e25e9d8a210ed78bdf0f364576dbee13aefadbf8 https://git.kernel.org/stable/c/840a647499b093621167de56ffa8756dfc69f242 https://git.kernel.org/stable/c/a507022c862e10744a92c4bf5709775450a110ad https://git.kernel.org/stable/c/f92557f79a60cb142258f5fa7194f327573fadd8 https://git.kernel.org/stable/c/1d5c8b01f1df0461256a6d75854ed806f50645a3 https://git.kernel.org/stable/c/a115dadf8995b1730c36c474401d97355705cb88 https://git.kernel.org/stable/c/02e7afd659a4c9ce1e98fc01ab4c510f3de1f0b3 https://git.kernel.org/stable/c/a939d14919b799e6fff8a9c80296ca229ba2f8a4