ASN1SCCに範囲外書き込みの脆弱性、細工されたデータで任意コード実行のおそれ
Summary
ASN.1コンパイラのASN1SCCに、範囲外書き込みの脆弱性が見つかりました。細工されたデータをデコードすると、ヒープやスタックのメモリが壊れ、クラッシュやコード実行につながるおそれがあります。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.
ASN.1コンパイラのASN1SCCに、範囲外書き込みの脆弱性が見つかりました。細工されたデータをデコードすると、ヒープやスタックのメモリが壊れ、クラッシュやコード実行につながるおそれがあります。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, BitStream_DecodeConstraintWholeNumber in asn1crt/asn1crt_encoding.c reads enough bits for a constrained integer but does not reject values above the declared range when the encoded range is not a power of two. Generated uPER and ACN decoders for variable-size SEQUENCE OF, OCTET STRING, BIT STRING, and string values use the invalid result as a loop or copy length, so a crafted over-range size field can write beyond a destination buffer. Decoding untrusted affected data can corrupt heap or stack memory, cause a crash, or 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
- web github.com