# CVE-2026-99835

- Bağlantı: https://www.allsafe.com.tr/cve-2026-99835/
- Yayımlanma: 2026-11-30T17:20:16+03:00
- Yazar: Postmaster

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]

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-99835)
