Kernel Kit / Infix / v26.10.0latest
CVE-2026-53005
7.8highlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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.
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)kernel log · 49 lines
[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: <TASK> 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) </TASK> 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)
Published 2026-06-24NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References 6
- git.kernel.org/stable/c/301bdc558a5eb4057473204d35e2608e682aaafb
- git.kernel.org/stable/c/48c41cd2e04af4b2cdef19e2d00994ae82952f14
- git.kernel.org/stable/c/866e69a824b46e682b8fb923be321b585e634874
- git.kernel.org/stable/c/965dc93481d1b80d341bdd16c27b16fe197175ee
- git.kernel.org/stable/c/b34a1d83c74a124c968b5adb25c809db3e2eb86a
- git.kernel.org/stable/c/e0a71cbf0c1906a2eccbe69dd7d7f36fd1511d66
Fable 5.1 · high confidence · 2026-11-05
The 6.18.60 source in this tree already contains the stable backport of the fix for CVE-2026-53005: net/unix/af_unix.c defines unix_orphan_scm() (scm_stat_del + unix_destruct_scm + destructor reset to sock_wfree) and calls it in both SOCKMAP read_skb hooks (unix_read_skb and unix_stream_read_skb) before passing the skb to the psock recv_actor. This is precisely the "drop all SCM attributes before passing skb to the SOCKMAP layer" change the CVE describes, so the vulnerable code path is not in this build.
NVD's range simply does not account for the 6.18.y stable backport.
For context only: the SOCKMAP code is compiled (CONFIG_BPF_SYSCALL=y, sock_map.o/unix_bpf.o built) but nothing in the Infix rootfs or confd uses sockmap, and CONFIG_BPF_UNPRIV_DEFAULT_OFF=y.
Evidence 7
Fix function present: calls scm_stat_del(), unix_destruct_scm() and sets skb->destructor = sock_wfree, dropping fds/pid/creds before SOCKMAP sees the skb
output/build/linux-6.18.60/net/unix/af_unix.c:2094 unix_orphan_scm()
Datagram SOCKMAP read_skb hook calls unix_orphan_scm(sk, skb) before recv_actor()
output/build/linux-6.18.60/net/unix/af_unix.c:2725 unix_read_skb()
Stream SOCKMAP read_skb hook calls unix_orphan_scm(sk, skb) before recv_actor()
output/build/linux-6.18.60/net/unix/af_unix.c:2930 unix_stream_read_skb()
Source is kernel 6.18.60 (stable series carrying the backport)
output/build/linux-6.18.60/Makefile:2-4
CONFIG_BPF_SYSCALL=y, CONFIG_NET_SOCK_MSG=y, BPF_STREAM_PARSER not set — sockmap layer is compiled, so the fix (not feature absence) is what makes this N/A
output/build/linux-6.18.60/.config:118,1551,1605
af_unix.o, unix_bpf.o, sock_map.o, skmsg.o are all built
output/objects.txt:23648-23694
No Infix/Buildroot patch touches af_unix or sockmap; the fix comes from the upstream 6.18.60 tarball
output/build/linux-6.18.60/.applied_patches_list
Version and patches
CVE fixed upstream in 7.0-rc and backported to stable branches (six stable commits referenced by NVD). linux-6.18.60 as unpacked in output/build/linux-6.18.60 contains the backported hunk (unix_orphan_scm and its two call sites in the read_skb hooks). None of the 139 Buildroot/Infix patches touch this code.
Recommendation
No action; document as N/A (fix already present in 6.18.60 via stable backport). Optionally add a Buildroot LINUX_IGNORE_CVES entry or note for CVE-2026-53005 to suppress the NVD match.
Open questions
Could not fetch the referenced stable commits to compare hunks byte-for-byte (no network/git history in the tree); identification is based on the function body and call sites matching the fix description exactly.
Members of Kernel Kit decide. Sign in if you are one.