CVE-2018-15859

Source
https://cve.org/CVERecord?id=CVE-2018-15859
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15859.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-15859
Downstream
ALPINE (1)
BELL (1)
DEBIAN (1)
ECHO (1)
MGASA (2)
openSUSE (2)
RHSA (1)
SUSE (5)
UBUNTU (1)
Related
Published
2018-08-25T21:29:02Z
Modified
2026-09-05T08:04:28Z
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 when parsing invalid atoms 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, because lookup failures are mishandled.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:xkbcommon:xkbcommon:*:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "last_affected":  "0.8.1"
                }
            ],
            "source":  "CPE_RANGE",
            "vendor_product":  "xkbcommon:xkbcommon"
        },
        {
            "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:*:*:*"
            ],
            "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",
            "vendor_product":  "canonical:ubuntu_linux"
        }
    ]
}
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
Show details
{
    "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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15859.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "43341503883219008790151130644987806371",
            "length":  787
        },
        "id":  "CVE-2018-15859-2f44810f",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/xkbcommon/libxkbcommon/commit/bb4909d2d8fa6b08155e449986a478101e2b2634",
        "target":  {
            "file":  "src/xkbcomp/expr.c",
            "function":  "ExprResolveLhs"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "303975513241189271169043459495378179633",
                "57047408033659113269292648207627675083",
                "137636030080933030529451911402325404101",
                "198377673848364634708357946280879810418",
                "39654489695989217364076106125130784526",
                "1622333952790506483098321717139240657",
                "217681883777450005324145042871811942865",
                "134258757998295990486982799137584684993"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-15859-f8fabfcf",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/xkbcommon/libxkbcommon/commit/bb4909d2d8fa6b08155e449986a478101e2b2634",
        "target":  {
            "file":  "src/xkbcomp/expr.c"
        }
    }
]
vanir_signatures_modified
"2026-09-05T08:04:28Z"