CVE-2018-15862

Source
https://cve.org/CVERecord?id=CVE-2018-15862
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15862.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-15862
Downstream
Related
Published
2018-08-25T21:29:02.373Z
Modified
2026-07-08T20:30:12.968883Z
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 LookupModMask 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 with invalid virtual modifiers.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:a:xkbcommon:xkbcommon:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "xkbcommon:xkbcommon",
            "extracted_events": [
                {
                    "last_affected": "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": [
                {
                    "introduced": "14.04"
                },
                {
                    "last_affected": "14.04"
                },
                {
                    "introduced": "16.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "introduced": "18.04"
                },
                {
                    "last_affected": "18.04"
                }
            ],
            "source": "CPE_STRING"
        }
    ]
}
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
Last affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:xkbcommon:libxkbcommon:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.8.1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "207605293108385811256869450954427532205",
                "161757858347502194683398663803400346794",
                "324306618126749902025397656962861478277",
                "70812620858281766667010722060269493189"
            ]
        },
        "target": {
            "file": "src/xkbcomp/expr.c"
        },
        "id": "CVE-2018-15862-1f756a73",
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/xkbcommon/libxkbcommon/commit/4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371",
        "deprecated": false
    },
    {
        "digest": {
            "function_hash": "246470118387212733721000661341588445321",
            "length": 576.0
        },
        "target": {
            "function": "LookupModMask",
            "file": "src/xkbcomp/expr.c"
        },
        "id": "CVE-2018-15862-8e347297",
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/xkbcommon/libxkbcommon/commit/4e2ee9c3f6050d773f8bbe05bc0edb17f1ff8371",
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15862.json"
vanir_signatures_modified
"2026-07-08T20:30:12Z"