From mboxrd@z Thu Jan 1 00:00:00 1970 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 09CA2312837 for ; Wed, 24 Jun 2026 16:34:42 +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=1782318883; cv=none; b=jHmhtjhIwr9MGd0ixuTpsOfOJ1E0ndqbhSJRR/UbNFqjh2zaJZpt7R44v2NlfsbViHuwmhcqEZbD/DW0ahDWRXWd4AHZRKId6fW90807EkqHg5I2MnrCg5XurTZCaJDScdHJUQVJQuUEQdNFAU6KsrYyC8F2gYzjlSRgOe2IPlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318883; c=relaxed/simple; bh=sNiqeRZYfGRjnxuuwi5tEF02yBVjLZh6D0r3oBsiLKY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n+i2z1uSa2Ie/C9Hi843sohR7bOBh4xlwRfrevF1cxVGFlN5/GGlQFEbSmBjhdrH6QwkI2ho3s7h75uYm6DgFkYOqQJMp4AUIHMHh3mxVlWdxHYl0RCYVLA8FYupSIuyaYAqExCBAqrGADTnm45LN24Pm/VeNLR4TPMFC4Zr/6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UJBStRE5; 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="UJBStRE5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F9FA1F000E9; Wed, 24 Jun 2026 16:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318881; bh=XobkgXmssg4RBZnoGaJSxZKfS8//HMvDs5U6XzaUHA4=; h=From:To:Cc:Subject:Date:Reply-To; b=UJBStRE5zL+2+JG7m/TbTDHIpex+VW6Hay53bYalS+Y71VkiadYLvZFWoyRf/b6No StO97Ua/U7KiDwaef7zjS5kkl+QQgxouYqjOhCX8eJxFgRZSWAmU9FO4q2ykVW+n+c RyfFQXkPydakUenwhlOdJd0RQBN0aiXm+WAUQkK0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53005: af_unix: Drop all SCM attributes for SOCKMAP. Date: Wed, 24 Jun 2026 17:30:29 +0100 Message-ID: <2026062448-CVE-2026-53005-b325@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=4855; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=78gpYkc4QiiROIzR0tNFTQJUliT8dJQ3BT31CxrRqpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rH/irlo83nyy/MR8OR5N/RtfXWor/G3K523Qeqm55 nFOGvPhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIezeG+Z6mu3nSfWT71kz7 +CYwS6m/bMGqqwzz0w9Za2v3xd0tVEqevGjyXNGiYIcIAA== 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: af_unix: Drop all SCM attributes for SOCKMAP. SOCKMAP can hide inflight fd from AF_UNIX GC. When a socket in SOCKMAP receives skb with inflight fd, sk_psock_verdict_data_ready() looks up the mapped socket and enqueue skb to its psock->ingress_skb. Since neither the old nor the new GC can inspect the psock queue, the hidden skb leaks the inflight sockets. Note that this cannot be detected via kmemleak because inflight sockets are linked to a global list. In addition, SOCKMAP redirect breaks the Tarjan-based GC's assumption that unix_edge.successor is always alive, which is no longer true once skb is redirected, resulting in use-after-free below. [0] Moreover, SOCKMAP does not call scm_stat_del() properly, so unix_show_fdinfo() could report an incorrect fd count. sk_msg_recvmsg() does not support any SCM attributes in the first place. Let's drop all SCM attributes before passing skb to the SOCKMAP layer. [0]: BUG: KASAN: slab-use-after-free in unix_del_edges (net/unix/garbage.c:118 net/unix/garbage.c:181 net/unix/garbage.c:251) Read of size 8 at addr ffff888125362670 by task kworker/56:1/496 CPU: 56 UID: 0 PID: 496 Comm: kworker/56:1 Not tainted 7.0.0-rc7-00263-gb9d8b856689d #3 PREEMPT(lazy) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014 Workqueue: events sk_psock_backlog Call Trace: dump_stack_lvl (lib/dump_stack.c:122) print_report (mm/kasan/report.c:379) kasan_report (mm/kasan/report.c:597) unix_del_edges (net/unix/garbage.c:118 net/unix/garbage.c:181 net/unix/garbage.c:251) unix_destroy_fpl (net/unix/garbage.c:317) unix_destruct_scm (./include/net/scm.h:80 ./include/net/scm.h:86 net/unix/af_unix.c:1976) sk_psock_backlog (./include/linux/skbuff.h:?) process_scheduled_works (kernel/workqueue.c:?) worker_thread (kernel/workqueue.c:?) kthread (kernel/kthread.c:438) ret_from_fork (arch/x86/kernel/process.c:164) ret_from_fork_asm (arch/x86/entry/entry_64.S:258) Allocated by task 955: kasan_save_track (mm/kasan/common.c:58 mm/kasan/common.c:78) __kasan_slab_alloc (mm/kasan/common.c:369) kmem_cache_alloc_noprof (mm/slub.c:4539) sk_prot_alloc (net/core/sock.c:2240) sk_alloc (net/core/sock.c:2301) unix_create1 (net/unix/af_unix.c:1099) unix_create (net/unix/af_unix.c:1169) __sock_create (net/socket.c:1606) __sys_socketpair (net/socket.c:1811) __x64_sys_socketpair (net/socket.c:1863 net/socket.c:1860 net/socket.c:1860) do_syscall_64 (arch/x86/entry/syscall_64.c:?) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Freed by task 496: kasan_save_track (mm/kasan/common.c:58 mm/kasan/common.c:78) kasan_save_free_info (mm/kasan/generic.c:587) __kasan_slab_free (mm/kasan/common.c:287) kmem_cache_free (mm/slub.c:6165) __sk_destruct (net/core/sock.c:2282 net/core/sock.c:2384) sk_psock_destroy (./include/net/sock.h:?) process_scheduled_works (kernel/workqueue.c:?) worker_thread (kernel/workqueue.c:?) kthread (kernel/kthread.c:438) ret_from_fork (arch/x86/kernel/process.c:164) ret_from_fork_asm (arch/x86/entry/entry_64.S:258) The Linux kernel CVE team has assigned CVE-2026-53005 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit c63829182c37c2d6d0608976d15fa61ebebe9e6b and fixed in 7.0.10 with commit b34a1d83c74a124c968b5adb25c809db3e2eb86a Issue introduced in 5.15 with commit c63829182c37c2d6d0608976d15fa61ebebe9e6b and fixed in 7.1 with commit 965dc93481d1b80d341bdd16c27b16fe197175ee 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-53005 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/b34a1d83c74a124c968b5adb25c809db3e2eb86a https://git.kernel.org/stable/c/965dc93481d1b80d341bdd16c27b16fe197175ee