CVE-2026-62975 in BACnet Stackinfo

Summary

by MITRE • 11/13/2026

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to version 1.5.1, the RAMFS-backed FILE implementation accepts AtomicWriteFile(record-access) requests that replace existing records with caller-controlled content. If a client replaces a record with shorter data, the backend can shrink the heap allocation and then continue processing with a trailing-copy length derived from the old layout. During that replace path, the RAMFS backend computes the trailing-copy length from the old file layout, then shrinks the heap allocation, and finally uses the stale length in memmove(). As a result, the source range of that memmove() can extend beyond the end of the reallocated heap buffer, producing a heap out-of-bounds read. This issue has been patched in versions 1.5.1 and 1.6.0.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/13/2026

The BACnet Stack is an open-source C library designed to implement the Building Automation and Control Networks protocol for embedded systems, facilitating communication between devices such as HVAC controllers, sensors, and access control units in smart building environments. A critical vulnerability exists within the RAMFS-backed FILE implementation of this stack prior version 1.5.1, specifically affecting how atomic write file operations are handled during record replacement scenarios. This flaw stems from a logic error in memory management where the system fails to correctly update buffer boundaries after shrinking heap allocations, leading to potential out-of-bounds memory access.

The technical root cause lies in the sequence of operations performed when a client issues an AtomicWriteFile request that replaces an existing record with data of shorter length. The backend first computes the trailing-copy length based on the old file layout, then shrinks the underlying heap allocation to accommodate the new, smaller size. However, it subsequently uses this stale, pre-shrink length value in a memmove operation intended to copy remaining data. Because the buffer has already been reallocated to a smaller size, the source range for this memory move can extend beyond the end of the newly allocated heap buffer. This results in a heap out-of-bounds read, allowing an attacker with network access to the BACnet device to read arbitrary memory contents from the target system's heap space.

From a security classification perspective, this vulnerability aligns with CWE-125: Out-of-bounds Read, as it involves accessing memory beyond the intended buffer boundary. In terms of attack vectors and tactics, this flaw is relevant to ATT&CK technique T1083: File and Directory Discovery, since an out-of-bounds read can potentially leak sensitive information stored in adjacent heap regions, such as authentication tokens or configuration data. The operational impact includes potential disclosure of confidential system memory contents, which could aid further exploitation attempts against the embedded device. While this specific flaw is a read vulnerability rather than a write corruption, it compromises confidentiality and may destabilize application behavior depending on what sensitive data resides in the adjacent heap space.

The issue has been addressed in BACnet Stack versions 1.5.1 and 1.6.0 through corrected memory management logic that ensures buffer boundaries are properly updated before performing subsequent memory operations. System administrators and developers integrating this stack into embedded devices should immediately upgrade to these patched versions to mitigate the risk of information disclosure via heap out-of-bounds reads. Additionally, implementing strict input validation for record sizes and ensuring that all memory reallocations update associated length variables prior to use is recommended as a defense-in-depth measure against similar logic errors in network-facing protocols.

Responsible

GitHub M

Reservation

07/15/2026

Disclosure

11/13/2026

Moderation

accepted

CPE

ready

EPSS

0.00263

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!