[krbdev.mit.edu #9215] git commit

"Greg Hudson via RT" <[email protected]> Mon, 22 Jun 2026 17:43:15 -0400
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9215 >


Fix DB2 hash bitmap page count validation

In __kdb2_hash_open(), bpages is computed from the hash file header
and then used as the size argument when clearing hashp->mapp.  The
mapp array has only NCACHED entries, so a malformed hash database can
cause memset() to write past the end of the array.  Return EFTYPE if
the computed bitmap page count is negative or greater then NCACHED.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

https://github.com/krb5/krb5/commit/1e12220dc3609cfbe0b9662a8fa8b18143fa3e7f
Author: Bogdan Boguslavskij <[email protected]>
Committer: Greg Hudson <[email protected]>
Commit: 1e12220dc3609cfbe0b9662a8fa8b18143fa3e7f
Branch: master
 src/plugins/kdb/db2/libdb2/hash/hash.c | 3 +++
 1 file changed, 3 insertions(+)