CVE-2020-6016

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-6016
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-6016.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-6016
Published
2020-11-18T15:15:13.193Z
Modified
2025-11-20T11:30:14.451546Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Valve's Game Networking Sockets prior to version v1.2.0 improperly handles unreliable segments with negative offsets in function SNP_ReceiveUnreliableSegment(), leading to a Heap-Based Buffer Underflow and a free() of memory not from the heap, resulting in a memory corruption and probably even a remote code execution.

References

Affected packages

Git / github.com/valvesoftware/gamenetworkingsockets

Affected ranges

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

Affected versions

1.*

1.0.0

v1.*

v1.1.0

Database specific

vanir_signatures

[
    {
        "digest": {
            "function_hash": "112637649671998602830295864296836629670",
            "length": 3309.0
        },
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "CSteamNetworkConnectionBase::SNP_SendMessage",
            "file": "src/steamnetworkingsockets/clientlib/steamnetworkingsockets_snp.cpp"
        },
        "source": "https://github.com/valvesoftware/gamenetworkingsockets/commit/e0c86dcb9139771db3db0cfdb1fb8bef0af19c43",
        "signature_type": "Function",
        "id": "CVE-2020-6016-52d0820b"
    },
    {
        "digest": {
            "line_hashes": [
                "321269182489369124622566113487661786329",
                "80920154446436276881393700258771909905",
                "99451642014212731402900030861664343601",
                "212156970962957643319938129760635817935",
                "82888320182820298267710449986400191106",
                "256878838327911795295036941106393168872",
                "128036264350755610361596517027317797265",
                "71433513258825183082601943240736327061",
                "110759229330255524194951495575569017908",
                "51364348852482573533383862603153250368"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/steamnetworkingsockets/clientlib/steamnetworkingsockets_snp.cpp"
        },
        "source": "https://github.com/valvesoftware/gamenetworkingsockets/commit/e0c86dcb9139771db3db0cfdb1fb8bef0af19c43",
        "signature_type": "Line",
        "id": "CVE-2020-6016-7b1af979"
    },
    {
        "digest": {
            "line_hashes": [
                "251576948566354160204301319531849004658",
                "188415917409287245371210503852734197235",
                "296189490786401413231639520329270973772",
                "238557999710553613560904026510566949028",
                "95661933897496180359693539113790153794",
                "297387830692904648968887767366597642298",
                "310748609815854624451707620010794067851",
                "2944924521723733253897263800762691156"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/steamnetworkingsockets/clientlib/steamnetworkingsockets_snp.h"
        },
        "source": "https://github.com/valvesoftware/gamenetworkingsockets/commit/e0c86dcb9139771db3db0cfdb1fb8bef0af19c43",
        "signature_type": "Line",
        "id": "CVE-2020-6016-b5b8abe7"
    }
]

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-6016.json"