CVE-2024-56318

Source
https://cve.org/CVERecord?id=CVE-2024-56318
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56318.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56318
Published
2024-12-18T00:00:00Z
Modified
2026-08-12T15:31:52.662003Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In raw\TCP.cpp in Matter (aka connectedhomeip or Project CHIP) through 1.4.0.0 before 27ca6ec, there is a NULL pointer dereference in TCPBase::ProcessSingleMessage via TCP packets with zero messageSize, leading to denial of service.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "27ca6ec"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "27ca6ec"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-476"
    ],
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56318.json"
}
References

Affected packages

Git / github.com/project-chip/connectedhomeip

Affected ranges

Type
GIT
Repo
https://github.com/project-chip/connectedhomeip
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.4.0.0"
        }
    ]
}

Affected versions

Other
SVE_23_03/rc1
SVE_23_03/rc2
SVE_23_09/rc1
TE8/rc1
TE8/rc2
TE8/rc3
TE9
TE_23_02/rc1
TE_23_02/rc2
TE_24_01/rc1
test_event_1_2012_03_05
test_event_2_2012_04_19
test_event_2_2012_04_21
test_event_2_2012_04_22
test_event_3_2012_04_21
test_event_3_2021_06_01
test_event_3_2021_06_03
test_event_4_2021_07_06
v2021_01_27-alpha
v2021_02_02-alpha
v2021_02_10-alpha
TH-Matter-1.*
TH-Matter-1.2
V1.*
V1.0.0.1
v1.*
v1.0.0.2
v1.1.0.0
v1.1.0.1
v1.2.0.0
v1.2.0.1
v1.3.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56318.json"
vanir_signatures
[
    {
        "signature_type": "Function",
        "digest": {
            "function_hash": "85220886980676574357238494970079594571",
            "length": 980.0
        },
        "target": {
            "function": "TCPBase::ProcessReceivedBuffer",
            "file": "src/transport/raw/TCP.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
        "signature_version": "v1",
        "id": "CVE-2024-56318-405ebd2d",
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "210761545519706400408137987399302026381",
                "85432303657173421065130128341709707335",
                "200059086190491803262042164468836884029",
                "203139231044900653528683243837066665196",
                "84249658389931379939873403952346462488"
            ]
        },
        "target": {
            "file": "src/transport/raw/TCP.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
        "signature_version": "v1",
        "id": "CVE-2024-56318-454b434d",
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "10914484396529890614862958618586276642",
                "15556846030561399203845313242997755120",
                "132238975706345797081838961486091633436",
                "162092063713916714010188393539688103404",
                "110727327429346046373395458059548612709"
            ]
        },
        "target": {
            "file": "src/platform/ESP32/ConfigurationManagerImpl.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/43aa98c2d30ee547c6b587b9de7bbb794f175ece",
        "signature_version": "v1",
        "id": "CVE-2024-56318-4d1af1f5",
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "262590375615370306282283240500013164873",
                "306492425597676737952160135003560418922",
                "210056201948984650332561026685601642323",
                "188959626759016752050347294467993822603",
                "54959768588438366669785620345793695150",
                "100354885865924945642862212764553257232",
                "88988577723611573100389811662833451155"
            ]
        },
        "target": {
            "file": "src/platform/ESP32/nimble/BLEManagerImpl.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/43aa98c2d30ee547c6b587b9de7bbb794f175ece",
        "signature_version": "v1",
        "id": "CVE-2024-56318-63bbf9b9",
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "254065092782683959562106826029491668853",
                "157303372587191355698707652722272234492",
                "73855282504442410241031297073166812724",
                "308787766795530858984041756622439387598",
                "240199258269686967681970961699231535059",
                "224601829990959705522627067047702248248",
                "128206547482550248812265397428866108613",
                "304038845803326732028424872839848327314",
                "90065420893942170477090140449533964720",
                "177255599875748510116158569938485068028",
                "60074632605672314165726005829549386078",
                "291076950096347207641768712205229333886",
                "108071126571248915821445459341842497449",
                "132296518656652197495350330570392493140"
            ]
        },
        "target": {
            "file": "examples/platform/esp32/common/Esp32AppServer.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/43aa98c2d30ee547c6b587b9de7bbb794f175ece",
        "signature_version": "v1",
        "id": "CVE-2024-56318-651e4ca7",
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "digest": {
            "function_hash": "32421412006064019657759625627430524861",
            "length": 2892.0
        },
        "target": {
            "function": "TEST_F",
            "file": "src/transport/raw/tests/TestTCP.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
        "signature_version": "v1",
        "id": "CVE-2024-56318-8b5ab053",
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47819698538720653010622050840099369968",
                "222490919017585772226886837674454426908",
                "205702324348180279449294341254835502813",
                "284460173325911301627705031459474834280",
                "46482670514995860642047455801431461489",
                "74012079602100009564775186880153179952",
                "233971349962816170516743296921899127447"
            ]
        },
        "target": {
            "file": "src/transport/raw/tests/TestTCP.cpp"
        },
        "source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
        "signature_version": "v1",
        "id": "CVE-2024-56318-c533d0a4",
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-08-12T15:31:52Z"