CVE-2018-15861
Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file that triggers an xkb_intern_atom failure.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Red Hat 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 18.04 | libxkbcommon | Fixed | 0.8.0-1ubuntu0.1 | UBUNTU-CVE-2018-15861 |
| Ubuntu 16.04 | libxkbcommon | Fixed | 0.5.0-1ubuntu2.1 | UBUNTU-CVE-2018-15861 |
| Ubuntu 14.04 | libxkbcommon | Fixed | 0.4.1-0ubuntu1.1 | UBUNTU-CVE-2018-15861 |
| Debian 14 | libxkbcommon | Fixed | 0.8.2-1 | DEBIAN-CVE-2018-15861 |
| Debian 14 | x11-xkb-utils | 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-15861 | |
| Debian 13 | libxkbcommon | Fixed | 0.8.2-1 | DEBIAN-CVE-2018-15861 |
| Debian 13 | x11-xkb-utils | 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-15861 | |
| Debian 12 | libxkbcommon | Fixed | 0.8.2-1 | DEBIAN-CVE-2018-15861 |
| Debian 12 | x11-xkb-utils | 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-15861 | |
| Red Hat Enterprise Linux 10 | xkbcomp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | xkbcomp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libxkbcommon | Not affected | ||
| Red Hat Enterprise Linux 8 | libxkbcommon-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libxkbcommon-x11 | Not affected | ||
| Red Hat Enterprise Linux 8 | libxkbcommon-x11-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | gdm | Fixed | 1:3.28.2-16.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | gdm-devel | Fixed | 1:3.28.2-16.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | gdm-pam-extensions-devel | Fixed | 1:3.28.2-16.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libX11 | Fixed | 0:1.6.7-2.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libX11-common | Fixed | 0:1.6.7-2.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libX11-devel | Fixed | 0:1.6.7-2.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libxkbcommon | Fixed | 0:0.7.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libxkbcommon-devel | Fixed | 0:0.7.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libxkbcommon-x11 | Fixed | 0:0.7.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | libxkbcommon-x11-devel | Fixed | 0:0.7.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | mesa-libGLw | Fixed | 0:8.0.0-5.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | mesa-libGLw-devel | Fixed | 0:8.0.0-5.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-drv-ati | Fixed | 0:19.0.1-2.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-drv-vesa | Fixed | 0:2.4.0-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-drv-wacom | Fixed | 0:0.36.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-drv-wacom-devel | Fixed | 0:0.36.1-3.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xdmx | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xephyr | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xnest | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xorg | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xvfb | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xwayland | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-common | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-devel | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-source | Fixed | 0:1.20.4-7.el7 | RHSA-2019:2079 |
| Alpine Linux 3.24 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.23 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.22 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.21 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.20 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.19 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
| Alpine Linux 3.18 | xkbcomp | Fixed | 1.5.0-r0 | ALPINE-CVE-2018-15861 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201810-05 (vendor-advisory)
- https://usn.ubuntu.com/3786-1/ (vendor-advisory)
- https://usn.ubuntu.com/3786-2/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:2079 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201810-05
- https://lists.freedesktop.org/archives/wayland-devel/2018-August/039243.html
- https://usn.ubuntu.com/3786-1/
- https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9
- https://usn.ubuntu.com/3786-2/
- https://access.redhat.com/errata/RHSA-2019:2079
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.