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.
{
"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"
}{
"source": [
"DESCRIPTION",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.4.0.0"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56318.json"
[
{
"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
}
]
"2026-08-12T15:31:52Z"