Summary
BACnet Stack contains a stack-based out-of-bounds write in the Notification Class object when processing an AddListElement operation for the recipient-list property. A request that reaches this code path may corrupt memory, potentially disrupting the process or causing more serious effects depending on the deployment and runtime protections.
Affected context
The issue is in BACnet Stack's Notification Class object implementation, specifically handling AddListElement for the recipient-list property. It affects deployments using vulnerable releases where this operation can reach the affected code path. The description does not specify authentication requirements or additional deployment conditions.
Exploit preconditions
- Attack surface: A BACnet service using the affected Notification Class implementation
- Required access: The ability to cause an AddListElement operation to be processed; whether authentication is required depends on deployment controls
- Trigger point: Handling an AddListElement operation for the recipient-list property
- Why exploitation is possible: The operation can cause a write beyond the bounds of a stack-based buffer
Why this happens
The implementation performs a stack-based write without adequately ensuring that the destination buffer can hold the data being handled. This is a stack-based buffer overflow, mapping to CWE-121; it is also an out-of-bounds write (CWE-787). Input validation and bounds checks must ensure recipient-list operations cannot exceed the storage capacity.
Potential impact
- The process may crash or become unavailable
- Memory corruption could affect other data used by the process
- Depending on platform protections and runtime conditions, corrupted memory could have more serious security consequences
General mitigation guidance
Mitigation generally focuses on ensuring that recipient-list operations cannot write beyond their allocated storage.
Common defensive patterns include:
- Enforcing bounds checks before copying or appending data to fixed-size buffers
- Rejecting inputs that exceed defined protocol or implementation limits
- Using memory-safe abstractions or APIs that track destination capacity
- Limiting access to BACnet operations according to least-privilege principles
- Applying defense-in-depth runtime protections and testing boundary conditions
How teams detect issues like this
High-level detection approaches include:
- Static analysis for unchecked writes, buffer operations, and mismatches between input lengths and destination capacity
- Code review of recipient-list handling and AddListElement paths
- Boundary-focused tests for empty, maximum-sized, and oversized list values
- Policy checks that require bounds validation for fixed-size buffer operations
Automated code review tools may help identify risky memory-handling patterns.

