CVE-2026-99636
net: reject a negative TCP header offset in qdisc_pkt_len_segs_init()
- CVSS
- —
- EPSS
- 0.20% (p10)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-23
- Product
- Linux Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: reject a negative TCP header offset in qdisc_pkt_len_segs_init() qdisc_pkt_len_segs_init() stores skb_transport_offset(), or the inner offset, in the unsigned hdr_len. A header in front of skb->data gives a negative offset. For an offset a little below zero, pskb_may_pull() gets a small length and succeeds. Then a 64-bit kernel reads the TCP header far after the skb and can crash. Further below zero pskb_may_pull() fails. Commit 28a57fb2c5df ("net: iptunnel: fix stale transport header during tunnel decapsulation") fixed one source of such offsets. Other code that removes bytes from the front of a packet can leave the same stale header. Return SKB_DROP_REASON_SKB_BAD_GSO for a negative offset in the TCP branch. SKB_GSO_UDP_L4 and the other GSO types read no header and still get a wrong qdisc_pkt_len(). On a 64-bit kernel only packets that cause the read after the skb today get a new result. Then __dev_queue_xmit() drops them and returns -EINVAL, but sch_handle_ingress() ignores the result. Their content can be valid. Thus the code that leaves the header stale needs its own fix.
Fixed in
35d2d6e5ac0d22428b2a0216061f3330c095393c · 6.12.118 · 6.6.163 · 6.7 · 7.1 · 7.3.5 · 765af9e95c840fcbbecf34ca1e787daba8eac569 · 93c181f2d0e08c35be9be37db1722c1aae60ee95 · d88be0067857b68df06a33cc056c9f05101c09d4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.12.114, <6.12.118 | 6.12.118 |
| Linux | Kernel | >=6.6.160, <6.6.163 | 6.6.163 |
| Linux | Kernel | >=7.0.10, <7.1 | 7.1 |
| Linux | Kernel | >=7.1.0, <7.3.5 | 7.3.5 |
| vendor | Linux | >=5895cfc76924a629c6eaa5e5f049de642860045f, <93c181f2d0e08c35be9be37db1722c1aae60ee95 | 93c181f2d0e08c35be9be37db1722c1aae60ee95 |
| vendor | Linux | >=6.12.114, <6.12.118 | 6.12.118 |
| vendor | Linux | >=6.6.160, <6.6.163 | 6.6.163 |
| vendor | Linux | >=6.6.160, <6.7 | 6.7 |
| vendor | Linux | >=7.0.10, <7.1 | 7.1 |
| vendor | Linux | >=7564dc804d8289d2e5c6edb8173754051b71bff4, <d88be0067857b68df06a33cc056c9f05101c09d4 | d88be0067857b68df06a33cc056c9f05101c09d4 |
| vendor | Linux | >=7fb4c19670110f052c04e1ec1d2b953b9f4f57e4, <35d2d6e5ac0d22428b2a0216061f3330c095393c | 35d2d6e5ac0d22428b2a0216061f3330c095393c |
| vendor | Linux | >=7fb4c19670110f052c04e1ec1d2b953b9f4f57e4, <765af9e95c840fcbbecf34ca1e787daba8eac569 | 765af9e95c840fcbbecf34ca1e787daba8eac569 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/d88be0067857b68df06a33cc056c9f05101c09d4 other
- https://git.kernel.org/stable/c/765af9e95c840fcbbecf34ca1e787daba8eac569 other
- https://git.kernel.org/stable/c/35d2d6e5ac0d22428b2a0216061f3330c095393c other
- https://git.kernel.org/stable/c/93c181f2d0e08c35be9be37db1722c1aae60ee95 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99636.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99636 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package