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.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56318.json"
[
{
"digest": {
"function_hash": "85220886980676574357238494970079594571",
"length": 980.0
},
"id": "CVE-2024-56318-405ebd2d",
"signature_type": "Function",
"source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
"target": {
"function": "TCPBase::ProcessReceivedBuffer",
"file": "src/transport/raw/TCP.cpp"
},
"deprecated": false,
"signature_version": "v1"
},
{
"digest": {
"line_hashes": [
"210761545519706400408137987399302026381",
"85432303657173421065130128341709707335",
"200059086190491803262042164468836884029",
"203139231044900653528683243837066665196",
"84249658389931379939873403952346462488"
],
"threshold": 0.9
},
"id": "CVE-2024-56318-454b434d",
"signature_type": "Line",
"source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
"target": {
"file": "src/transport/raw/TCP.cpp"
},
"deprecated": false,
"signature_version": "v1"
},
{
"digest": {
"function_hash": "32421412006064019657759625627430524861",
"length": 2892.0
},
"id": "CVE-2024-56318-8b5ab053",
"signature_type": "Function",
"source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
"target": {
"function": "TEST_F",
"file": "src/transport/raw/tests/TestTCP.cpp"
},
"deprecated": false,
"signature_version": "v1"
},
{
"digest": {
"line_hashes": [
"47819698538720653010622050840099369968",
"222490919017585772226886837674454426908",
"205702324348180279449294341254835502813",
"284460173325911301627705031459474834280",
"46482670514995860642047455801431461489",
"74012079602100009564775186880153179952",
"233971349962816170516743296921899127447"
],
"threshold": 0.9
},
"id": "CVE-2024-56318-c533d0a4",
"signature_type": "Line",
"source": "https://github.com/project-chip/connectedhomeip/commit/27ca6ec255b78168e04bd71e0f1a473869cf144b",
"target": {
"file": "src/transport/raw/tests/TestTCP.cpp"
},
"deprecated": false,
"signature_version": "v1"
}
]