Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-15854

Unchecked NULL pointer usage 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, because geometry tokens were desupported incorrectly.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-15854
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:25 UTC · Revision 1

Source evidence

CVE-2018-15854

core-osv · Original source

Published 25 Aug 2018, 21:29 UTC

Unchecked NULL pointer usage 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, because geometry tokens were desupported incorrectly.

osv:CVE-2018-15854
Complete source record
{
  "id": "c15c5b5372d554dd37053b02bd121aa88ad82008fc39712b24ea3d27e1b248a4",
  "url": "https://osv.dev/vulnerability/CVE-2018-15854",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-15854",
    "summary": "Unchecked NULL pointer usage 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, because geometry tokens were desupported incorrectly.",
    "evidence": "osv:CVE-2018-15854",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-15854",
      "aliases": [
        "CVE-2018-15854"
      ],
      "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": "e3cacae7b1bfda0d839c280494f23284a1187adf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xkbcommon_project:xkbcommon:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e3cacae7b1bfda0d839c280494f23284a1187adf"
                      }
                    ],
                    "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-15854.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-15854-34fc12bc",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "246668354826189783287622017382880698255",
                    "50264401089463712014793335532613509016",
                    "193572055833301283186130770852473589071",
                    "75768718557879718433513182767538078376",
                    "94688013004790728306344486117748107449",
                    "130058130792014441517702719593814964832",
                    "109258994702549565769254788619110575733"
                  ]
                },
                "source": "https://github.com/xkbcommon/libxkbcommon/commit/e3cacae7b1bfda0d839c280494f23284a1187adf",
                "target": {
                  "file": "src/xkbcomp/ast.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-15854-7c50bc5a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "337610187088446293266228536635368987338",
                    "263711999615519336787718363883417692405",
                    "39229216897454649471404094564958117855"
                  ]
                },
                "source": "https://github.com/xkbcommon/libxkbcommon/commit/e3cacae7b1bfda0d839c280494f23284a1187adf",
                "target": {
                  "file": "src/xkbcomp/ast-build.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-15854-7e1227cd",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "266697308492379725541600439398106331312",
                    "89135738776443511015244029387203105237",
                    "32002661022502531897837161557645378982",
                    "245169884622541596279721827977644780293",
                    "116715768090766867253820390827495717241",
                    "337746730670757975616325882490903404079",
                    "119053655197065402274231304054740175390"
                  ]
                },
                "source": "https://github.com/xkbcommon/libxkbcommon/commit/e3cacae7b1bfda0d839c280494f23284a1187adf",
                "target": {
                  "file": "src/xkbcomp/ast-build.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:29:28Z"
          }
        }
      ],
      "modified": "2026-10-20T13:29:28.381308333Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2019:2079",
        "https://lists.freedesktop.org/archives/wayland-devel/2018-August/039232.html",
        "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/e3cacae7b1bfda0d839c280494f23284a1187adf"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "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-15854",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387740,
  "published_at": "2018-08-25T21:29:01.593+00:00"
}