CVE-2018-10238

bvlc.c in skarg BACnet Protocol Stack bacserv 0.9.1 and 0.8.5 is affected by a Buffer Overflow because of a lack of packet-size validation

published April 20, 2018

CVSS
—
EPSS
2%
Percentile
75.7
In the wild
Unconfirmed
What it is

⚠️ A sneaky buffer overflow lurks in the BACnet Protocol Stack, ready to pounce if packet sizes aren’t validated! Think of it like a pizza delivery where the driver assumes any order can fit in the delivery bag. If they overload it without checking, the bag bursts, and all your delicious toppings are everywhere! An attacker could exploit this vulnerability to crash the BACnet/IP device, potentially disrupting communication and control in smart building systems. This could lead to a complete loss of functionality in connected devices, which is absolutely devastating in a smart home or commercial environment.

Put simply

Think of it like a pizza delivery where the driver assumes any order can fit in the delivery bag. If they overload it without checking, the bag bursts, and all your delicious toppings are everywhere! The vulnerability arises due to a lack of packet-size validation in the bvlc_bdt_forward_npdu() function. When the function calls bvlc_encode_forwarded_npdu(), it copies data into a local stack frame without checking the size, resulting in a buffer overflow and clobbering the security canary.

What to do

An attacker could exploit this vulnerability to crash the BACnet/IP device, potentially disrupting communication and control in smart building systems. This could lead to a complete loss of functionality in connected devices, which is absolutely devastating in a smart home or commercial environment. Upgrade to version 0.8.6 of the BACnet Protocol Stack immediately to mitigate this vulnerability. Additionally, ensure proper packet-size validation is implemented in your own code handling BACnet messages. You've got this! Follow these steps and you'll keep your smart systems secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01607 · 75.7th percentile
Published
2018-04-20T07:00Z
EPSS history
Timeline
  • 20 APR 07:00Z
    bvlc.c in skarg BACnet Protocol Stack bacserv 0.9.1 and 0.8.5 is affected by a Buffer Overflow because of a lack of packet-size validation
    cvelistv5