| タイトル | Pavel OdintsovのFastNetMonにおける複数の脆弱性 |
|---|---|
| 概要 | FastNetMon Community Edition バージョン1.2.9までに、パケットキャプチャバッファの割り当てで整数オーバーフローの脆弱性が存在します。src/packet_storage.hpp の allocate_buffer() 関数では、memory_size_in_bytes を「buffer_size_in_packets * (max_captured_packet_size + sizeof(fastnetmon_pcap_pkthdr_t)) + sizeof(fastnetmon_pcap_file_header_t)」として計算しており、ここで使用されているのは符号なし32ビット整数の算術演算です。max_captured_packet_size が1500、sizeof(fastnetmon_pcap_pkthdr_t) が16の場合、各パケットは約1516バイトを必要とします。もし buffer_size_in_packets が約2,832,542を超えると、この乗算がオーバーフローを起こし、期待したよりもはるかに小さいメモリを割り当ててしまいます。その後の write_packet() 呼び出しで割り当てられたバッファの範囲外に書き込みが行われ、ヒープの破損が発生します。buffer_size_in_packets の値は ban_details_records_count 設定パラメータから取得されており、これは atoi() を用いて解析されているため、オーバーフローの検査を行っていません。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年5月29日11:16 |
| 最終更新日 | 2026年5月29日11:16 |
| CVSS3.0 : 重要 | |
| スコア | 7.1 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月29日] 掲載 |
2026年5月29日11:16 |
| 概要 | FastNetMon Community Edition through 1.2.9 contains an integer overflow vulnerability in the packet capture buffer allocation. In src/packet_storage.hpp, the allocate_buffer() function computes memory_size_in_bytes as 'buffer_size_in_packets * (max_captured_packet_size + sizeof(fastnetmon_pcap_pkthdr_t)) + sizeof(fastnetmon_pcap_file_header_t)' using unsigned int (32-bit) arithmetic. With max_captured_packet_size=1500 and sizeof(fastnetmon_pcap_pkthdr_t)=16, each packet requires approximately 1516 bytes. If buffer_size_in_packets exceeds approximately 2,832,542, the multiplication overflows, resulting in a much smaller allocation than expected. Subsequent write_packet() calls then write past the allocated buffer, causing heap corruption. The buffer_size_in_packets value is derived from the ban_details_records_count configuration parameter, which is parsed using atoi() with no overflow checking. |
|---|---|
| 公表日 | 2026年5月27日2:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月27日23:34 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:* | 1.2.9 | ||||