Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-15858
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:10 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-15858
Complete source record
{
"id": "8fa874cad6cfd46c7ae981fac924a1b248d073f8549889e4dbcb19aca27f9f5b",
"url": "https://osv.dev/vulnerability/CVE-2018-15858",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-15858",
"summary": "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.",
"evidence": "osv:CVE-2018-15858",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-15858",
"aliases": [
"CVE-2018-15858"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/xkbcommon/libxkbcommon",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "87046f56efc89d3b0771df9b4fefcda39ade3dd1"
},
{
"fixed": "badb428e63387140720f22486b3acbd3d738859f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:xkbcommon:libxkbcommon:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.8.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "badb428e63387140720f22486b3acbd3d738859f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"xkbcommon-0.8.0",
"xkbcommon-0.7.2",
"xkbcommon-0.7.1",
"xkbcommon-0.7.0",
"xkbcommon-0.6.1",
"xkbcommon-0.6.0",
"xkbcommon-0.5.0",
"xkbcommon-0.4.3",
"xkbcommon-0.4.2",
"xkbcommon-0.4.1",
"xkbcommon-0.4.0",
"xkbcommon-0.3.2",
"xkbcommon-0.3.1",
"xkbcommon-0.3.0",
"xkbcommon-0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15858.json",
"vanir_signatures": [
{
"id": "CVE-2018-15858-50d75490",
"digest": {
"length": 1095,
"function_hash": "186686948108093335100211637034822400959"
},
"source": "https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f",
"target": {
"file": "src/xkbcomp/keycodes.c",
"function": "CopyKeyAliasesToKeymap"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-15858-ecd4f68f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"105902513952053338799186888379720812683",
"2813125074525204487135130095179841291",
"131041052524404914410509899012465260609",
"290112449741970181751028486238856450678",
"242851341871147170074241260793091770684",
"152433531990571504873668951939946627689",
"281007177730380793451923478109576055903",
"203541298282925731688484467531696055910",
"276973798188368871965725525755796654910",
"70567054245202246809013427786548308546"
]
},
"source": "https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f",
"target": {
"file": "src/xkbcomp/keycodes.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:11:06Z"
}
}
],
"modified": "2026-10-24T14:11:06.641128373Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/201810-05",
"https://usn.ubuntu.com/3786-1/",
"https://usn.ubuntu.com/3786-2/",
"https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f",
"https://lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:xkbcommon:xkbcommon:*:*:*:*:*:*:*:*"
],
"vendor_product": "xkbcommon:xkbcommon",
"extracted_events": [
{
"range": [
{
"fixed": "0.8.1"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-15858",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443222,
"published_at": "2018-08-25T21:29:02.063+00:00"
}