CVE-2026-63984
ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompress()
Reported by linux · Published July 19, 2026
In the Linux kernel, the following vulnerability has been resolved: ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompress() ipv6_rpl_srh_decompress() computes: outhdr->hdrlen = (((n + 1) * sizeof(struct in6_addr)) >> 3); hdrlen is __u8. For n >= 127 the result exceeds 255 and silently truncates. With n=127 (cmpri=15, cmpre=15, pad=0, hdrlen=16): (128 * 16) >> 3 = 256, truncated to 0 as __u8 The caller in ipv6_rpl_srh_rcv() then places the compressed header at buf + ((ohdr->hdrlen + 1) << 3). With hdrlen=0 this is buf + 8, but the decompressed region occupies buf[0..2055] (8-byte header plus 128 full addresses). The compressed header overlaps the decompressed data, and ipv6_rpl_srh_compress() writes into this overlap, corrupting the routing header of the forwarded packet. The existing guard at exthdrs.c:546 checks (n + 1) > 255, which prevents n+1 from overflowing unsigned char (the segments_left field), but does not prevent the computed hdrlen from overflowing __u8. n=127 passes because 128 <= 255, yet hdrlen=256 does not fit. Tighten the bound to (n + 1) > 127. This caps n at 126, giving hdrlen = (127 * 16) >> 3 = 254, which fits in __u8. The compressed header then lands at buf + ((254 + 1) << 3) = buf + 2040, exactly past the decompressed region (buf[0..2039]). No overlap. 127 segments is well beyond any realistic RPL deployment.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| perf | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
| kernel-livepatch-6.12.94-123.174 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
9 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3, 8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3, 8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3 |
| Linux | Linux | 5.7, 0, 5.10.259 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.94-123.174 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
…and 18 more
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Coalition ESS Score
- Jul 20, 2026 Security Advisory (37 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 9, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (36 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-63984
vulnetix vdb fixes CVE-2026-63984
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-63984/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart