CVE-2026-99835

Source
https://cve.org/CVERecord?id=CVE-2026-99835
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99835.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99835
Downstream
Published
2026-11-30T13:17:29Z
Modified
2026-11-30T15:02:31Z
Summary
net/packet: check TX_RING fragments before memory accounting
Details

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]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99835.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1
Fixed
7e6e5dbf857af7d3a1cb85338e2969911bfcaf64
Fixed
720b14bb971d0216c135f43d146b8bc3c231e296
Fixed
293fd9536355b97ae5f72e714adea05f6b3be14c
Fixed
fe11c2ef56767e5cd748030fe38e8d17101b6d13
Fixed
3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2
Fixed
7d6eccadf776e56f13873b1b8de4e7583b51fc02
Fixed
a7b2e3bac0e1bcde13810f6b9b20408a89117deb
Fixed
dc4dd12f80e499dc034710cd8195489abcf0b059

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99835.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.31
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99835.json"