CVE-2018-5709
An issue was discovered in MIT Kerberos 5 (aka krb5) through 1.16. There is a variable "dbentry->n_key_data" in kadmin/dbutil/dump.c that can store 16-bit data but unknowingly the developer has assigned a "u4" variable to it, which is for 32-bit data. An attacker can use this vulnerability to affect other artifacts of the database as we know that a Kerberos database dump file contains trusted data.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | krb5 | Will not fix according to debian security tracker: non-issue, codepath is only run on trusted input, potential integer overflow is non-issue no patch available in… | UBUNTU-CVE-2018-5709 | |
| Ubuntu 20.04 | krb5 | Will not fix according to debian security tracker: non-issue, codepath is only run on trusted input, potential integer overflow is non-issue no patch available in… | UBUNTU-CVE-2018-5709 | |
| Ubuntu 18.04 | krb5 | Fix pending | UBUNTU-CVE-2018-5709 | |
| Ubuntu 16.04 | krb5 | Will not fix according to debian security tracker: non-issue, codepath is only run on trusted input, potential integer overflow is non-issue no patch available in… | UBUNTU-CVE-2018-5709 | |
| Ubuntu 14.04 | krb5 | Fix pending | UBUNTU-CVE-2018-5709 | |
| Debian 14 | krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5709 | |
| Debian 13 | krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5709 | |
| Debian 12 | krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5709 | |
| Red Hat Enterprise Linux 8 | krb5 | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-pkinit | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-server | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-server-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | krb5-workstation | Not affected | ||
| Red Hat Enterprise Linux 8 | libkadm5 | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5 | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-pkinit | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-server | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-server-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | krb5-workstation | Not affected | ||
| Red Hat Enterprise Linux 7 | libkadm5 | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5 | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-pkinit-openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-server | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-server-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | krb5-workstation | Not affected | ||
| Red Hat Enterprise Linux 6 | libkadm5 | Not affected | ||
| Red Hat Enterprise Linux 5 | krb5 | Not affected | ||
| Alpine Linux 3.24 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.23 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.22 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.21 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.20 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.19 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.18 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.17 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.16 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.15 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.14 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.13 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.12 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.11 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.10 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.9 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.8 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
| Alpine Linux 3.7 | krb5 | Fixed | 1.15.3-r0 | ALPINE-CVE-2018-5709 |
References
- https://github.com/poojamnit/Kerberos-V5-1.16-Vulnerabilities/tree/master/Integer%20Overflow
- https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.