net/packet: check TX_RING fragments before memory accounting

Summary

CVECVE-2026-99835
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:16 UTC
Updated2026-12-01 06:17:52 UTC
DescriptionIn 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]

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 7e6e5dbf857af7d3a1cb85338e2969911bfcaf64 git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 720b14bb971d0216c135f43d146b8bc3c231e296 git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 293fd9536355b97ae5f72e714adea05f6b3be14c git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 fe11c2ef56767e5cd748030fe38e8d17101b6d13 git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2 git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 7d6eccadf776e56f13873b1b8de4e7583b51fc02 git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 a7b2e3bac0e1bcde13810f6b9b20408a89117deb git Not specified
CNA Linux Linux affected 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 dc4dd12f80e499dc034710cd8195489abcf0b059 git Not specified
CNA Linux Linux affected 2.6.31 Not specified
CNA Linux Linux unaffected 2.6.31 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/a7b2e3bac0e1bcde13810f6b9b20408a89117deb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7d6eccadf776e56f13873b1b8de4e7583b51fc02 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/720b14bb971d0216c135f43d146b8bc3c231e296 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7e6e5dbf857af7d3a1cb85338e2969911bfcaf64 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dc4dd12f80e499dc034710cd8195489abcf0b059 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fe11c2ef56767e5cd748030fe38e8d17101b6d13 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/293fd9536355b97ae5f72e714adea05f6b3be14c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report