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 5968331618C for ; Wed, 24 Jun 2026 16:36:22 +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=1782318983; cv=none; b=ny0M7LAot7w2mfjDalxRPbvcKZQvfnxT7g4XvTAmNRqaRDreBfMvzl/OADqoDr9x8AI1R/Z3Ci8zOzqEKicyHzlkblIAjo7a2SQskH57BFBFPaU20hkqjpmatOX8igcYfjH3BjTEQgyvc6ZhH+d1ycjJM6+iX2jY6yu4Wegd4oY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318983; c=relaxed/simple; bh=arxceSwkkI6MXu+ojjSU5ml577XVCdmWDI8sbdMoBng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TgfoUyHXPhCMppZ9Ww3Zk73JLI8EYKH2wBAzWFWM17pwZP+qvImpED1/379aOHz0D4bWglikJ5WHqdCx3aqg5tZm1F7GwQrdT9AyGfR+lMiUMH8kL4f4nuH+NnluSozaOYgLCebjjb5tKN/T2zc5APRsBMybveJjH7y6W9genxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QajloX+f; 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="QajloX+f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DD521F00A3A; Wed, 24 Jun 2026 16:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318982; bh=jduBa2g+rnBlWGrEr1pO2LSAFO7Qj+izCdL4swFybdA=; h=From:To:Cc:Subject:Date:Reply-To; b=QajloX+fOzwpaNgjduLtENuauysOkt3ZTBBj38xBUdDngtMQYcGmVVEcR9GQYD57T 6DfMPZsJKLxQZg1SAYmyzQ+G0+WI35K0bePQVf4j7qd4VXhOnbq3/0Xd/HqC6qFUgT 8bdS1oKnTArwPlLJ11TYbJeocm9KbgV012m3tP+k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53035: bpf, sockmap: Fix af_unix iter deadlock Date: Wed, 24 Jun 2026 17:30:59 +0100 Message-ID: <2026062455-CVE-2026-53035-1c5a@gregkh> X-Mailer: git-send-email 2.54.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=4192; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S8cfDaUiPR/XukTboeR6QBJC6xS2qHurFtVi9TnSHsI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bMxrLR7aWRtaKWgo1/k1OP095nu89dzMuxzttr/+3 GI6vSOyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZStpNhwTWTt57Pm00OpIS+ OsRede1XW/vUeoYFe1WrgvOqFh0Xj7xxSP3VSYuLasG9AA== 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: bpf, sockmap: Fix af_unix iter deadlock bpf_iter_unix_seq_show() may deadlock when lock_sock_fast() takes the fast path and the iter prog attempts to update a sockmap. Which ends up spinning at sock_map_update_elem()'s bh_lock_sock(): WARNING: possible recursive locking detected test_progs/1393 is trying to acquire lock: ffff88811ec25f58 (slock-AF_UNIX){+...}-{3:3}, at: sock_map_update_elem+0xdb/0x1f0 but task is already holding lock: ffff88811ec25f58 (slock-AF_UNIX){+...}-{3:3}, at: __lock_sock_fast+0x37/0xe0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(slock-AF_UNIX); lock(slock-AF_UNIX); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by test_progs/1393: #0: ffff88814b59c790 (&p->lock){+.+.}-{4:4}, at: bpf_seq_read+0x59/0x10d0 #1: ffff88811ec25fd8 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: bpf_seq_read+0x42c/0x10d0 #2: ffff88811ec25f58 (slock-AF_UNIX){+...}-{3:3}, at: __lock_sock_fast+0x37/0xe0 #3: ffffffff85a6a7c0 (rcu_read_lock){....}-{1:3}, at: bpf_iter_run_prog+0x51d/0xb00 Call Trace: dump_stack_lvl+0x5d/0x80 print_deadlock_bug.cold+0xc0/0xce __lock_acquire+0x130f/0x2590 lock_acquire+0x14e/0x2b0 _raw_spin_lock+0x30/0x40 sock_map_update_elem+0xdb/0x1f0 bpf_prog_2d0075e5d9b721cd_dump_unix+0x55/0x4f4 bpf_iter_run_prog+0x5b9/0xb00 bpf_iter_unix_seq_show+0x1f7/0x2e0 bpf_seq_read+0x42c/0x10d0 vfs_read+0x171/0xb20 ksys_read+0xff/0x200 do_syscall_64+0x6b/0x3a0 entry_SYSCALL_64_after_hwframe+0x76/0x7e The Linux kernel CVE team has assigned CVE-2026-53035 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 6.1.175 with commit bd3592129f24243713673a07225cf1f15a9bb835 Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 6.6.141 with commit 3cef33b9813b78f227942572fb317afcd5c9ac94 Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 6.12.91 with commit 87828b380956d4986f59f2c086e0b09b3e6cdaae Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 6.18.33 with commit 527057ebe8076dfbcaef51195ff1b7508646be2c Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 7.0.10 with commit 66d9fab4565eafe1afe7ba0581f79b76073b60fa Issue introduced in 5.15 with commit 2c860a43dd77f969bb959336a2f743d7103a8f63 and fixed in 7.1 with commit 4d328dd695383224aa750ddee6b4ad40c0f8d205 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-53035 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/unix/af_unix.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/bd3592129f24243713673a07225cf1f15a9bb835 https://git.kernel.org/stable/c/3cef33b9813b78f227942572fb317afcd5c9ac94 https://git.kernel.org/stable/c/87828b380956d4986f59f2c086e0b09b3e6cdaae https://git.kernel.org/stable/c/527057ebe8076dfbcaef51195ff1b7508646be2c https://git.kernel.org/stable/c/66d9fab4565eafe1afe7ba0581f79b76073b60fa https://git.kernel.org/stable/c/4d328dd695383224aa750ddee6b4ad40c0f8d205