CVE-2016-3120
Medium · 6.5CVSS
6.5
EPSS
4.6%
Published
Aug 1, 2016
CISA due date
—
Cloudanix analysis
A setting in the network login system can be abused by logged-in users to crash the central authentication service and block everyone from signing in.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The validate_as_request function in kdc_util.c uses an incorrect client data structure on S4U2Self requests when restrict_anonymous_to_tgt is enabled, resulting in a NULL pointer dereference that crashes the KDC daemon.
Why it matters to the business
Successful exploitation disrupts Kerberos-based authentication across an organization, preventing users and services from obtaining tickets and causing widespread login and access failures until the KDC is restarted.
How an attack unfolds
An authenticated remote user sends a crafted S4U2Self request to a KDC that has restrict_anonymous_to_tgt enabled; the flawed client-data handling path dereferences a NULL pointer and terminates the daemon.
How to fix it
Upgrade krb5 to version 1.13.6 or 1.14.3 (or later commit 93b4a6306a0026cf1cc31ac4bd8a49ba5d034ba7) and Bitnami node to 12.22.5 or newer; disable restrict_anonymous_to_tgt if the setting is not required.
How to confirm the fix worked
Verify installed krb5 version is at or above the fixed releases, confirm restrict_anonymous_to_tgt is either disabled or the patch is present, and test that S4U2Self requests no longer cause KDC crashes.
Typical attack path
- Obtain valid domain credentials
- Send a malicious S4U2Self AS-REQ to the KDC
- Trigger the NULL dereference and KDC crash
How to detect it
Review KDC logs for abrupt daemon terminations immediately following S4U2Self requests; correlate authenticated user activity with unexpected KDC restarts.
What your security team should do
- Apply the listed fixed versions to all affected krb5 and Bitnami node deployments without delay
- Audit KDC configuration for unnecessary use of restrict_anonymous_to_tgt
- Add KDC process monitoring and automated restart procedures for availability
The record
The validate_as_request function in kdc_util.c in the Key Distribution Center (KDC) in MIT Kerberos 5 (aka krb5) before 1.13.6 and 1.4.x before 1.14.3, when restrict_anonymous_to_tgt is enabled, uses an incorrect client data structure, which allows remote authenticated users to cause a denial of service (NULL pointer dereference and daemon crash) via an S4U2Self request.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.2 | krb5 | 0 | 1.13.6-r0 |
| Alpine:v3.3 | krb5 | 0 | 1.14.3-r0 |
| Alpine:v3.4 | krb5 | 0 | 1.14.3-r0 |
| Debian:11 | krb5 | 0 | 1.14.3+dfsg-1 |
| Debian:12 | krb5 | 0 | 1.14.3+dfsg-1 |
| Debian:13 | krb5 | 0 | 1.14.3+dfsg-1 |
| Debian:7 | krb5 | 0 | 1.10.1+dfsg-5+deb7u9 |
| Mageia:5 | krb5 | 0 | 1.12.5-1.1.mga5 |
| Red Hat:enterprise_linux:7::client | krb5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-debuginfo | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-devel | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-libs | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-pkinit | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-server | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-server-ldap | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | krb5-workstation | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::client | libkadm5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-debuginfo | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-devel | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-libs | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-pkinit | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-server | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-server-ldap | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | krb5-workstation | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::computenode | libkadm5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-debuginfo | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-devel | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-libs | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-pkinit | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-server | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-server-ldap | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | krb5-workstation | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::server | libkadm5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5 | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-debuginfo | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-devel | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-libs | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-pkinit | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-server | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-server-ldap | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | krb5-workstation | 0 | 0:1.14.1-26.el7 |
| Red Hat:enterprise_linux:7::workstation | libkadm5 | 0 | 0:1.14.1-26.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | krb5 | 0 | 1.12.1-36.4 |
| SUSE:Linux Enterprise Server 12 SP1 | krb5 | 0 | 1.12.1-36.4 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | krb5 | 0 | 1.12.1-36.4 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | krb5 | 0 | 1.12.1-36.4 |
| Ubuntu:14.04:LTS | krb5 | 0 | 1.12+dfsg-2ubuntu5.4 |
| Ubuntu:16.04:LTS | krb5 | 0 | 1.13.2+dfsg-5ubuntu2.1 |
| openSUSE:Tumbleweed | krb5 | 0 | 1.15-1.1 |
Related vulnerabilities
- CVE-2016-3119 The process_db_args function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the… Also affects krb5
- CVE-2015-8631 Multiple memory leaks in kadmin/server/server_stubs.c in kadmind in MIT Kerberos 5 (aka… Also affects krb5
- CVE-2015-8630 The (1) kadm5_create_principal_3 and (2) kadm5_modify_principal functions in… Also affects krb5
- CVE-2015-8629 The xdr_nullstring function in lib/kadm5/kadm_rpc_xdr.c in kadmind in MIT Kerberos 5 (aka… Also affects krb5
- CVE-2025-3576 A vulnerability in the MIT Kerberos implementation allows GSSAPI-protected messages using… Also affects krb5
- CVE-2024-37371 In MIT Kerberos 5 (aka krb5) before 1.21.3, an attacker can cause invalid memory reads… Also affects krb5
- CVE-2024-37370 In MIT Kerberos 5 (aka krb5) before 1.21.3, an attacker can modify the plaintext Extra… Also affects krb5
- CVE-2024-26461 Kerberos 5 (aka krb5) 1.21.2 contains a memory leak vulnerability in… Also affects krb5