NULL pointer dereference in Dnsmasq - CVE-2009-2958

 

NULL pointer dereference in Dnsmasq - CVE-2009-2958

Published: June 8, 2025 / Updated: June 13, 2025


Vulnerability identifier: #VU110634
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2009-2958
CWE-ID: CWE-476
Exploitation vector: Adjecent network
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error within the tftp_request() function in tftp.c. A remote attacker can trigger denial of service conditions via a TFTP read (aka RRQ) request with a malformed blksize option.


Affected software

Dnsmasq
Gentoo Linux
net-dns/dnsmasq

How to mitigate CVE-2009-2958

Install update from vendor's website.

Dnsmasq - update to 2.50
net-dns/dnsmasq - update to 2.5.0

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins