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]

Severity (CVSS)

Base score7.8
SeverityHigh
VersionCVSS 3.1
VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Provided byCNA

Affected products

VendorProductVersions
LinuxLinux69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <7e6e5dbf857af7d3a1cb85338e2969911bfcaf64 [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <720b14bb971d0216c135f43d146b8bc3c231e296 [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <293fd9536355b97ae5f72e714adea05f6b3be14c [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <fe11c2ef56767e5cd748030fe38e8d17101b6d13 [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2 [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <7d6eccadf776e56f13873b1b8de4e7583b51fc02 [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <a7b2e3bac0e1bcde13810f6b9b20408a89117deb [affected]; 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 to <dc4dd12f80e499dc034710cd8195489abcf0b059 [affected]
LinuxLinux2.6.31 [affected]; 0 to <2.6.31 [unaffected]; 5.10.275 to <=5.10.* [unaffected]; 5.15.226 to <=5.15.* [unaffected]; 6.1.193 to <=6.1.* [unaffected]; 6.6.163 to <=6.6.* [unaffected]; 6.12.117 to <=6.12.* [unaffected]; 6.18.63 to <=6.18.* [unaffected]; 7.3.4 to <=7.3.* [unaffected]; 7.4-rc1 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 01 Dec 2026 08:04 UTC.