Out-of-bounds Read in Dnsmasq

CVE-2026-5172

A buffer overflow in dnsmasq’s extract_addresses() function allows an attacker to trigger a heap out-of-bounds read and crash by exploiting a malformed DNS response, enabling extract_name() to advance the pointer past the record’s end.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.

EPSS exploit prediction

EPSS 0.027, 86.1th percentile (scored ); up from 0.007 30 days earlier. About EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-5172: rose from 0.007 to 0.027.

EPSS over last 30 days · oldest: 0.007 · newest: 0.027 · change: +0.020

Affected products

  • Dnsmasq — versions 0, 2.93, 2.92rel2

Weakness classification (CWE)

Public exploits and proof-of-concept code

1 public repository with exploit or proof-of-concept code for this CVE:

  • lottiedeyan/CVE20265172poc (last pushed 2026-05-27): CVE-2026-5172: buffer overflow in extract_addresses() on crafted resource record PoC

References