{"id":"CVE-2026-102758","published":"2026-09-29T18:17:13.047","lastModified":"2026-09-30T21:17:05.347","description":"The `_nx_secure_x509_asn1_tlv_block_parse()` function parses ASN.1 TLV (tag-length-value) blocks out of DER-encoded data. It is the primitive underneath all X.509 certificate parsing in NetX Secure, and therefore runs on certificates supplied by a remote peer during the TLS handshake.\n\n\n\nThe function reads the one-byte ASN.1 tag from the caller's buffer *before* checking that the buffer holds at least one byte. When a caller passes a remaining length of zero, the guard correctly returns `NX_SECURE_X509_ASN1_LENGTH_TOO_LONG`, but the read has already happened one byte past the end of the buffer.\n\n\n\ncode:\n\n\n\nnx_secure/src/nx_secure_x509_asn1_tlv_block_parse.c\n\n\n\n```\n\n\n\nUINT _nx_secure_x509_asn1_tlv_block_parse(const UCHAR *buffer, ULONG *buffer_length, USHORT *tlv_type,\n\n                                          USHORT *tlv_tag_class, ULONG *tlv_length,\n                                          const UCHAR **tlv_data, ULONG *header_length)\n\n\n{\n\n\n\nUINT   current_index;\n\n\n\nUSHORT current_tag;\n\n\n\nULONG  length;\n\n\n\nULONG  length_bytes;\n\n    current_index = 0;\n    current_tag = buffer[current_index];      /* <-- read before the bounds check */\n    if (*buffer_length < 1)\n    {\n        return(NX_SECURE_X509_ASN1_LENGTH_TOO_LONG);\n    }\n\n\n```\n\n\n\nThe remainder of the function is correctly ordered. The multi-byte length path is guarded by `length_bytes > 4 || length_bytes > *buffer_length` before its read loop, the decoded value is checked against `length > *buffer_length`, and the second single-byte length read follows its own `*buffer_length < 1` guard. The tag read is the only load placed ahead of its check.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwes":["CWE-126"],"vendors":[],"products":[],"references":[{"url":"https://github.com/eclipse-threadx/netxduo/security/advisories/GHSA-f95g-xc4w-mrcr","tags":[]}],"exploitRefs":[{"url":"https://github.com/eclipse-threadx/netxduo/security/advisories/GHSA-f95g-xc4w-mrcr","tags":[]}],"hasPoc":true,"ai":{"summary":"The vulnerability is a buffer over-read in NetX Secure's ASN.1 parsing function that occurs when processing X.509 certificates during TLS handshakes. This flaw allows an attacker to read beyond the end of a buffer before checking if sufficient data remains, potentially leading to information disclosure or denial of service.","exploitability":"Exploitation requires a remote peer to supply a malformed X.509 certificate with a zero-length buffer, making it moderately difficult but possible to trigger during TLS connections.","blast_radius":"The impact could affect any system using NetX Secure for TLS connections, particularly those accepting certificates from untrusted sources, potentially leading to widespread denial of service or information leakage.","remediation":"Upgrade to NetX Secure version 2.590 or later to receive the patched ASN.1 parsing function that correctly validates buffer bounds before reading.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["tls","x509","buffer-overflow","denial-of-service"],"model":"garnet-coder","analyzedAt":"2026-10-18T10:15:17.272Z"}}