]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Multi-realm KDC null deref [CVE-2013-1418]
authorTom Yu <tlyu@mit.edu>
Mon, 4 Nov 2013 20:49:03 +0000 (15:49 -0500)
committerTom Yu <tlyu@mit.edu>
Mon, 4 Nov 2013 20:49:03 +0000 (15:49 -0500)
If a KDC serves multiple realms, certain requests can cause
setup_server_realm() to dereference a null pointer, crashing the KDC.

CVSSv2: AV:N/AC:M/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C

A related but more minor vulnerability requires authentication to
exploit, and is only present if a third-party KDC database module can
dereference a null pointer under certain conditions.

(back ported from commit 5d2d9a1abe46a2c1a8614d4672d08d9d30a5f8bf)

ticket: 7757 (new)
version_fixed: 1.10.7
status: resolved

src/kdc/main.c

index b56ec193ca3fb0be4707b287e2d89ce94cbdd15f..71606079659c1ae940d74770850e4ccfbc9d2f92 100644 (file)
@@ -140,6 +140,9 @@ setup_server_realm(krb5_principal sprinc)
     kdc_realm_t         *newrealm;
 
     kret = 0;
+    if (sprinc == NULL)
+        return NULL;
+
     if (kdc_numrealms > 1) {
         if (!(newrealm = find_realm_data(sprinc->realm.data,
                                          (krb5_ui_4) sprinc->realm.length)))