CVE-2021-45956

Dnsmasq 2.86 has a heap-based buffer overflow in print_mac (called from log_packet and dhcp_reply)

Critical · published December 31, 2021

CVSS v3.1
9.8
EPSS
3%
Percentile
84.7
In the wild
Unconfirmed
What it is

🚨 A heap-based buffer overflow in Dnsmasq 2.86 is a ticking time bomb! This vulnerability can lead to critical failures in your network's DHCP service. 🔥 Think of it like a waiter in a busy restaurant who keeps piling more and more orders on a single plate without checking if it can handle the weight. Eventually, the plate breaks, and everything crashes to the floor! An attacker could exploit this vulnerability to overwrite memory, potentially allowing them to run arbitrary code on the server. This could lead to total control over the affected device or even compromise the entire network. The stakes are high—don't let this one slip through your fingers!

Put simply

Think of it like a waiter in a busy restaurant who keeps piling more and more orders on a single plate without checking if it can handle the weight. Eventually, the plate breaks, and everything crashes to the floor! This issue arises from a heap-based buffer overflow in the `print_mac` function, which is executed during packet logging and DHCP replies. It means that if an attacker can send specially crafted packets, they could potentially manipulate memory allocation.

What to do

An attacker could exploit this vulnerability to overwrite memory, potentially allowing them to run arbitrary code on the server. This could lead to total control over the affected device or even compromise the entire network. The stakes are high—don't let this one slip through your fingers! Patch to Dnsmasq version 2.86 or later to mitigate this vulnerability. Additionally, review your network configuration to ensure no untrusted packets can reach your DHCP server and consider implementing network segmentation as an extra layer of defense. You've got this! Follow these steps, and you'll protect your network like a pro! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02519 · 84.7th percentile
Published
2021-12-31T23:53Z
EPSS history
Timeline
  • 31 DEC 23:53Z
    Dnsmasq 2.86 has a heap-based buffer overflow in print_mac (called from log_packet and dhcp_reply)
    cvelistv5