Bug 2502395 (CVE-2026-63984) - CVE-2026-63984 kernel: ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompress()
Summary: CVE-2026-63984 kernel: ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompr...
Keywords:
Status: NEW
Alias: CVE-2026-63984
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-19 16:05 UTC by OSIDB Bzimport
Modified: 2026-10-30 13:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:76738 0 None None None 2026-10-07 20:29:16 UTC
Red Hat Product Errata RHSA-2026:76739 0 None None None 2026-10-08 09:50:11 UTC
Red Hat Product Errata RHSA-2026:77218 0 None None None 2026-10-07 06:27:39 UTC
Red Hat Product Errata RHSA-2026:77219 0 None None None 2026-10-08 07:23:14 UTC
Red Hat Product Errata RHSA-2026:83707 0 None None None 2026-10-16 13:30:17 UTC
Red Hat Product Errata RHSA-2026:92993 0 None None None 2026-10-30 06:30:48 UTC
Red Hat Product Errata RHSA-2026:93047 0 None None None 2026-10-30 13:05:49 UTC

Description OSIDB Bzimport 2026-07-19 16:05:53 UTC
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.

Comment 3 Jon Orris 2026-10-07 06:27:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:77218 https://access.redhat.com/errata/RHSA-2026:77218

Comment 4 Jon Orris 2026-10-07 20:29:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:76738 https://access.redhat.com/errata/RHSA-2026:76738

Comment 5 Jon Orris 2026-10-08 07:23:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:77219 https://access.redhat.com/errata/RHSA-2026:77219

Comment 6 Jon Orris 2026-10-08 09:50:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:76739 https://access.redhat.com/errata/RHSA-2026:76739

Comment 7 Jon Orris 2026-10-16 13:30:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:83707 https://access.redhat.com/errata/RHSA-2026:83707

Comment 9 Jon Orris 2026-10-30 06:30:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:92993 https://access.redhat.com/errata/RHSA-2026:92993

Comment 10 Jon Orris 2026-10-30 13:05:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:93047 https://access.redhat.com/errata/RHSA-2026:93047


Note You need to log in before you can comment on or make changes to this bug.