CVE-2018-15861

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-15861
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15861.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-15861
Downstream
Related
Published
2018-08-25T21:29:02Z
Modified
2025-09-19T09:25:50.402105Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file that triggers an xkbinternatom failure.

References

Affected packages

Git / github.com/xkbcommon/libxkbcommon

Affected ranges

Type
GIT
Repo
https://github.com/xkbcommon/libxkbcommon
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

xkbcommon-0.*

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
xkbcommon-0.8.1

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2018-15861-93523a78",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "175774263160934243552466536784463886460",
                    "29792962635781937238241845947226447142",
                    "122428947483686325534453935867743759180",
                    "262686909748002111389933887153581256306"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "src/xkbcomp/expr.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9"
        },
        {
            "id": "CVE-2018-15861-93f2b488",
            "signature_type": "Function",
            "digest": {
                "function_hash": "278895155981102000261140200257513622388",
                "length": 772.0
            },
            "target": {
                "file": "src/xkbcomp/expr.c",
                "function": "ExprResolveLhs"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/xkbcommon/libxkbcommon/commit/38e1766bc6e20108948aec8a0b222a4bad0254e9"
        }
    ]
}