{"id":"CVE-2026-99835","aliases":["CVE-2026-99835"],"related":[],"kind":"vulnerability","state":"published","title":"net/packet: check TX_RING fragments before memory accounting","summary":"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->truesize 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]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->truesize 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]","source":"cvelist"}],"published":"2026-11-30T13:17:29.759Z","modified":"2026-12-01T06:17:52.710Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"7e6e5dbf857af7d3a1cb85338e2969911bfcaf64","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"720b14bb971d0216c135f43d146b8bc3c231e296","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"293fd9536355b97ae5f72e714adea05f6b3be14c","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"fe11c2ef56767e5cd748030fe38e8d17101b6d13","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"7d6eccadf776e56f13873b1b8de4e7583b51fc02","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"a7b2e3bac0e1bcde13810f6b9b20408a89117deb","status":"affected"},{"type":"git","introduced":"69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1","fixed":"dc4dd12f80e499dc034710cd8195489abcf0b059","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.31","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.31","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7e6e5dbf857af7d3a1cb85338e2969911bfcaf64","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/720b14bb971d0216c135f43d146b8bc3c231e296","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/293fd9536355b97ae5f72e714adea05f6b3be14c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe11c2ef56767e5cd748030fe38e8d17101b6d13","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e3fb4bc8db7e59bf06b31df26dfbca56fdfa8d2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d6eccadf776e56f13873b1b8de4e7583b51fc02","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7b2e3bac0e1bcde13810f6b9b20408a89117deb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc4dd12f80e499dc034710cd8195489abcf0b059","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99835","url":"https://www.cve.org/CVERecord?id=CVE-2026-99835","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:40.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99835","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99835","licence":"Public domain","modified":"2026-12-01T06:17:52.710Z"}],"updatedAt":"2026-12-01T06:32:24.409Z","epss":{"score":0.00201,"percentile":0.10517,"date":"2026-12-01T12:00:22.000Z"}}