# CVE-2026-45265 - Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack

DevFeed: [CVE-2026-45265 - Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack](<https://devfeed.tech/articles/cve-2026-45265-atomic-read-file-recordcount-stack-based-out-of-bounds-write-in-bacnet-stack-130953.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-45265>)

Author: CVEFEED.io; github.com

Published: 2026-11-12T20:18:38Z

Content type: article

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [bacnet-stack](<https://devfeed.tech/tags/bacnet-stack.md>), [bacnetstack](<https://devfeed.tech/tags/bacnetstack.md>), [buffer-overflow](<https://devfeed.tech/tags/buffer-overflow.md>), [cve-2026-45265](<https://devfeed.tech/tags/cve-2026-45265.md>), [out-of-bounds-write](<https://devfeed.tech/tags/out-of-bounds-write.md>), [request](<https://devfeed.tech/tags/request.md>)

## AI overview

Before versions 1.4.4 and 1.5.1, bacnet-stack's server can overflow a stack buffer while processing a malicious Atomic-Read-File request in record access mode. The request's excessively large RecordCount controls a loop that writes into a stack-allocated BACNET_ATOMIC_READ_FILE_DATA structure sized for one fileData element; at i = 1, the code passes an out-of-bounds pointer to memmove(). The issue is patched in versions 1.4.4 and 1.5.1.

## Source excerpt

CVE ID :CVE-2026-45265 Published : Nov. 12, 2026, 8:18 p.m. | 1 hour, 51 minutes ago Description :BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.4 and 1.5.1, there is a stack-based out-of-bounds write / stack-buffer-overflow in bacnet-stack when the server processes a malicious Atomic-Read-File request in record access mode. The bug is triggered on the real server side. A crafted request can set an excessively large RecordCount, which is later used as the loop bound for writing record data into a stack-allocated BACNET_ATOMIC_READ_FILE_DATA data structure. However, the stack object only has space for one fileData element. When the loop reaches i = 1, the code computes &data->fileData[1], which is already out of bounds, and the resulting invalid pointer is passed down to memmove(), causing a stack-buffer-overflow. This issue has been patched in versions 1.4.4 and 1.5.1. Severity: 8.2 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...