{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143142",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.353Z",
        "datePublished": "2026-12-03T09:19:48.118Z",
        "dateUpdated": "2026-12-04T03:29:38.624Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:29:38.624Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipvs: fix protocol data lifetime during namespace teardown\n\nIPVS frees its per-net protocol data before control cleanup cancels\ndefense work and unregisters the sysctl table. A defense worker can load\na protocol data pointer, then namespace cleanup can unlink and free that\nobject before the worker dereferences pd->pp or pd->next. The worker's\nsecuretcp_lock does not serialize with protocol cleanup. A concurrent\ndefense-mode sysctl write can reach the same timeout update path.\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in ip_vs_protocol_timeout_change\n  Workqueue: events_long defense_work_handler\n  Call Trace:\n   ip_vs_protocol_timeout_change+0x1b4/0x1e0\n   update_defense_level+0x63e/0xd80\n   defense_work_handler+0x1e/0xc0\n  Allocated by task 125:\n   ip_vs_protocol_net_init+0xda/0x2f0\n   __ip_vs_init+0x16b/0x240\n   setup_net+0xfc/0x310\n  Freed by task 12:\n   ip_vs_protocol_net_cleanup+0x1d6/0x2e0\n   __ip_vs_cleanup_batch+0x7d/0x100\n   cleanup_net+0x38c/0x770\n\nRun control cleanup before protocol cleanup so that defense work and\nactive sysctl handlers have finished before their protocol data is freed.\nInitialize protocols before exposing the control interface, and unwind\nin reverse order, to enforce the same lifetime on initialization failure.\nProtocol initialization and exit do not depend on control state."
                }
            ],
            "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 - ip_vs_protocol_timeout_change() is reached from defense_work_handler() via update_defense_level() and from proc_do_defense_mode() on a write to net/ipv4/vs/secure_tcp, while cleanup_net calls __ip_vs_cleanup_batch() and ip_vs_protocol_net_cleanup() kfree()s that ip_vs_proto_data. No packet field is parsed; the attacker creates the netns and drops it.\nAC:L - The attacker writes amemthresh=0 then secure_tcp=1 so old_secure_tcp stays below 2, then raises amemthresh so the next defense_work_handler() takes the nomem branch and calls ip_vs_protocol_timeout_change(); dropping the netns runs cleanup_net against that worker. ip_vs_protocol_net_cleanup() does not take securetcp_lock, and a concurrent secure_tcp write enters the same function. Both sides are the attacker's and can be repeated.\nPR:L - unshare_nsproxy_namespaces() grants CLONE_NEWNET to CAP_SYS_ADMIN in the caller's user namespace, which an unprivileged user gets from CLONE_NEWUSER. net_ctl_permissions() then allows writing the mode-0644 secure_tcp and amemthresh sysctls with CAP_NET_ADMIN in that net's user_ns; ip_vs_control_net_init_sysctl() does not force those two entries to 0444.\nUI:N - The attacker writes their own net/ipv4/vs sysctls and drops their own netns; defense_work_handler() is queued by ip_vs_control_net_init_sysctl() and cleanup_net is scheduled from __put_net with no other user involved.\nS:U - The use-after-free corrupts the host slab that held this netns's ip_vs_proto_data; it stays inside the kernel and does not cross a guest-to-host or IOMMU boundary.\nC:H - After ip_vs_protocol_net_cleanup() kfree()s the object, ip_vs_protocol_timeout_change() still loads pd->pp and follows pd->next. Reclaiming that slab supplies the pp pointer and the timeout_change function pointer, so the indirect call can read arbitrary kernel memory.\nI:H - tcp_timeout_change() writes tcp_states or tcp_states_dos through the freed pd->tcp_state_table, and the walker calls whatever pd->pp->timeout_change points at. A reclaimed ip_vs_proto_data is therefore an indirect call plus a write into the replacement object.\nA:H - The KASAN report is a slab-use-after-free in ip_vs_protocol_timeout_change() on the events_long defense_work_handler queue; a bad pd->pp or pd->next dereference 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/netfilter/ipvs/ip_vs_core.c"
                    ],
                    "versions": [
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "d79875219c85ef029e70732c280e7731bd7c13ee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "0d6446c29960dda45b5ba227921e460268fc1c8c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "0e0ea09b4bb74f472fea3ab9c0ccb696729d9f39",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "adcdf2952ba52e6c3b68dec270a78096a6cedc15",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "3d8230282abfadd000f919c1f6ab7ab9208b1577",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9330419d9aa4f97df412ac9be9fc0388c67dd315",
                            "lessThan": "832aa3e89e806bb2667fe4e656b705f4088b3c9d",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/netfilter/ipvs/ip_vs_core.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.39",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.39",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.276",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "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": "2.6.39",
                                    "versionEndExcluding": "5.10.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.39",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.39",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.39",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.39",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.39",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d79875219c85ef029e70732c280e7731bd7c13ee"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0d6446c29960dda45b5ba227921e460268fc1c8c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0e0ea09b4bb74f472fea3ab9c0ccb696729d9f39"
                },
                {
                    "url": "https://git.kernel.org/stable/c/adcdf2952ba52e6c3b68dec270a78096a6cedc15"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3d8230282abfadd000f919c1f6ab7ab9208b1577"
                },
                {
                    "url": "https://git.kernel.org/stable/c/832aa3e89e806bb2667fe4e656b705f4088b3c9d"
                }
            ],
            "title": "ipvs: fix protocol data lifetime during namespace teardown",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}