# CVE-2026-99835: net/packet: check TX_RING fragments before memory accounting

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:29.759Z
- Modified: 2026-12-01T06:17:52.710Z
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before 7e6e5dbf857af7d3a1cb85338e2969911bfcaf64; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before 720b14bb971d0216c135f43d146b8bc3c231e296; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before 293fd9536355b97ae5f72e714adea05f6b3be14c; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before fe11c2ef56767e5cd748030fe38e8d17101b6d13; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before 3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before 7d6eccadf776e56f13873b1b8de4e7583b51fc02; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before a7b2e3bac0e1bcde13810f6b9b20408a89117deb; from 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 before dc4dd12f80e499dc034710cd8195489abcf0b059; 2.6.31 (not affected: before 2.6.31; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/7e6e5dbf857af7d3a1cb85338e2969911bfcaf64>
- <https://git.kernel.org/stable/c/720b14bb971d0216c135f43d146b8bc3c231e296>
- <https://git.kernel.org/stable/c/293fd9536355b97ae5f72e714adea05f6b3be14c>
- <https://git.kernel.org/stable/c/fe11c2ef56767e5cd748030fe38e8d17101b6d13>
- <https://git.kernel.org/stable/c/3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2>
- <https://git.kernel.org/stable/c/7d6eccadf776e56f13873b1b8de4e7583b51fc02>
- <https://git.kernel.org/stable/c/a7b2e3bac0e1bcde13810f6b9b20408a89117deb>
- <https://git.kernel.org/stable/c/dc4dd12f80e499dc034710cd8195489abcf0b059>

## Sources

- CVE List: [CVE-2026-99835](https://www.cve.org/CVERecord?id=CVE-2026-99835), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-99835](https://nvd.nist.gov/vuln/detail/CVE-2026-99835), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-99835 · Whole record: https://cve.day/CVE-2026-99835.json · Rebuilt by cve.day 2026-12-01T06:32:24.409Z
