P-Netに隣接ネットワークから任意のコードを実行される脆弱性
Summary
P-Netは、CheckPeersブロックの処理で受け取る長さの検証が不足しており、バッファ外への書き込みが起きる脆弱性があります。影響を受けるのは1.0.3より前のバージョンで、攻撃にはセッションを確立できる隣接ネットワークからのアクセスが必要です。サービス停止や任意のコード実行につながるおそれがあるため、修正版である1.0.3への更新を急いでください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
P-Netは、CheckPeersブロックの処理で受け取る長さの検証が不足しており、バッファ外への書き込みが起きる脆弱性があります。影響を受けるのは1.0.3より前のバージョンで、攻撃にはセッションを確立できる隣接ネットワークからのアクセスが必要です。サービス停止や任意のコード実行につながるおそれがあるため、修正版である1.0.3への更新を急いでください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| RT-Labs | P-Net |
< 1.0.3 |
1.0.3 |
Original description The description as published by the source.
P-Net before 1.0.3 does not validate the LengthPeerStationName field of a CheckPeers block in get_check_peer(). The received length (up to 255) was used to copy data into the 241-byte peer station name buffer and to place the terminating NUL byte, so a crafted block writes up to 15 bytes past the end of the buffer. This can lead to a crash (denial of service) or potentially arbitrary code execution.
Requires establishment of session that needs ADJACENT network access.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web rt-labs.com
- web nvd.nist.gov
- web github.com