| タイトル | Pavel OdintsovのFastNetMonにおけるレングスパラメーターの不整合による処理に関する脆弱性 |
|---|---|
| 概要 | FastNetMon Community Edition バージョン 1.2.9 までには、拡張長フラグが設定された BGP パス属性を誤って解析するために、境界外メモリアクセスの脆弱性が存在します。src/bgp_protocol.hpp の parse_raw_bgp_attribute() 関数は、extended_length_bit が設定されていることを正しく識別し length_of_length_field を 2 に設定しますが、属性値の長さに対しては単一バイトのみを読み取っています(173行目の attribute_value_length = value[2])。RFC 4271 第4.3節によると、拡張長ビットが設定されている場合、属性長フィールドは 2 オクテットであり、値は value[2] と value[3] からの 16 ビットビッグエンディアン整数として読み取る必要があります。その結果、255バイトを超える属性の長さは低バイトに silently truncated(黙って切り捨て)されます(たとえば、300バイト(0x012C)は 0x2C(44バイト)として読み取られます)。残りの256バイトは以降の属性として誤解釈され、そのため連鎖的な解析失敗や境界外メモリアクセスが発生します。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年5月29日11:16 |
| 最終更新日 | 2026年5月29日11:16 |
| CVSS3.0 : 警告 | |
| スコア | 6.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月29日] 掲載 |
2026年5月29日11:16 |
| 概要 | FastNetMon Community Edition through 1.2.9 has out-of-bounds memory access because it incorrectly parses BGP path attributes with the extended length flag set. In src/bgp_protocol.hpp, the parse_raw_bgp_attribute() function correctly identifies when extended_length_bit is set and sets length_of_length_field to 2, but then reads only a single byte for the attribute value length (attribute_value_length = value[2] at line 173). Per RFC 4271 Section 4.3, when the Extended Length bit is set, the Attribute Length field is two octets and the value should be read as a 16-bit big-endian integer from value[2] and value[3]. As a result, any attribute longer than 255 bytes has its length silently truncated to the low byte (e.g., 300 bytes = 0x012C is read as 0x2C = 44 bytes). The remaining 256 bytes are then misinterpreted as subsequent attributes, causing cascading parse failures and potential out-of-bounds memory access. |
|---|---|
| 公表日 | 2026年5月27日1:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月27日23:23 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:* | 1.2.9 | ||||