Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-15853

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-15853
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:11 UTC · Revision 1

Source evidence

CVE-2018-15853

core-osv · Original source

Published 25 Aug 2018, 21:29 UTC

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.

osv:CVE-2018-15853
Complete source record
{
  "id": "447bd265f6f39d58474a8d43cd84e95edd6d4cdb58f7bca060ffe2511ca31d37",
  "url": "https://osv.dev/vulnerability/CVE-2018-15853",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-15853",
    "summary": "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.",
    "evidence": "osv:CVE-2018-15853",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-15853",
      "aliases": [
        "CVE-2018-15853"
      ],
      "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": "1f9d1248c07cda8aaff762429c0dce146de8632a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xkbcommon:libxkbcommon:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1f9d1248c07cda8aaff762429c0dce146de8632a"
                      }
                    ],
                    "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-15853.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-15853-4ce843d1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "38329813360607004553092467826760994406",
                    "182458909361269598744252420272304667328",
                    "265924496730946848593345593789483999581",
                    "112869328122952996430498009101837060069"
                  ]
                },
                "source": "https://github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a",
                "target": {
                  "file": "src/xkbcomp/expr.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-15853-e0dd6fde",
                "digest": {
                  "length": 1539,
                  "function_hash": "209006827910055964214525848213169957960"
                },
                "source": "https://github.com/xkbcommon/libxkbcommon/commit/1f9d1248c07cda8aaff762429c0dce146de8632a",
                "target": {
                  "file": "src/xkbcomp/expr.c",
                  "function": "ExprResolveBoolean"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:11:27Z"
          }
        }
      ],
      "modified": "2026-10-24T14:11:27.372978303Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2019:2079",
        "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/1f9d1248c07cda8aaff762429c0dce146de8632a",
        "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-15853",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443251,
  "published_at": "2018-08-25T21:29:01.483+00:00"
}