{"id":"CVE-2026-99835","summary":"net/packet: check TX_RING fragments before memory accounting","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: check TX_RING fragments before memory accounting\n\ntpacket_fill_skb() adds the full non-linear payload length to\nskb-\u003etruesize and sk_wmem_alloc before checking MAX_SKB_FRAGS. With\nPACKET_VNET_HDR, userspace can submit a ring-sized frame even when it\ngreatly exceeds the device MTU.\n\nA near-INT_MAX frame can saturate sk_wmem_alloc before the fragment\nloop rejects it. A subsequent refcount_add(0x40000001) can temporarily\nturn REFCOUNT_SATURATED into 1. A concurrent TX completion can then\ndrop that apparent last reference and free the still-live packet\nsocket before refcount_warn_saturate() restores the counter.\n\nCheck that the remaining payload fits in MAX_SKB_FRAGS pages before\naccounting it. Include the initial page offset in the calculation,\nand move the existing -EFAULT handling out of the fragment loop.\nThis preserves the accepted packet sizes and error code while\npreventing an invalid frame from injecting an oversized byte charge.\n\n[edumazet: use net_warn_ratelimited() instead of pr_err(), add a Fixes: tag]","modified":"2026-11-30T15:02:31.840023770Z","published":"2026-11-30T13:17:29.759Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99835.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/293fd9536355b97ae5f72e714adea05f6b3be14c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/720b14bb971d0216c135f43d146b8bc3c231e296"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d6eccadf776e56f13873b1b8de4e7583b51fc02"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e6e5dbf857af7d3a1cb85338e2969911bfcaf64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7b2e3bac0e1bcde13810f6b9b20408a89117deb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc4dd12f80e499dc034710cd8195489abcf0b059"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe11c2ef56767e5cd748030fe38e8d17101b6d13"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99835.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99835"}],"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}