{"id":"CVE-2026-62975","published":"2026-11-13T18:38:57Z","modified":"2026-11-18T04:03:43Z","title":"BACnet Stack: Replacing a RAMFS record with a shorter one via `AtomicWriteFile(record-access)` can trigger a heap…","vendor":"bacnet-stack","product":"bacnet-stack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00391,"percentile":0.34014,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-cf8g-hp9m-9fvv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bacnet-stack/bacnet-stack/pull/1408","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.8},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"bacnet-stack","affectedVersions":[{"vendor":"bacnet-stack","product":"bacnet-stack","versions":["< 1.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-18T04:02:08.803993Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-125690","exploited":false,"provenance":"source"}}