{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143204",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.359Z",
        "datePublished": "2026-12-03T09:20:28.246Z",
        "dateUpdated": "2026-12-04T03:30:53.140Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:30:53.140Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: Do not allow buggy transitions between ehash and lhash2.\n\nThe following state transitions have long been a playground for\nsyzbot, and recently AI joined in, reporting a lot more bugs.\n\n  * listen() + shutdown() + connect()\n  * connect() + connect(AF_UNSPEC) + listen()\n\nAll the fix attempts would add more code to the fast path, which\nis not worth it.\n\nInstead of playing whack-a-mole with these edge-case bugs,\nlet's disallow these transitions.\n\nNote that unhashed_state is placed in the 4-byte hole after\nicsk_pmtu_cookie.\n\n  $ pahole -C inet_connection_sock vmlinux\n  struct inet_connection_sock {\n  ...\n\t__u32                      icsk_pmtu_cookie;     /*  1208     4 */\n\tunsigned char              unhashed_state;       /*  1212     1 */\n\n\t/* XXX 3 bytes hole, try to pack */"
                }
            ],
            "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 - inet_hash() and __inet_hash_connect(), the functions this fix changes, are reached from listen() via inet_listen() and inet_csk_listen_start(), and from connect() via inet_stream_connect() and tcp_v4_connect(). shutdown() and connect(AF_UNSPEC) reach inet_unhash() through tcp_disconnect(); no TCP segment carries that transition.\nAC:L - The same unprivileged process calls listen(), then shutdown() or connect(AF_UNSPEC), then connect() on one socket while another of its sockets sends SYNs to that address, racing inet_lhash2_lookup()'s RCU walk of sk_nulls_node against the move onto ehash. The attacker creates both sides; TCP needs no extra config.\nPR:L - socket(AF_INET, SOCK_STREAM), bind() of an ephemeral port, listen(), shutdown(), and connect() are allowed for any local user. inet_create() checks CAP_NET_RAW only for SOCK_RAW; these transitions do not need CAP_NET_ADMIN or a user namespace.\nUI:N - The attacker issues listen(), shutdown() or connect(AF_UNSPEC), and connect() on sockets they created, and can connect to their own listener. No other user has to accept, mount, or click.\nS:U - The objects corrupted are this kernel's inet_timewait_sock and sk_buff. The transition does not cross a guest-to-host or IOMMU boundary.\nC:H - inet_lhash2_lookup() scores sockets in compute_score() without checking sk_state and, unlike __inet_lookup_established(), does not restart when the nulls slot mismatches. A walk that follows a rehashed sk_nulls_node into ehash can return a TCP_TIME_WAIT socket with refcounted false; tcp_v4_rcv() then inet_twsk_put()s it and later lookups read the freed twsk.\nI:H - The extra inet_twsk_put() frees a twsk that is still linked in ehash. On the lockless TCP_LISTEN path, tcp_v4_rcv() calls tcp_v4_do_rcv() without bh_lock_sock(); once the socket is TCP_SYN_SENT, tcp_rcv_synsent_state_process() calls tcp_send_synack(), which tcp_rtx_queue_unlink_and_free()s the SYN skb __tcp_transmit_skb() is still writing.\nA:H - Both failures are slab use-after-frees, of a hashed timewait socket and of the skbuff_fclone SYN freed under tcp_update_skb_after_send(), and oops the kernel. The listen/shutdown/connect sequence can be repeated."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "include/net/inet_connection_sock.h",
                        "net/ipv4/inet_connection_sock.c",
                        "net/ipv4/inet_hashtables.c"
                    ],
                    "versions": [
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "79dbec9552ea23ac4429626fa608aff520246d1d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "7d1bb706ffa4c1ef7e06858c91fe9c35b1892be4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "0b29f696c06a21f8bce84345d57ffbe82a11e11b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "8cc3aef0cb198049805ecc061a2cc7b79b0ae43e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12.120",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18.66",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.3.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": [
                        "include/net/inet_connection_sock.h",
                        "net/ipv4/inet_connection_sock.c",
                        "net/ipv4/inet_hashtables.c"
                    ],
                    "versions": [
                        {
                            "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-rc1",
                            "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:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/79dbec9552ea23ac4429626fa608aff520246d1d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7d1bb706ffa4c1ef7e06858c91fe9c35b1892be4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0b29f696c06a21f8bce84345d57ffbe82a11e11b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8cc3aef0cb198049805ecc061a2cc7b79b0ae43e"
                }
            ],
            "title": "tcp: Do not allow buggy transitions between ehash and lhash2.",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}