CVE catalog

CVE-2026-17507

In Bouncy Castle for Java before 1.86, the MLS implementation (org.bouncycastle.mls) holds RFC 9420's uint32 leaf_index in a signed int, so a wire value with the top bit set decodes to a negative numb

[CVE catalog]

Severity
High · CVSS 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.42% · Oct 25, 2026

In Bouncy Castle for Java before 1.86, the MLS implementation (org.bouncycastle.mls) holds RFC 9420's uint32 leaf_index in a signed int, so a wire value with the top bit set decodes to a negative number. That is a legitimate encoding rather than malformed input, and it must still decode, since the MLS interop test vectors round-trip the full range. GroupKeySet.SecretTree.hasLeaf and Group.validateRemove compared the decoded value directly against the tree's leaf count, and a signed comparison treats any negative int as less than a positive bound, so an out-of-range sender passed the membership check. In the hasLeaf case the SenderData of an unprotected PrivateMessage could then drive LeafIndex.directPath through NodeIndex.parent() arithmetic that never reaches the tree root, growing the resulting node list without bound until the JVM exhausted its heap. A single small message from any current group member could therefore deny service to every other member of the group. Both comparisons now interpret the value as unsigned via Integer.toUnsignedLong, rejecting an out-of-range sender however it was encoded; well-formed leaf indices are unaffected.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianbouncycastlesid1.86.2-1fixed
Debianbouncycastleforky1.86-1fixed
Debianbouncycastletrixie1.80-3vulnerable
Debianbouncycastlebookworm1.72-2vulnerable
Cpebc-javaNot reported1.86fixed
Opensusebouncycastletumbleweed1.86-1.1fixed
Susebouncycastlelinux enterprise module for development tools 15 sp71.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise high performance computing 15 sp4-espos1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise high performance computing 15 sp4-ltss1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise high performance computing 15 sp5-espos1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise high performance computing 15 sp5-ltss1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server 15 sp4-ltss1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server 15 sp5-ltss1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server 15 sp6-ltss1.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server for sap applications 15 sp41.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server for sap applications 15 sp51.86-150200.3.41.1fixed
Susebouncycastlelinux enterprise server for sap applications 15 sp61.86-150200.3.41.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianbouncycastlesourcesid1.86-1not yet assignedNot reportedNot reported
Debianbouncycastlesourceforky1.86-1not yet assignedNot reportedNot reported
Debianbouncycastlesourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianbouncycastlesourcebookworm(unfixed)not yet assignedNot reportedNot reported
Cpebc-javacpeNot reported1.86Not reportedNVD-CVE-2026-17507Not reported
Opensusebouncycastlerpmtumbleweed1.86-1.1Not reportedOPENSUSE-SU-2026:12090-1Not reported
Susebouncycastlerpmlinux enterprise module for development tools 15 sp71.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise high performance computing 15 sp4-espos1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise high performance computing 15 sp4-ltss1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise high performance computing 15 sp5-espos1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise high performance computing 15 sp5-ltss1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server 15 sp4-ltss1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server 15 sp5-ltss1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server 15 sp6-ltss1.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server for sap applications 15 sp41.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server for sap applications 15 sp51.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported
Susebouncycastlerpmlinux enterprise server for sap applications 15 sp61.86-150200.3.41.1Not reportedSUSE-SU-2026:4797-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libbcjmail-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbcmail-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbcpg-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbcpkix-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbcprov-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbctls-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

  • [libbcutil-java]Affected

    Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

    • 1.72-2 · all · bookworm

      Affected

      nvd · bouncycastle · debian · bookworm

[openSUSE Tumbleweed]

  • [bouncycastle]Affected

    Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Affected · Fixed: 1.86-1.1

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

  • Source package: [bouncycastle]

    Details (1)
    • 1.85-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.86-1.1

      Version impact unknown

      nvd · bouncycastle · opensuse · tumbleweed

Observed:

References