Page MenuHomeFreeBSD

kgssapi_krb5: Fix a couple of bugs in krb5_import()
AcceptedPublic

Authored by markj on Apr 6 2026, 2:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 10, 8:17 PM
Unknown Object (File)
Mon, Aug 10, 6:42 PM
Unknown Object (File)
Sun, Aug 9, 12:49 PM
Unknown Object (File)
Sat, Aug 8, 7:09 PM
Unknown Object (File)
Tue, Aug 4, 6:32 AM
Unknown Object (File)
Mon, Aug 3, 4:44 AM
Unknown Object (File)
Tue, Jul 28, 4:54 PM
Unknown Object (File)
Mon, Jul 27, 11:52 PM
Subscribers

Details

Reviewers
rmacklem
Summary

We don't bound the size of the allocation for the jitter window, so it's
possible to request up to 16GB of memory, and on 32-bit systems, the
multiplication can overflow. Bound the allocation to the size of the
context.

Ensure that km_elem is freed if we hit the error case.

Reported by: AEGIS and Equilateral AI

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71990
Build 68873: arc lint + arc unit

Event Timeline

markj requested review of this revision.Apr 6 2026, 2:49 PM

Looks ok to me. Of course, since we no longer
use Heimdal, I'm not sure it matters?
(Maybe to MFC to FreeBSD-14?)

This revision is now accepted and ready to land.Apr 6 2026, 2:56 PM