Out-of-bounds write when parsing AR Vendor Block requests
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Fix
- Fixed in 1.0.3
- Public exploit
- None on Exploit-DB, Metasploit or GitHub
Summary
P-Net, an open-source PROFINET device stack used in industrial automation devices, is affected when built with the AR Vendor Block option enabled (disabled by default). A specially crafted Connect request can trigger an out-of-bounds write, which may crash the device or potentially allow arbitrary code execution.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
P-Net before 1.0.3, when built with PNET_OPTION_AR_VENDOR_BLOCKS enabled, parses a data length from a field of the ARVendorBlock request that is not part of the block definition and uses it as the number of bytes to copy into a fixed-size buffer, without comparing it with the buffer size or the block length. A crafted Connect request causes an out-of-bounds write. This can lead to a crash (denial of service) or potentially arbitrary code execution. This option is disabled by default.
Affected versions
- RT-Labs P-Net
fixed in 1.0.3