#1150461 krb5: CVE-2026-107708 CVE-2026-107778

Package:
src:krb5
Source:
src:krb5
Submitter:
Salvatore Bonaccorso
Date:
2026-11-21 17:17:04 UTC
Severity:
normal
Tags:
#1150461#5
Date:
2026-10-09 19:13:31 UTC
From:
To:
Hi,

The following vulnerabilities were published for krb5.

CVE-2026-107708[0]:
| MIT krb5 through 1.22.2 contains a NULL pointer dereference
| vulnerability in the KDC's get_pac_princ_with_realm() that returns
| success while leaving the client principal NULL on malformed names.
| A malicious or compromised cross-realm trusted KDC can send an
| S4U2Proxy request with a PAC carrying a malformed client name to
| crash krb5kdc and deny authentication.


CVE-2026-107778[1]:
| MIT Kerberos 5 (krb5) through 1.22.2 contains a NULL pointer
| dereference in make_cred_list() in rd_cred.c that allows
| authenticated Kerberos clients to crash services by sending
| mismatched KRB-CRED arrays. Attackers can send forwarded credentials
| with more tickets than ticket_info entries through
| gss_accept_sec_context() to crash GSS-API acceptor services, causing
| denial of service.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-107708
https://www.cve.org/CVERecord?id=CVE-2026-107708
https://github.com/krb5/krb5/commit/a88a18cafa1040a0c4f9c8d08288fc98831ec86d
[1] https://security-tracker.debian.org/tracker/CVE-2026-107778
https://www.cve.org/CVERecord?id=CVE-2026-107778
https://github.com/krb5/krb5/commit/62196e2b269159a5465f5b8d0ed7cf6f29c3282a

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1150461#10
Date:
2026-10-09 20:30:05 UTC
From:
To:

    Salvatore> CVE-2026-107708[0]: | MIT krb5 through 1.22.2 contains a
    Salvatore> NULL pointer dereference | vulnerability in the KDC's
    Salvatore> get_pac_princ_with_realm() that returns | success while


In the default Debian configuration this is significantly mitigated by
our systemd restart policy: the KDC will restart on such a crash.
Obviously I should fix, but worth noting this has lower impact for
Debian.

#1150461#15
Date:
2026-10-09 20:30:05 UTC
From:
To:

    Salvatore> CVE-2026-107708[0]: | MIT krb5 through 1.22.2 contains a
    Salvatore> NULL pointer dereference | vulnerability in the KDC's
    Salvatore> get_pac_princ_with_realm() that returns | success while


In the default Debian configuration this is significantly mitigated by
our systemd restart policy: the KDC will restart on such a crash.
Obviously I should fix, but worth noting this has lower impact for
Debian.

#1150461#20
Date:
2026-10-10 08:37:06 UTC
From:
To:
Hi Sam,

Agreed, we marked the issues as no-dsa in the tracker! I think they
are as well just conidered low severity issues upstream reading the
upstream issues about it.

Once they are fixed in unstable we might go via trixie-pu update for
stable as well, if your time permits!

Regards,
Salvatore

#1150461#25
Date:
2026-10-31 18:07:14 UTC
From:
To:
Hi Sam, hi Salvatore,

In case it saves some time, attached is a debdiff for a 1.22.1-3.1 NMU
that fixes both CVEs. I have not uploaded anything; please use as much
or as little of it as you like.

It adds five upstream commits as gbp-pq style patches (0017-0021):

0017 a88a18ca CVE-2026-107708: Fix error handling in KDC PAC processing
(krb5-1.22 branch, cherry-pick of f6e2c397)
0018 62196e2b CVE-2026-107778: Avoid null dereference in krb5_rd_cred()
(krb5-1.22, cherry-pick of 48afa9ab)
0019 09ede2e5 Avoid another null dereference in krb5_rd_cred()
(krb5-1.22, ticket 9219)
0020 71bac898 Check for empty forwarded creds in krb5 GSS mech
(krb5-1.22, ticket 9220)
0021 c2697c12 Force "fork" method in t_otp.py (master, test only)

Notes:

- 0019 and 0020 are not mentioned in the tracker, but they are the
upstream follow-ups to the same make_cred_list()/gss_accept_sec_context()
crash: 0019 covers a KrbCredInfo without pname/sname (both are optional
in RFC 4120), 0020 an empty forwarded-creds list. Without 0019 the
CVE-2026-107778 fix is easy to sidestep.

- 0021 is needed for the package to build in current sid at all: with
Python 3.14 the multiprocessing default is "forkserver", and
src/tests/t_otp.py then fails ("Address already in use" on the KDC
port, ConnectionResetError from the RADIUS daemon). I reproduced the
failure with the unmodified 1.22.1-3 sources, so this is independent
of the CVE patches.

Testing (sid chroot, amd64):

- dpkg-buildpackage with the full test suite: all tests pass (only the
usual skips for slapd, SoftHSMv2 and systemd-socket-activate).
- A small reproducer that feeds malformed KRB-CRED messages to
krb5_rd_cred() with a keyless auth context (the fallback that
rd_and_store_for_creds() uses):
more tickets than ticket-info entries: 1.22.1-3 SIGSEGV,
1.22.1-3.1 KRB5KRB_AP_ERR_MODIFIED
ticket-info entry without client name: 1.22.1-3 SIGSEGV,
1.22.1-3.1 KRB5KRB_AP_ERR_MODIFIED
I did not build a reproducer for the empty-list case (0020) or for the
KDC PAC case (0017); those rely on upstream's review and test suite.
- lintian: source tags identical to 1.22.1-3; no new binary tags related
to the change.
- The upstream commits were taken from
https://www.google.com/url?q=http://github.com/krb5/krb5&source=gmail&ust=1793552463216000&sa=E
and checked
by full commit id against the krb5-1.22 and master branches.

All four patches apply to the krb5-1.22 branch commits without fuzz, so
they should also be usable for the trixie-pu update Salvatore mentioned.

Thanks for maintaining krb5!

Regards,
automationcanadian

#1150461#34
Date:
2026-11-21 17:16:20 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
krb5, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150461@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sam Hartman <hartmans@debian.org> (supplier of updated krb5 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 11 Nov 2026 03:57:53 -0700
Source: krb5
Architecture: source
Version: 1.22.3-1
Distribution: unstable
Urgency: high
Maintainer: Sam Hartman <hartmans@debian.org>
Changed-By: Sam Hartman <hartmans@debian.org>
Closes: 1124969 1129610 1134752 1143329 1150461 1153598
Changes:
 krb5 (1.22.3-1) unstable; urgency=high
 .
   * New upstream release including security patches, Closes: #1153598
     - CVE-2026-107364: KDC out-of-bounds read with a specific ASN.1 encoding
     - CVE-2026-107884: check the lockdown_keys attribute in kadmind password change requests
     - CVE-2026-112314: clnttcp_call() does not free the RPC reply verifier between retries
     - CVE-2026-119079: ASN.1 decoder grows the decoded element array one entry at a time
     - CVE-2026-118380: RPCSEC_GSS uses the unverified service type to unwrap arguments and wrap return values
     - CVE-2026-71199: check for unkeyed checksums when validating CAMMAC verifiers
     - CVE-2026-71200: PKINIT null pointer dereference
     - CVE-2026-112315: RPCSEC_GSS routines do not free partially decoded buffers on failure
     - CVE-2026-112316: xdr_krb5_tl_data() does not free partially decoded data on failure
     - CVE-2026-112317: krb5_ktkdb_get_entry() does not free decrypted key material on check failure
     - CVE-2026-112318: kadmind policy stubs do not reject a NULL policy name
     - CVE-2026-112319: GSS-RPC does not enforce size limits on XDR-decoded data
     - CVE-2026-112320: GSS-RPC does not release the previous auth context on flavor switch
     - CVE-2026-112321: AUTH_GSSAPI handler does not free decoded arguments on certain error paths
     - CVE-2026-112322: clean_client() quadratic CPU cost in kadmind
     - CVE-2026-112323: repeated failed AUTH_GSSAPI_INIT requests accumulate client state
     - CVE-2026-111423: logic error when checking PAC server checksums
   * Also includes some older CVEs, Thanks Sumit Verma, Closes: #1150461
     - CVE-2026-107708: Fix error handling in KDC PAC processing
     - CVE-2026-107778: Avoid null dereference in krb5_rd_cred()
   * Fix so tests work with python 3.14, Closes: #1143329
   * Fix priority of krb5-locales, Closes: 1134752
   * Chinese Debconf translations, thanks Yangfl, Closes: #1124969
   * Annotate libnss-myhostname dependency <!nocheck>, Thanks Helmut Grohne. (Closes: #1129610)
   * krb5_newrealm uses systemctl rather than service
Checksums-Sha1:
 f333c6b5c3a976bf921ac5358d4b354a5ea88e94 3408 krb5_1.22.3-1.dsc
 4de3ddaf1229dd0adf395b746b62e78d54fe5079 8758584 krb5_1.22.3.orig.tar.gz
 1cefe0b7f5a633acc5d70692889f80a7baf9b6fb 833 krb5_1.22.3.orig.tar.gz.asc
 2d33b063fb7be9c7325b5033a314ed192e0efb73 106740 krb5_1.22.3-1.debian.tar.xz
 80862a6638db780bf8449059652d2074d4bd5a23 5432 krb5_1.22.3-1_source.buildinfo
Checksums-Sha256:
 1991e7daa0dba4dbc556f02973efe06e0ed213e7b130e7942a440abf606e60a3 3408 krb5_1.22.3-1.dsc
 fe90af8441ad9fa9b064b8e53077cefb782a96f8a68276b031dc54af1789ff0b 8758584 krb5_1.22.3.orig.tar.gz
 818d8e52d8602c6fb2a53b4d456fdb7caf217aab89f917a3a3d014610fcba193 833 krb5_1.22.3.orig.tar.gz.asc
 526d514379371d68e04788aa801e31cbecfeaf634366ed67072453dddbb94d24 106740 krb5_1.22.3-1.debian.tar.xz
 9b110557833e6b250e9a1ad5f24dfc3616128b1a425d9439a907f0a32ee4b068 5432 krb5_1.22.3-1_source.buildinfo
Files:
 d57f804a1b054299915befc8c9774ac8 3408 net optional krb5_1.22.3-1.dsc
 f843383e33d1e544a0ac31778c796b2c 8758584 net optional krb5_1.22.3.orig.tar.gz
 aca04081c6c37e6a9b64ab89a96b2368 833 net optional krb5_1.22.3.orig.tar.gz.asc
 2bfe5237c22eb8e843636b2bc77fbc93 106740 net optional krb5_1.22.3-1.debian.tar.xz
 41df65176b76042d07c69882eed24344 5432 net optional krb5_1.22.3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSj2jRwbAdKzGY/4uAsbEw8qDeGdAUCawHKNQAKCRAsbEw8qDeG
dIY5AQD0/gxTSXF7Vop3fiyXraq/osyfXm5OfMU8Tcrdx3SIjAD/cTJ3E3f7imNY
MUUqqlu9zPO6/SF5YefHRFY/K9HUXww=
=O3Qy
-----END PGP SIGNATURE-----