{"id":"CVE-2026-98950","aliases":["CVE-2026-98950"],"related":[],"kind":"vulnerability","state":"published","title":"flow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nflow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()\n\nbpf_flow_dissect() sanitizes the offsets returned by the BPF program\nwith clamp_t(u16, ..., hlen).\n\nIf hlen is bigger than 65535, the upper bound is truncated before\nthe comparison. For instance, with hlen == 65536, both nhoff and\nthoff are forced to zero, even if the program returned sane values.\n\nThis is the same class of bug as the one fixed in commit 99bda1ecbd56\n(\"flow_dissector: avoid u16 truncation of skb->len when computing\nthoff\"). That fix does not cover the BPF path, because\n__skb_flow_dissect() returns early when a BPF flow dissector\nhandles the packet.\n\nstruct bpf_flow_keys stores nhoff and thoff as u16, so cap hlen\nto U16_MAX before clamping.\n\nFound by sashiko while reviewing the commit above.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nflow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()\n\nbpf_flow_dissect() sanitizes the offsets returned by the BPF program\nwith clamp_t(u16, ..., hlen).\n\nIf hlen is bigger than 65535, the upper bound is truncated before\nthe comparison. For instance, with hlen == 65536, both nhoff and\nthoff are forced to zero, even if the program returned sane values.\n\nThis is the same class of bug as the one fixed in commit 99bda1ecbd56\n(\"flow_dissector: avoid u16 truncation of skb->len when computing\nthoff\"). That fix does not cover the BPF path, because\n__skb_flow_dissect() returns early when a BPF flow dissector\nhandles the packet.\n\nstruct bpf_flow_keys stores nhoff and thoff as u16, so cap hlen\nto U16_MAX before clamping.\n\nFound by sashiko while reviewing the commit above.","source":"cvelist"}],"published":"2026-10-23T12:19:09.890Z","modified":"2026-10-30T13:21:32.563Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"46d21495f633e38d40857401504ee51c56ffed2a","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"6267f8304cbd9ec9f3f53bd227a733e07131492e","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"99c59062172620a0bac4ae8cf37c83bb78772cdd","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"c44c02c930c6583b235a1937c69ff716c4bb4514","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"3fb5ad2951a6df92c98f4f06cd70f20c50a2eb2a","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"cc18eb0e9941162c03f03f411ed7f6c339d91fa0","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"61b43a51a55929ec040bee3ea51af2121b956d05","status":"affected"},{"type":"git","introduced":"d58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9","fixed":"f202578efc738b883cfa04889eb97328914265a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.20","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.20","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.11","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/46d21495f633e38d40857401504ee51c56ffed2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6267f8304cbd9ec9f3f53bd227a733e07131492e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99c59062172620a0bac4ae8cf37c83bb78772cdd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c44c02c930c6583b235a1937c69ff716c4bb4514","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3fb5ad2951a6df92c98f4f06cd70f20c50a2eb2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc18eb0e9941162c03f03f411ed7f6c339d91fa0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61b43a51a55929ec040bee3ea51af2121b956d05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f202578efc738b883cfa04889eb97328914265a7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98950","url":"https://www.cve.org/CVERecord?id=CVE-2026-98950","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:29.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98950","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98950","licence":"Public domain","modified":"2026-10-30T13:21:32.563Z"}],"updatedAt":"2026-11-25T22:59:46.920Z","epss":{"score":0.0022,"percentile":0.13413,"date":"2026-12-02T12:00:21.000Z"}}