{"schemaVersion":3,"id":"CVE-2026-17507","aliases":["UBUNTU-CVE-2026-17507","DEBIAN-CVE-2026-17507"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-10-02T07:26:34.739Z","modified":"2026-10-02T17:43:56.738Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS: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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00343,"percentile":0.26395,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-02T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00343,"percentile":0.26395}],"last30":[{"date":"2026-10-02T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00324,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00343,"percentile":0.26395}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-195","name":"Signed to Unsigned Conversion Error","description":"The product uses a signed primitive and performs a cast to an unsigned primitive, which can produce an unexpected value if the value of the signed primitive can not be represented using an unsigned primitive.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/195.html"}],"affected":[{"vendor":"bouncycastle","product":"bc-java","name":"bc-java","label":"bc-java","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.73, < 1.86","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.73, < 1.86","eol":null,"hubHref":"/vendor/bouncycastle/bc-java"},{"vendor":"debian","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/bouncycastle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.86-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.86-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/bouncycastle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"legion of the bouncy castle inc.","product":"bc-java","name":"BC-JAVA","label":"bc-java","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.73, < 1.86","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.73, < 1.86","eol":null,"hubHref":"/vendor/legion_of_the_bouncy_castle_inc/bc-java"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9017507","label":"github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9017507","hostname":"github.com","tags":["Vendor Advisory","REPORT","Patch"]},{"url":"https://github.com/bcgit/bc-java/commit/1eb83471eb01727bfdb944a5a46355cc77d55f44","label":"github.com/bcgit/bc-java/commit/1eb83471eb01727bfdb944a5a46355cc77d55f44","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-17507","label":"ubuntu.com/security/CVE-2026-17507","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-17507","label":"www.cve.org/CVERecord?id=CVE-2026-17507","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-17507","label":"security-tracker.debian.org/tracker/CVE-2026-17507","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12090-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12090-1"]},"timeline":[{"kind":"published","date":"2026-10-02T07:26:34.739Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-02T17:43:56.738Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:38:48.627Z","stale":false,"partial":false}}