{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143223","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.360Z","datePublished":"2026-12-03T09:20:40.415Z","dateUpdated":"2026-12-04T03:31:20.961Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:31:20.961Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: Convert unsigned long to u64 for GC.\n\nLim Chanyoun reported that unix_vertex_max_scc_index could\nwrap around on 32-bit kernels, which confuses GC into purging\na live socket receive queue.\n\nI apparently designed GC with u64 in mind to avoid wraparound. [0]\n\nLet's make it true on 32-bit kernels.\n\nNote that unix_vertex.{out_degree,index} are converted for\nconsistency; they are bounded by the number of allocated\nobjects and do not exceed UINT_MAX on 32-bit kernels."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - sendmsg(SCM_RIGHTS) on an AF_UNIX socket reaches unix_add_edge() via unix_stream_sendmsg/unix_dgram_sendmsg, scm_stat_add(), and unix_add_edges(); that is the function that does vertex->scc_index = ++unix_vertex_max_scc_index. The counter is local syscall state, and no remote protocol message carries it.\nAC:L - A 32-bit attacker holds one self-referential unix fd so unix_graph_state stays UNIX_GRAPH_CYCLIC and unix_gc() calls unix_walk_scc_fast(), which does not reset unix_vertex_max_scc_index (only unix_walk_scc() does). Further SCM_RIGHTS sends to a non-inflight peer then wrap the unsigned long increment in unix_add_edge() onto a live vertex's scc_index. The attacker produces that state.\nPR:L - socket(), sendmsg(SCM_RIGHTS), recvmsg(), and close() need no capability. too_many_unix_fds() only fails once user->unix_inflight exceeds RLIMIT_NOFILE, and the wrap loop stays under it. Any unprivileged process, including in a user namespace, can run this.\nUI:N - The same process creates the socketpair, passes the fds, closes the inflight socket so file_count() equals vertex->out_degree, and later recvmsg(MSG_OOB) on the fd it reads back. No other user mounts, opens, or accepts anything.\nS:U - unix_collect_skb() frees the skb and unix_stream_recv_urg() reuses the dangling unix_sock.oob_skb in the same kernel address space. This is kernel memory corruption in the caller's security domain, not a guest-to-host or IOMMU crossing.\nC:H - queue_oob() stores the skb in both sk_receive_queue and unix_sock.oob_skb. unix_collect_skb() splice-purges that live queue and does not clear oob_skb, so unix_stream_recv_urg() hands the freed skb to skb_copy_datagram_msg(); MSG_PEEK repeats the read from a groomed data pointer.\nI:H - unix_stream_recv_urg() writes UNIXCB(oob_skb).consumed into the freed skb and, without MSG_PEEK, __skb_unlink() does WRITE_ONCE(next->prev, prev) and WRITE_ONCE(prev->next, next) through the groomed oob_skb->prev pointer.\nA:H - unix_walk_scc_fast() calls unix_vertex_dead(), the collided scc_index makes a still-reachable socket look dead, and unix_collect_skb() frees its queued skbs. The following oob_skb->prev load in unix_stream_recv_urg() faults and oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/unix/garbage.c"],"versions":[{"version":"4090fa373f0e763c43610853d2774b5979915959","lessThan":"f431faaff8f316d7e19eee5930cccb29d415718a","status":"affected","versionType":"git"},{"version":"4090fa373f0e763c43610853d2774b5979915959","lessThan":"a7ae91388510d6e3bedda522a4c695740c3dd73b","status":"affected","versionType":"git"},{"version":"4090fa373f0e763c43610853d2774b5979915959","lessThan":"d5f898d4c47217ce42506698a3a98741393217b7","status":"affected","versionType":"git"},{"version":"5dfd283f4651d04dbb70ceb9ae5c4a30eda3c52a","status":"affected","versionType":"git"},{"version":"de7921631ff323369aa63a4324695ab54ea4047e","status":"affected","versionType":"git"},{"version":"6.1.141","lessThan":"6.2","status":"affected","versionType":"semver"},{"version":"6.6.93","lessThan":"6.7","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/unix/garbage.c"],"versions":[{"version":"6.10","status":"affected"},{"version":"0","lessThan":"6.10","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.141"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.93"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/f431faaff8f316d7e19eee5930cccb29d415718a"},{"url":"https://git.kernel.org/stable/c/a7ae91388510d6e3bedda522a4c695740c3dd73b"},{"url":"https://git.kernel.org/stable/c/d5f898d4c47217ce42506698a3a98741393217b7"}],"title":"af_unix: Convert unsigned long to u64 for GC.","x_generator":{"engine":"bippy-1.2.0"}}}}