Undefined behavior via signed SHA-256 left shift
Published Jun 6, 2024 · Updated Mar 14, 2025
Undefined behavior in dnsmasq 2.9 allows remote attackers to trigger a signed integer overflow by sending a crafted DNS query. The built-in SHA-256 transform shifts a byte promoted to signed int by 24 bits while forward_query hashes the question, which UBSan flags as unrepresentable. The path requires dnsmasq's built-in hash implementation; the developer states that any wrong hash is compared with another calculated identically, leaving no practical security impact.
Summary
What happened
Undefined behavior in dnsmasq 2.9 allows remote attackers to trigger a signed integer overflow by sending a crafted DNS query. The built-in SHA-256 transform shifts a byte promoted to signed int by 24 bits while forward_query hashes the question, which UBSan flags as unrepresentable. The path requires dnsmasq's built-in hash implementation; the developer states that any wrong hash is compared with another calculated identically, leaving no practical security impact.
The record
- CVE
- CVE-2023-49441
- Published
- Jun 6, 2024
- Updated
- Mar 14, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 6, 2024CVE publishedPublication date reported by the CVE source.
- Mar 14, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- UBSan DNS-query reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo