GHSL-2023-016_GHSL-2023-018: Out-of-Bounds Read in the MIT Kerberos V5 (krb5) library
Multiple out-of-bounds read vulnerabilities exist in the MIT Kerberos V5 library when parsing SPNEGO tokens, caused by missing length checks and incorrect index handling. An attacker could trigger a denial of service if the accessed memory is not mapped.
Originally disclosed on GitHub Security Lab
Multiple vulnerabilities in the MIT Kerberos V5 (krb5) library can trigger an out-of-bounds read when parsing and verifying SPNEGO tokens.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing validation of zero-length ASN.1 objects and failure to account for tag bytes when calculating remaining buffer size, leading to out-of-bounds reads.
Impact
These out of bounds reads could lead to a denial of service if the accessed memory is not mapped.
What the attacker needed
Ability to send crafted SPNEGO tokens
The fix
The issues were fixed by merging patches that add proper length checks and correct buffer size calculations.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Kerberos is a system for authenticating users over a network. SPNEGO is a way to negotiate which authentication method to use. The library that handles this negotiation has bugs that let an attacker send a specially crafted message that makes the program read memory it should not, which can crash the service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.