CVE-2026-10672
Full vulnerability record from the local CVENow database.
Description
subsys/net/lib/lwm2m/lwm2m_pull_context.c copied the firmware-update Package URI into a fixed static buffer (context.uri, size CONFIG_LWM2M_SWMGMT_PACKAGE_URI_LEN, default 128) with memcpy(context.uri, uri, LWM2M_PACKAGE_URI_LEN), copying exactly the destination size with no length validation. The Firmware-Update object stores the server-supplied Package URI (/5/0/1) in a 255-byte buffer, so a LwM2M management server (or an on-path attacker on a session lacking strong DTLS) can WRITE a URI of 128-254 characters; only the first 128 bytes are then copied into context.uri with no NUL terminator. That buffer is subsequently consumed as a C string by http_parser_parse_url(context.uri, strlen(context.uri), ...), strlen-based CoAP URI-path/PROXY-URI option appends, and lwm2m_parse_peerinfo(), causing an out-of-bounds read of adjacent static memory. The over-read bytes are appended to outbound CoAP requests (information disclosure of adjacent device memory to the server/proxy) and can crash the device (denial of service). The vulnerable copy was introduced by the pull-context refactor (first released in v3.0.0) and is present through v4.4.0; the default-on CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT path is affected. The fix adds a strlen(uri) >= sizeof(context.uri) check returning -ENOMEM and switches to strcpy(), guaranteeing a bounded, NUL-terminated buffer.
View original CVE JSON
{
"id": "CVE-2026-10672",
"sourceIdentifier": "[email protected]",
"published": "2026-07-14T15:16:55.560",
"lastModified": "2026-10-24T21:10:00.130",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "subsys/net/lib/lwm2m/lwm2m_pull_context.c copied the firmware-update Package URI into a fixed static buffer (context.uri, size CONFIG_LWM2M_SWMGMT_PACKAGE_URI_LEN, default 128) with memcpy(context.uri, uri, LWM2M_PACKAGE_URI_LEN), copying exactly the destination size with no length validation. The Firmware-Update object stores the server-supplied Package URI (/5/0/1) in a 255-byte buffer, so a LwM2M management server (or an on-path attacker on a session lacking strong DTLS) can WRITE a URI of 128-254 characters; only the first 128 bytes are then copied into context.uri with no NUL terminator. That buffer is subsequently consumed as a C string by http_parser_parse_url(context.uri, strlen(context.uri), ...), strlen-based CoAP URI-path/PROXY-URI option appends, and lwm2m_parse_peerinfo(), causing an out-of-bounds read of adjacent static memory. The over-read bytes are appended to outbound CoAP requests (information disclosure of adjacent device memory to the server/proxy) and can crash the device (denial of service). The vulnerable copy was introduced by the pull-context refactor (first released in v3.0.0) and is present through v4.4.0; the default-on CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT path is affected. The fix adds a strlen(uri) >= sizeof(context.uri) check returning -ENOMEM and switches to strcpy(), guaranteeing a bounded, NUL-terminated buffer."
},
{
"lang": "es",
"value": "subsys/net/lib/lwm2m/lwm2m_pull_context.c copió la URI del paquete de actualización de firmware en un búfer estático fijo (context.uri, tamaño CONFIG_LWM2M_SWMGMT_PACKAGE_URI_LEN, predeterminado 128) con memcpy(context.uri, uri, LWM2M_PACKAGE_URI_LEN), copiando exactamente el tamaño de destino sin validación de longitud. El objeto de actualización de firmware almacena la URI del paquete proporcionada por el servidor (/5/0/1) en un búfer de 255 bytes, por lo que un servidor de gestión LwM2M (o un atacante en ruta en una sesión que carece de DTLS fuerte) puede ESCRIBIR una URI de 128-254 caracteres; solo los primeros 128 bytes se copian luego en context.uri sin terminador NUL. Ese búfer es consumido posteriormente como una cadena C por http_parser_parse_url(context.uri, strlen(context.uri), ...), adiciones de opciones CoAP URI-path/PROXY-URI basadas en strlen, y lwm2m_parse_peerinfo(), causando una lectura fuera de límites de memoria estática adyacente. Los bytes leídos en exceso se añaden a las solicitudes CoAP salientes (revelación de información de la memoria adyacente del dispositivo al servidor/proxy) y pueden bloquear el dispositivo (denegación de servicio). La copia vulnerable fue introducida por la refactorización de pull-context (lanzada por primera vez en v3.0.0) y está presente hasta la v4.4.0; la ruta CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT, activada por defecto, está afectada. La solución añade una comprobación strlen(uri) >= sizeof(context.uri) que devuelve -ENOMEM y cambia a strcpy(), garantizando un búfer acotado y terminado en NUL."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "zephyrproject",
"product": "zephyr",
"defaultStatus": "unaffected",
"collectionURL": "https://github.com/zephyrproject-rtos/zephyr",
"packageName": "zephyr",
"programFiles": [
"subsys/net/lib/lwm2m/lwm2m_pull_context.c"
],
"versions": [
{
"version": "3.0.0",
"lessThan": "4.3.1",
"versionType": "semver",
"status": "affected"
},
{
"version": "4.4.0",
"lessThan": "4.4.1",
"versionType": "semver",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 3.9,
"impactScore": 4.2
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
"baseScore": 9.1,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.2
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-14T15:28:04.126168Z",
"id": "CVE-2026-10672",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-125"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:zephyrproject:zephyr:3.7.1:*:*:*:*:*:*:*",
"matchCriteriaId": "BC357EA6-64C4-4662-A627-00E8FAA3C19A"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:zephyrproject:zephyr:4.2.1:*:*:*:*:*:*:*",
"matchCriteriaId": "C52FE45C-A4FE-4CF9-84FE-5C74756C6993"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:zephyrproject:zephyr:4.3.0:*:*:*:*:*:*:*",
"matchCriteriaId": "525511D1-B8D8-4D8D-BADE-735F7B859834"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/zephyrproject-rtos/zephyr/commit/99a164df5cea5af76e32b57c6d51854f018969a2",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-rf6j-4mpp-j9mf",
"source": "[email protected]",
"tags": [
"Exploit",
"Mitigation",
"Patch",
"Vendor Advisory"
]
},
{
"url": "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-rf6j-4mpp-j9mf",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Mitigation",
"Patch",
"Vendor Advisory"
]
}
]
}