{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99835",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.437Z",
        "datePublished": "2026-11-30T13:17:29.759Z",
        "dateUpdated": "2026-12-01T05:43:40.090Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:43:40.090Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: check TX_RING fragments before memory accounting\n\ntpacket_fill_skb() adds the full non-linear payload length to\nskb->truesize and sk_wmem_alloc before checking MAX_SKB_FRAGS. With\nPACKET_VNET_HDR, userspace can submit a ring-sized frame even when it\ngreatly exceeds the device MTU.\n\nA near-INT_MAX frame can saturate sk_wmem_alloc before the fragment\nloop rejects it. A subsequent refcount_add(0x40000001) can temporarily\nturn REFCOUNT_SATURATED into 1. A concurrent TX completion can then\ndrop that apparent last reference and free the still-live packet\nsocket before refcount_warn_saturate() restores the counter.\n\nCheck that the remaining payload fits in MAX_SKB_FRAGS pages before\naccounting it. Include the initial page offset in the calculation,\nand move the existing -EFAULT handling out of the fragment loop.\nThis preserves the accepted packet sizes and error code while\npreventing an invalid frame from injecting an oversized byte charge.\n\n[edumazet: use net_warn_ratelimited() instead of pr_err(), add a Fixes: tag]"
                }
            ],
            "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 - The oversized length comes from the tp_len field of a frame the local user writes into their own mmap'd PACKET_TX_RING and submits with sendmsg(): packet_sendmsg() -> tpacket_snd() -> tpacket_fill_skb(). There is no remote input: the bad length is set by a local syscall caller.\nAC:L - The attacker sizes the ring themselves (one ~2GB frame, non-memcg-accounted vzalloc) and runs both sides of the race: the 0x40000001-byte refcount_add, and the completion of their own in-flight frames from a qdisc in their own netns. Retries are unlimited because saturated sk_wmem_alloc still lets sock_alloc_send_skb succeed.\nPR:L - packet_create() only checks ns_capable(net->user_ns, CAP_NET_RAW), so an unprivileged user gets it with unshare -Urn. PACKET_VNET_HDR, PACKET_TX_RING, PACKET_LOSS and bringing up lo/veth in that netns need no init-namespace privilege.\nUI:N - The attacker sets up the socket and ring, sends the frames, and triggers the racing TX completions entirely through their own syscalls. No other user has to do anything.\nS:U - The freed object is the attacker's own packet_sock in kernel memory. Exploiting it is ordinary local kernel privilege escalation, with no VM or IOMMU boundary crossed.\nC:H - When the wrapped sk_wmem_alloc reaches 0 through tpacket_ubuf_complete()->sk_free() (or sock_wfree() on older trees), __sk_free() kfree()s a packet_sock the fd still uses. That socket use-after-free can be reclaimed with attacker-controlled data to read kernel memory.\nI:H - After the early free, refcount_warn_saturate() writes REFCOUNT_SATURATED into the freed sock, and tpacket_snd() and later fd operations keep writing to the stale packet_sock (pg_vec_lock, tx_ring state). This is a write-after-free that can be used to hijack control flow.\nA:H - The use-after-free can oops the kernel. Even without the race, the first ~2GB frame deterministically saturates sk_wmem_alloc with a refcount WARN. It also permanently leaks the socket and its ~2GB unaccounted ring, because packet_free_pg_vec_work() re-queues forever, and repeating this exhausts memory."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/packet/af_packet.c"
                    ],
                    "versions": [
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "7e6e5dbf857af7d3a1cb85338e2969911bfcaf64",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "720b14bb971d0216c135f43d146b8bc3c231e296",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "293fd9536355b97ae5f72e714adea05f6b3be14c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "fe11c2ef56767e5cd748030fe38e8d17101b6d13",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "7d6eccadf776e56f13873b1b8de4e7583b51fc02",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "a7b2e3bac0e1bcde13810f6b9b20408a89117deb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1",
                            "lessThan": "dc4dd12f80e499dc034710cd8195489abcf0b059",
                            "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/packet/af_packet.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.31",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.31",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "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:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.31",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/7e6e5dbf857af7d3a1cb85338e2969911bfcaf64"
                },
                {
                    "url": "https://git.kernel.org/stable/c/720b14bb971d0216c135f43d146b8bc3c231e296"
                },
                {
                    "url": "https://git.kernel.org/stable/c/293fd9536355b97ae5f72e714adea05f6b3be14c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fe11c2ef56767e5cd748030fe38e8d17101b6d13"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7d6eccadf776e56f13873b1b8de4e7583b51fc02"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a7b2e3bac0e1bcde13810f6b9b20408a89117deb"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dc4dd12f80e499dc034710cd8195489abcf0b059"
                }
            ],
            "title": "net/packet: check TX_RING fragments before memory accounting",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}