CWE-588
Attempt to Access Child of a Non-structure Pointer
Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.
CVE-2021-3319 (GCVE-0-2021-3319)
Vulnerability from cvelistv5
Published
2021-10-05 20:50
Modified
2024-09-16 22:14
Severity ?
VLAI Severity ?
EPSS score ?
CWE
Summary
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Zephyr versions >= > v2.4.0 contain NULL Pointer Dereference (CWE-476), Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364
References
► | URL | Tags |
---|---|---|
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
zephyrproject-rtos | zephyr |
Version: > v2.4.0 < unspecified |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-03T16:53:17.477Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "zephyr", "vendor": "zephyrproject-rtos", "versions": [ { "lessThan": "unspecified", "status": "affected", "version": "\u003e v2.4.0", "versionType": "custom" } ] } ], "datePublic": "2020-04-14T00:00:00", "descriptions": [ { "lang": "en", "value": "DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Zephyr versions \u003e= \u003e v2.4.0 contain NULL Pointer Dereference (CWE-476), Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-476", "description": "NULL Pointer Dereference (CWE-476)", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-588", "description": "Attempt to Access Child of a Non-structure Pointer (CWE-588)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2021-10-05T20:50:14", "orgId": "e2e69745-5e70-4e92-8431-deb5529a81ad", "shortName": "zephyr" }, "references": [ { "tags": [ "x_refsource_MISC" ], "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" } ], "source": { "defect": [ "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" ] }, "title": "DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses", "x_legacyV4Record": { "CVE_data_meta": { "ASSIGNER": "vulnerabilities@zephyrproject.org", "DATE_PUBLIC": "2020-04-14T00:00:00.000Z", "ID": "CVE-2021-3319", "STATE": "PUBLIC", "TITLE": "DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "zephyr", "version": { "version_data": [ { "version_affected": "\u003e=", "version_value": "\u003e v2.4.0" } ] } } ] }, "vendor_name": "zephyrproject-rtos" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Zephyr versions \u003e= \u003e v2.4.0 contain NULL Pointer Dereference (CWE-476), Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" } ] }, "impact": { "cvss": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "environmentalScore": 6.5, "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "UNCHANGED", "temporalScore": 6.5, "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "NULL Pointer Dereference (CWE-476)" } ] }, { "description": [ { "lang": "eng", "value": "Attempt to Access Child of a Non-structure Pointer (CWE-588)" } ] } ] }, "references": { "reference_data": [ { "name": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364", "refsource": "MISC", "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" } ] }, "source": { "defect": [ "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-94jg-2p6q-5364" ] } } } }, "cveMetadata": { "assignerOrgId": "e2e69745-5e70-4e92-8431-deb5529a81ad", "assignerShortName": "zephyr", "cveId": "CVE-2021-3319", "datePublished": "2021-10-05T20:50:14.254605Z", "dateReserved": "2021-01-27T00:00:00", "dateUpdated": "2024-09-16T22:14:56.366Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
CVE-2021-3510 (GCVE-0-2021-3510)
Vulnerability from cvelistv5
Published
2021-10-05 20:50
Modified
2024-09-16 19:04
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-588 - Attempt to Access Child of a Non-structure Pointer ()
Summary
Zephyr JSON decoder incorrectly decodes array of array. Zephyr versions >= >1.14.0, >= >2.5.0 contain Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4
References
► | URL | Tags |
---|---|---|
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
zephyrproject-rtos | zephyr |
Version: >1.14.0 < unspecified Version: >2.5.0 < unspecified |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-03T16:53:17.841Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "zephyr", "vendor": "zephyrproject-rtos", "versions": [ { "lessThan": "unspecified", "status": "affected", "version": "\u003e1.14.0", "versionType": "custom" }, { "lessThan": "unspecified", "status": "affected", "version": "\u003e2.5.0", "versionType": "custom" } ] } ], "datePublic": "2020-06-20T00:00:00", "descriptions": [ { "lang": "en", "value": "Zephyr JSON decoder incorrectly decodes array of array. Zephyr versions \u003e= \u003e1.14.0, \u003e= \u003e2.5.0 contain Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-588", "description": "Attempt to Access Child of a Non-structure Pointer (CWE-588)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2021-10-05T20:50:17", "orgId": "e2e69745-5e70-4e92-8431-deb5529a81ad", "shortName": "zephyr" }, "references": [ { "tags": [ "x_refsource_MISC" ], "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" } ], "source": { "defect": [ "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" ] }, "title": "Zephyr JSON decoder incorrectly decodes array of array", "x_legacyV4Record": { "CVE_data_meta": { "ASSIGNER": "vulnerabilities@zephyrproject.org", "DATE_PUBLIC": "2020-06-20T00:00:00.000Z", "ID": "CVE-2021-3510", "STATE": "PUBLIC", "TITLE": "Zephyr JSON decoder incorrectly decodes array of array" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "zephyr", "version": { "version_data": [ { "version_affected": "\u003e=", "version_value": "\u003e1.14.0" }, { "version_affected": "\u003e=", "version_value": "\u003e2.5.0" } ] } } ] }, "vendor_name": "zephyrproject-rtos" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "Zephyr JSON decoder incorrectly decodes array of array. Zephyr versions \u003e= \u003e1.14.0, \u003e= \u003e2.5.0 contain Attempt to Access Child of a Non-structure Pointer (CWE-588). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "environmentalScore": 7.5, "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "temporalScore": 7.5, "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "Attempt to Access Child of a Non-structure Pointer (CWE-588)" } ] } ] }, "references": { "reference_data": [ { "name": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4", "refsource": "MISC", "url": "http://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" } ] }, "source": { "defect": [ "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-289f-7mw3-2qf4" ] } } } }, "cveMetadata": { "assignerOrgId": "e2e69745-5e70-4e92-8431-deb5529a81ad", "assignerShortName": "zephyr", "cveId": "CVE-2021-3510", "datePublished": "2021-10-05T20:50:17.320779Z", "dateReserved": "2021-04-20T00:00:00", "dateUpdated": "2024-09-16T19:04:43.233Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
Mitigation
Phase: Requirements
Description:
- The choice could be made to use a language that is not susceptible to these issues.
Mitigation
Phase: Implementation
Description:
- Review of type casting operations can identify locations where incompatible types are cast.
No CAPEC attack patterns related to this CWE.