CVE-2026-40279: BACnet Stack: Undefined-behavior signed left shift in `decode_signed32()`

Published Apr 21, 2026
·
Updated

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, decodesigned32() in src/bacnet/bacint.c reconstructs a 32-bit signed integer from four APDU bytes using signed left shifts. When any of the four bytes has bit 7 set (value ≥ 0x80), the left-shift operation overflows a signed int32t, which is undefined behavior per the C standard. This is flagged thousands of times per minute by UndefinedBehaviorSanitizer on any BACnet input containing signed-integer property values with high-bit-set bytes. This vulnerability is fixed in 1.4.3.

Affected Software

2 affected components
BACnet Stack BACnet Stack<1.4.3
Bacnetstack Bacnet Stack<1.4.3

Event History

Apr 21, 2026
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40279?

CVE-2026-40279 has not been assigned a specific severity rating, but it involves undefined behavior that could lead to vulnerabilities in the BACnet Stack.

2

How do I fix CVE-2026-40279?

To address CVE-2026-40279, update the BACnet Stack to version 1.4.3 or later.

3

What systems are affected by CVE-2026-40279?

CVE-2026-40279 affects all versions of the BACnet Stack prior to version 1.4.3.

4

What is the impact of CVE-2026-40279?

The impact of CVE-2026-40279 includes potential integer exploitation due to signed left shift operations, which can result in undefined behavior.

5

What is the BACnet Stack?

The BACnet Stack is an open-source protocol stack designed for embedded systems that implement the BACnet protocol.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203