Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used by local attackers to crash xkbco
Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used by local attackers to crash xkbcommon users by supplying a crafted keymap file that triggers boolean negation.
- Published
- Aug 25, 2018
- Updated
- Jun 16, 2026
- EPSS
- 0.5% · 43th percentile
- CWE
- CWE-400
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.5%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| xkbcommon | libxkbcommon | cpe:2.3:a:xkbcommon:libxkbcommon |
| xkbcommon | xkbcommon | cpe:2.3:a:xkbcommon:xkbcommon |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux14.04
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- xkbcommon libxkbcommonbefore 0.8.1
- xkbcommon xkbcommonbefore 0.8.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.18 | xkbcomp | before 1.5.0-r0 | 1.5.0-r0 |
| Debian:12 | libxkbcommon | before 0.8.2-1 | 0.8.2-1 |
| Debian:12 | x11-xkb-utils | all versions | — |
| openSUSE:Leap 16.0 | xkbcomp | before 1.4.7-160000.3.1 | 1.4.7-160000.3.1 |
| openSUSE:Tumbleweed | xkbcomp | before 1.5.0-1.1 | 1.5.0-1.1 |
| Red Hat:enterprise_linux:7::client | gdm | before 1:3.28.2-16.el7 | 1:3.28.2-16.el7 |
| Red Hat:enterprise_linux:7::client | gdm-debuginfo | before 1:3.28.2-16.el7 | 1:3.28.2-16.el7 |
| Red Hat:enterprise_linux:7::client | gdm-devel | before 1:3.28.2-16.el7 | 1:3.28.2-16.el7 |
| Red Hat:enterprise_linux:7::client | gdm-pam-extensions-devel | before 1:3.28.2-16.el7 | 1:3.28.2-16.el7 |
| Red Hat:enterprise_linux:7::client | libX11 | before 0:1.6.7-2.el7 | 0:1.6.7-2.el7 |
| Red Hat:enterprise_linux:7::client | libX11-common | before 0:1.6.7-2.el7 | 0:1.6.7-2.el7 |
| Red Hat:enterprise_linux:7::client | libX11-debuginfo | before 0:1.6.7-2.el7 | 0:1.6.7-2.el7 |
| Red Hat:enterprise_linux:7::client | libX11-devel | before 0:1.6.7-2.el7 | 0:1.6.7-2.el7 |
| Red Hat:enterprise_linux:7::client | libxkbcommon | before 0:0.7.1-3.el7 | 0:0.7.1-3.el7 |
| Red Hat:enterprise_linux:7::client | libxkbcommon-debuginfo | before 0:0.7.1-3.el7 | 0:0.7.1-3.el7 |
| Red Hat:enterprise_linux:7::client | libxkbcommon-devel | before 0:0.7.1-3.el7 | 0:0.7.1-3.el7 |
| Red Hat:enterprise_linux:7::client | libxkbcommon-x11 | before 0:0.7.1-3.el7 | 0:0.7.1-3.el7 |
| Red Hat:enterprise_linux:7::client | libxkbcommon-x11-devel | before 0:0.7.1-3.el7 | 0:0.7.1-3.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-ati | before 0:19.0.1-2.el7 | 0:19.0.1-2.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-ati-debuginfo | before 0:19.0.1-2.el7 | 0:19.0.1-2.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-vesa | before 0:2.4.0-3.el7 | 0:2.4.0-3.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-vesa-debuginfo | before 0:2.4.0-3.el7 | 0:2.4.0-3.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-wacom | before 0:0.36.1-3.el7 | 0:0.36.1-3.el7 |
| Red Hat:enterprise_linux:7::client | xorg-x11-drv-wacom-debuginfo | before 0:0.36.1-3.el7 | 0:0.36.1-3.el7 |
+21
Same product
xkbcommon: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-15857An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbc31Monitor
- CVE-2018-15864Unchecked NULL pointer usage in resolve_keysym in xkbcomp/parser.y in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL22Monitor
- CVE-2018-15863Unchecked NULL pointer usage in ResolveStateAndPredicate in xkbcomp/compat.c in xkbcommon before 0.8.2 could be used by local attackers to c22Monitor
- CVE-2018-15862Unchecked NULL pointer usage in LookupModMask in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL po22Monitor
- CVE-2018-15861Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL p22Monitor
- CVE-2018-15859Unchecked NULL pointer usage when parsing invalid atoms in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:xkbcomp | 1.5.0-r0 · Alpine:v3.18 | Package registry (OSV) |
| debian:libxkbcommon | 0.8.2-1 · Debian:12 | Package registry (OSV) |
| opensuse:xkbcomp | 1.4.1-150000.3.6.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| red hat:gdm | 1:3.28.2-16.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:gdm-debuginfo | 1:3.28.2-16.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libX11 | 0:1.6.7-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libX11-common | 0:1.6.7-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libX11-debuginfo | 0:1.6.7-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libX11-devel | 0:1.6.7-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libxkbcommon | 0:0.7.1-3.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libxkbcommon-debuginfo | 0:0.7.1-3.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libxkbcommon-x11 | 0:0.7.1-3.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:xorg-x11-drv-ati | 0:19.0.1-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:xorg-x11-drv-ati-debuginfo | 0:19.0.1-2.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:xorg-x11-drv-vesa | 0:2.4.0-3.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:libxkbcommon | 0.8.2-3.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 | Package registry (OSV) |
| suse:xkbcomp | 1.2.4-11.3.1 · SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | Package registry (OSV) |
| suse:xkbcomp | 1.4.1-150000.3.6.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) { return node.children.map(expand);}Fixed
const MAX_DEPTH = 32;function expand(node, depth = 0) { if (depth > MAX_DEPTH) throw new Error("too deep"); return node.children.map((c) => expand(c, depth + 1));}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- access.redhat.com/errata/RHSA-2019:2079
- github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a
- lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html
- security.gentoo.org/glsa/201810-05
- usn.ubuntu.com/3786-1/
- usn.ubuntu.com/3786-2/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.