{"id":"CVE-2018-15858","details":"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.","modified":"2026-03-15T22:25:42.723270Z","published":"2018-08-25T21:29:02.063Z","related":["MGASA-2018-0369","SUSE-SU-2018:3685-1","SUSE-SU-2024:0037-1"],"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201810-05"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3786-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3786-2/"},{"type":"FIX","url":"https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f"},{"type":"FIX","url":"https://lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xkbcommon/libxkbcommon","events":[{"introduced":"0"},{"fixed":"87046f56efc89d3b0771df9b4fefcda39ade3dd1"},{"introduced":"0"},{"fixed":"87046f56efc89d3b0771df9b4fefcda39ade3dd1"},{"fixed":"badb428e63387140720f22486b3acbd3d738859f"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.8.1"},{"introduced":"0"},{"fixed":"0.8.1"}]}}],"versions":["xkbcommon-0.2.0","xkbcommon-0.3.0","xkbcommon-0.3.1","xkbcommon-0.3.2","xkbcommon-0.4.0","xkbcommon-0.4.1","xkbcommon-0.4.2","xkbcommon-0.4.3","xkbcommon-0.5.0","xkbcommon-0.6.0","xkbcommon-0.6.1","xkbcommon-0.7.0","xkbcommon-0.7.1","xkbcommon-0.7.2","xkbcommon-0.8.0"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15858.json","vanir_signatures":[{"target":{"file":"src/xkbcomp/keycodes.c","function":"CopyKeyAliasesToKeymap"},"source":"https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f","signature_type":"Function","deprecated":false,"signature_version":"v1","id":"CVE-2018-15858-50d75490","digest":{"length":1095,"function_hash":"186686948108093335100211637034822400959"}},{"target":{"file":"src/xkbcomp/keycodes.c"},"source":"https://github.com/xkbcommon/libxkbcommon/commit/badb428e63387140720f22486b3acbd3d738859f","signature_type":"Line","deprecated":false,"signature_version":"v1","id":"CVE-2018-15858-ecd4f68f","digest":{"line_hashes":["105902513952053338799186888379720812683","2813125074525204487135130095179841291","131041052524404914410509899012465260609","290112449741970181751028486238856450678","242851341871147170074241260793091770684","152433531990571504873668951939946627689","281007177730380793451923478109576055903","203541298282925731688484467531696055910","276973798188368871965725525755796654910","70567054245202246809013427786548308546"],"threshold":0.9}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}