ASN1SCCにXERデコード処理の脆弱性、細工されたメッセージで遠隔からコードを実行されるおそれ
Summary
ASN1SCCのXERトークナイザーNT()に、スタックバッファオーバーフローと範囲外読み取りの脆弱性が見つかりました。細工されたXERメッセージで、デコーダーのクラッシュや無限ループ、メモリ内容の漏えいが起きるほか、コードを実行されるおそれもあります。影響を受けるのは4.7.0.1より前のバージョンで、4.7.0.1で修正されています。4.7.0.1への更新を急いでください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
ASN1SCCのXERトークナイザーNT()に、スタックバッファオーバーフローと範囲外読み取りの脆弱性が見つかりました。細工されたXERメッセージで、デコーダーのクラッシュや無限ループ、メモリ内容の漏えいが起きるほか、コードを実行されるおそれもあります。影響を受けるのは4.7.0.1より前のバージョンで、4.7.0.1で修正されています。4.7.0.1への更新を急いでください。
Original description The description as published by the source.
ASN1SCC is an open source ASN.1 compiler for embedded systems. Prior to 4.7.0.1, the XER tokenizer NT() in asn1crt/asn1crt_encoding_xer.c, which is reached by all XER decode paths, copies tag characters into a fixed char Value[100] field without a length bound and reads input and lookahead bytes without checking the buffer count. A crafted XER message with an overlong tag can overwrite the tokenizer's stack frame, while a truncated tag or unterminated processing-instruction or comment sequence can read beyond the input and may cause a CPU spin. The flaws can disclose adjacent memory, corrupt stack data, crash or hang the decoder, and potentially permit code execution. This issue is fixed in version 4.7.0.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- REDHAT Red Hat
- web github.com