CVE-2026-40719: Maradns Deadwood Use Before Null Check Dw Get Dnamecve-2026-40719-maradns-deadwood-use-before-null-check-dw-get-dname
The pointer returned by dw_get_dname() is passed to dwc_lower_case() BEFORE it is checked for NULL. If dw_get_dname() fails (for example, when parsing a malformed CNAME referral with embedded NULL bytes in a label), it returns NULL and dwc_lower_case() will dereference a NULL pointer. The NULL check on the result must be performed BEFORE calling dwc_lower_ca