# CVE-2026-62975: BACnet Stack: Replacing a RAMFS record with a shorter one via `AtomicWriteFile(record-access)` can trigger a heap out-of-bounds read

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-13T18:38:57.163Z
- Modified: 2026-11-18T05:19:22.290Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- bacnet-stack bacnet-stack: < 1.5.1

## References

- <https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-cf8g-hp9m-9fvv> (exploit)
- <https://github.com/bacnet-stack/bacnet-stack/pull/1408>

## Sources

- CVE List: [CVE-2026-62975](https://www.cve.org/CVERecord?id=CVE-2026-62975), CVE Terms of Use, modified 2026-11-18
- NVD: [CVE-2026-62975](https://nvd.nist.gov/vuln/detail/CVE-2026-62975), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-62975 · Whole record: https://cve.day/CVE-2026-62975.json · Rebuilt by cve.day 2026-11-25T22:59:50.776Z
