CVE-2018-15857: An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by
CVE-2018-15857 is a high-severity flaw (CVSS 7.8) affecting libxkbcommon, xkbcommon, ubuntu linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by supplying a crafted keymap file.
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2018-08-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-15857?
libxkbcommon: upgrade to 0.8.1; xkbcommon: upgrade to 0.8.1; ubuntu linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-15857 being exploited?
CVE-2018-15857 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-15857 affect?
CVE-2018-15857 affects libxkbcommon, xkbcommon, ubuntu linux. Severity is high (CVSS 7.8). An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by supplying a crafted keymap file.
How urgent is CVE-2018-15857?
Priority 42/100. High severity; On your watchlist
Software pages
Related CVEs
- CVE-2018-15864 MEDIUM 5.5 UPGRADE UPGRADE Unchecked NULL pointer usage in resolve_keysym in xkbcomp/parser.y in xkbcommon before 0.8.2 could be used by
- CVE-2018-15863 MEDIUM 5.5 UPGRADE UPGRADE Unchecked NULL pointer usage in ResolveStateAndPredicate in xkbcomp/compat.c in xkbcommon before 0.8.2 could b
- CVE-2018-15862 MEDIUM 5.5 UPGRADE UPGRADE Unchecked NULL pointer usage in LookupModMask in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by loc
- CVE-2018-15861 MEDIUM 5.5 UPGRADE UPGRADE Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by lo
- CVE-2018-15859 MEDIUM 5.5 UPGRADE UPGRADE Unchecked NULL pointer usage when parsing invalid atoms in ExprResolveLhs in xkbcomp/expr.c in xkbcommon befor