# 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…

- Severity: Medium 5.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2018-08-25T21:00:00.000Z
- Modified: 2026-06-17T01:43:13.440Z
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- xkbcommon libxkbcommon: up to 0.8.1
- xkbcommon xkbcommon: up to 0.8.1
- canonical ubuntu_linux: 14.04; 16.04; 18.04

## Every score

- NVD: CVSS:3.0 5.5 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://security.gentoo.org/glsa/201810-05> (third-party-advisory, vendor-advisory)
- <https://lists.freedesktop.org/archives/wayland-devel/2018-August/039243.html> (mailing-list, patch, third-party-advisory)
- <https://usn.ubuntu.com/3786-1/> (third-party-advisory, vendor-advisory)
- <https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9> (patch, third-party-advisory)
- <https://usn.ubuntu.com/3786-2/> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2019:2079> (vendor-advisory)

## Sources

- CVE List: [CVE-2018-15861](https://www.cve.org/CVERecord?id=CVE-2018-15861), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-15861](https://nvd.nist.gov/vuln/detail/CVE-2018-15861), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-15861 · Whole record: https://cve.day/CVE-2018-15861.json · Rebuilt by cve.day 2026-11-25T22:57:39.396Z
