Description
Unchecked NULL pointer usage when handling invalid aliases in CopyKeyAliasesToKeymap in xkbcomp/keycodes.c in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxkbcommon | 0.8.2-1 | — |
| Debian 13 | libxkbcommon | 0.8.2-1 | — |
| Debian 12 | libxkbcommon | 0.8.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libxkbcommon | 0.8.0-1ubuntu0.1 | USN-3786-2 |
| Ubuntu 16.04 LTS | libxkbcommon | 0.5.0-1ubuntu2.1 | USN-3786-1 |
| Ubuntu 14.04 LTS | libxkbcommon | 0.4.1-0ubuntu1.1 | USN-3786-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | libxkbcommon | 0.8.2-3.3.1 | SUSE-SU-2018:3685-1 |
| SLES 12 SP5 | libxkbcommon | 0.6.1-9.3.1 | SUSE-SU-2024:0037-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | libxkbcommon | 0.6.1-9.3.1 | SUSE-SU-2024:0037-1 |
Advisories 4
- USN-3786-1 libxkbcommon vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-3786-2 libxkbcommon vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2018:3685-1 Security update for libxkbcommon SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0037-1 Security update for libxkbcommon SUSE / openSUSE Security Updates · May 2, 2025
References
- https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f
- GLSA-201810-05 vendor-advisory
- USN-3786-1 vendor-advisory
- USN-3786-2 vendor-advisory
- https://lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html