Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99835

published high CVSS 3.1 · 7.8

net/packet: check TX_RING fragments before memory accounting

Published
30 Nov 2026, 13:17:29 UTC
Updated
01 Dec 2026, 05:43:40 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 7e6e5dbf857af7d3a1cb85338e2969911bfcaf64 · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 720b14bb971d0216c135f43d146b8bc3c231e296 · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 293fd9536355b97ae5f72e714adea05f6b3be14c · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < fe11c2ef56767e5cd748030fe38e8d17101b6d13 · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2 · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 7d6eccadf776e56f13873b1b8de4e7583b51fc02 · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < a7b2e3bac0e1bcde13810f6b9b20408a89117deb · 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < dc4dd12f80e499dc034710cd8195489abcf0b059 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.31 (affected) · 0 to < 2.6.31 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: net/packet: check TX_RING fragments before memory accounting tpacket_fill_skb() adds the full non-linear payload length to skb->truesize and sk_wmem_alloc before checking MAX_SKB_FRAGS. With PACKET_VNET_HDR, userspace can submit a ring-sized frame even when it greatly exceeds the device MTU. A near-INT_MAX frame can saturate sk_wmem_alloc before the fragment loop rejects it. A subsequent refcount_add(0x40000001) can temporarily turn REFCOUNT_SATURATED into 1. A concurrent TX completion can then drop that apparent last reference and free the still-live packet socket before refcount_warn_saturate() restores the counter. Check that the remaining payload fits in MAX_SKB_FRAGS pages before accounting it. Include the initial page offset in the calculation, and move the existing -EFAULT handling out of the fragment loop. This preserves the accepted packet sizes and error code while preventing an invalid frame from injecting an oversized byte charge. [edumazet: use net_warn_ratelimited() instead of pr_err(), add a Fixes: tag]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 7e6e5dbf857af7d3a1cb85338e2969911bfcaf64 (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 720b14bb971d0216c135f43d146b8bc3c231e296 (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 293fd9536355b97ae5f72e714adea05f6b3be14c (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < fe11c2ef56767e5cd748030fe38e8d17101b6d13 (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2 (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < 7d6eccadf776e56f13873b1b8de4e7583b51fc02 (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < a7b2e3bac0e1bcde13810f6b9b20408a89117deb (affected · git)69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to < dc4dd12f80e499dc034710cd8195489abcf0b059 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.31 (affected)0 to < 2.6.31 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

net/packet: check TX_RING fragments before memory accounting

Provenance

Schema
5.2
Searchable
yes
Content hash
ed0f0d19751636afa93ba7170361ba2ad116438fba6b64b1583a68f58093c4c6
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected