CVE-2019-10639

Source
https://cve.org/CVERecord?id=CVE-2019-10639
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-10639.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-10639
Downstream
Related
Published
2019-07-05T23:15:10.477Z
Modified
2026-02-24T08:11:25.558624Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

The Linux kernel 4.x (starting from 4.1) and 5.x before 5.0.8 allows Information Exposure (partial kernel address disclosure), leading to a KASLR bypass. Specifically, it is possible to extract the KASLR kernel image offset using the IP ID values the kernel produces for connection-less protocols (e.g., UDP and ICMP). When such traffic is sent to multiple destination IP addresses, it is possible to obtain hash collisions (of indices to the counter array) and thereby obtain the hashing key (via enumeration). This key contains enough bits from a kernel address (of a static variable) so when the key is extracted (via enumeration), the offset of the kernel image is exposed. This attack can be carried out remotely, by the attacker forcing the target device to send UDP or ICMP (or certain other) traffic to attacker-controlled IP addresses. Forcing a server to send UDP traffic is trivial if the server is a DNS server. ICMP traffic is trivial if the server answers ICMP Echo requests (ping). For client targets, if the target visits the attacker's web page, then WebRTC or gQUIC can be used to force UDP traffic to attacker-controlled IP addresses. NOTE: this attack against KASLR became viable in 4.1 because IP ID generation was changed to have a dependency on an address associated with a network namespace.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
355b98553789b646ed97ad801a619ff898471b92
Introduced
1c163f4c7b3f621efff9b28a47abb36f7378d783
Fixed
355b98553789b646ed97ad801a619ff898471b92

Affected versions

v5.*
v5.0
v5.1-rc1
v5.1-rc2

Database specific

vanir_signatures
[
    {
        "id": "CVE-2019-10639-1c1ca55b",
        "signature_version": "v1",
        "digest": {
            "function_hash": "45681057184351298291632376550561583166",
            "length": 191.0
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@355b98553789b646ed97ad801a619ff898471b92",
        "signature_type": "Function",
        "target": {
            "file": "include/net/netns/hash.h",
            "function": "net_hash_mix"
        }
    },
    {
        "id": "CVE-2019-10639-7f930d28",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "267630132633605647311312828545328759990",
                "228862679610212255112796740852537240477",
                "103951951066251061186543519151354045965"
            ]
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@355b98553789b646ed97ad801a619ff898471b92",
        "signature_type": "Line",
        "target": {
            "file": "include/net/net_namespace.h"
        }
    },
    {
        "id": "CVE-2019-10639-9d9cfd25",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "68367419376995348437697010948654297200",
                "308640216773674434963339394510682129802",
                "25774611345153745021880160457846918727",
                "259627600841668554958530580440390650811"
            ]
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@355b98553789b646ed97ad801a619ff898471b92",
        "signature_type": "Line",
        "target": {
            "file": "net/core/net_namespace.c"
        }
    },
    {
        "id": "CVE-2019-10639-b00c8202",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "23717183164086609537779557594257077988",
                "257329343107452024051161963068435895378",
                "123178934854251976053262505875513693641",
                "126490789791201024856664690070429292819",
                "149764948459298529986228949292459897024",
                "206858060182812068821149800476601588192",
                "273021928020484041735949190372438563730",
                "53052067582135552808251975163064311041",
                "161041789748967991045446988097500500349"
            ]
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@355b98553789b646ed97ad801a619ff898471b92",
        "signature_type": "Line",
        "target": {
            "file": "include/net/netns/hash.h"
        }
    },
    {
        "id": "CVE-2019-10639-d074b203",
        "signature_version": "v1",
        "digest": {
            "function_hash": "81438939621587622703307416575314223833",
            "length": 944.0
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@355b98553789b646ed97ad801a619ff898471b92",
        "signature_type": "Function",
        "target": {
            "file": "net/core/net_namespace.c",
            "function": "setup_net"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-10639.json"