CVE-2018-15857

Source
https://cve.org/CVERecord?id=CVE-2018-15857
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15857.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-15857
Downstream
Related
Published
2018-08-25T21:29:01Z
Modified
2026-08-18T10:53:37Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by supplying a crafted keymap file.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:xkbcommon:xkbcommon:*:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "fixed":  "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
Fixed
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:xkbcommon:libxkbcommon:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15857.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "246204298610063233728311461425499783433",
            "length":  421
        },
        "id":  "CVE-2018-15857-bead969c",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/xkbcommon/libxkbcommon/commit/c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb",
        "target":  {
            "file":  "src/xkbcomp/ast-build.c",
            "function":  "ExprAppendMultiKeysymList"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "157951890283692381345264618911296666620",
                "175364020308458040961507052570546156758",
                "75057826269913629386390900143212499585",
                "256459290595105037938915078059512908386"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-15857-d2756d45",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/xkbcommon/libxkbcommon/commit/c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb",
        "target":  {
            "file":  "src/xkbcomp/ast-build.c"
        }
    }
]
vanir_signatures_modified
"2026-08-18T10:53:37Z"