{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143222",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.360Z",
        "datePublished": "2026-12-03T09:20:39.791Z",
        "dateUpdated": "2026-12-04T03:31:17.439Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:31:17.439Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: Remove gc_in_progress check in unix_peek_fpl().\n\nunix_vertex_dead() and unix_peek_fpl() are synchronised\nwith unix_peek_seq to prevent GC from purging a live\nsocket's recvq.\n\nunix_peek_fpl() skips the synchronisation if gc_in_progress\nis false.\n\nHowever, on weakly ordered arch, GC might have already\nstarted working while the write to gc_in_progress is\nbuffered.\n\nThis does not occur on x86.\n\nThis is an unlikely path that happens only when AF_UNIX\nfd is peeked so not worth complicating.\n\nInstead of adding memory barriers in unix_gc() and\nunix_peek_fpl(), let's simply remove the broken short-circuit."
                }
            ],
            "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 - unix_peek_fpl() runs only from unix_peek_fds() during a local recvmsg(MSG_PEEK) on an AF_UNIX socket (unix_stream_recvmsg -> unix_stream_read_generic, or __unix_dgram_recvmsg). The attacker passes the inflight SCM_RIGHTS fds and issues the peek and close locally; no remote protocol message carries the triggering state.\nAC:L - The attacker runs both sides: recvmsg(MSG_PEEK) enters unix_peek_fds() while close() of another AF_UNIX fd calls unix_release_sock() -> unix_schedule_gc() -> unix_gc(). On a weakly ordered CPU, WRITE_ONCE(gc_in_progress, true) stays unpublished until spin_unlock, so unix_peek_fpl()'s READ_ONCE returns early, unix_peek_seq is not bumped, and unix_scc_dead() keeps the stale unix_vertex_dead() result. The attacker grows the SCC and retries.\nPR:L - socket(AF_UNIX), sendmsg(SCM_RIGHTS), recvmsg(MSG_PEEK) and close() require no capability. Once the inflight graph is cyclic, unix_release_sock() calls unix_schedule_gc(NULL) with no CAP_NET_ADMIN or other check, and unix_peek_fpl() has none either.\nUI:N - The attacker creates the cyclic SCM_RIGHTS sockets, peeks one, and closes another to queue unix_gc(); no second user has to mount, open, or accept.\nS:U - The use-after-free stays in the same kernel: unix_gc() frees an AF_UNIX receive queue that unix_stream_read_generic() is reading, which is local privilege escalation rather than a VM or IOMMU boundary crossing.\nC:H - Skipping the unix_peek_seq bump lets unix_scc_dead() honor a stale unix_vertex_dead() result and unix_collect_skb() plus __skb_queue_purge_reason() free the still-live socket's sk_receive_queue. unix_stream_read_generic() obtained that skb with skb_peek(), which takes no reference, so skb_copy_datagram_msg() copies from the freed buffer to userspace.\nI:H - The same stream recv then writes UNIXCB(skb).consumed and calls __skb_unlink() and consume_skb() on the skb unix_gc() already freed, a write and double-free of the reclaimed object. The destructor also fputs SCM_RIGHTS files that were still queued on the live socket.\nA:H - Reading or unlinking that freed skb in unix_stream_read_generic(), or the double-free in consume_skb(), oopses the kernel. The failure the fix describes is unix_gc() purging a still-live socket's receive queue."
                        }
                    ]
                }
            ],
            "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": "e3dd56fb5683ba80bf8d7a2f9aa21cfa53f05202",
                            "lessThan": "48ce9d1536007b25b757e764f4aab9df8b84bf5f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "72cf49ad50c16270b52bc512d9c2df5743922968",
                            "lessThan": "330ca878e73609861c190d73854de0f81b26e938",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e5b31d988a41549037b8d8721a3c3cae893d8670",
                            "lessThan": "6f91634cb38a76be8464bb3ebdf16b0a7b496706",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e5b31d988a41549037b8d8721a3c3cae893d8670",
                            "lessThan": "0edbc945eb9edd0086f25b151a79cfe4adc0dfa8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "980999a96e1ad043f1197606e5d637219cb102b9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3106f326f67c03dd9da4ca64663d11e40138cf40",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "37dd7ab332396eb8dd80b2dc7ea4b61abf767436",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.12.92",
                            "lessThan": "6.12.120",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.23",
                            "lessThan": "6.18.66",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.183",
                            "lessThan": "6.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.142",
                            "lessThan": "6.7",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.19.10",
                            "lessThan": "6.20",
                            "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": "7.0",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.0",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "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.12.92",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18.23",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.0",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.0",
                                    "versionEndExcluding": "7.4-rc3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.183"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.142"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.19.10"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/48ce9d1536007b25b757e764f4aab9df8b84bf5f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/330ca878e73609861c190d73854de0f81b26e938"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6f91634cb38a76be8464bb3ebdf16b0a7b496706"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0edbc945eb9edd0086f25b151a79cfe4adc0dfa8"
                }
            ],
            "title": "af_unix: Remove gc_in_progress check in unix_peek_fpl().",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}