Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112274 Overview
CVE-2026-112274 is an out-of-bounds read vulnerability in the libtins packet crafting and sniffing library through version 4.6. The flaw resides in DNS::soa_record::init, which processes Start of Authority (SOA) record data without validating NUL terminators. When an attacker supplies raw SOA RDATA lacking a zero byte, a strlen call reads past the heap buffer boundary. Applications that use the buffer constructor to parse untrusted DNS traffic may leak adjacent heap memory contents or crash. The weakness is classified as [CWE-125] Out-of-bounds Read.
Critical Impact
Remote attackers can trigger heap buffer over-reads in any application that parses attacker-controlled DNS SOA records with libtins, enabling denial of service and potential memory disclosure.
Affected Products
- libtins versions up to and including 4.6
- Applications and tools that link against the vulnerable libtins versions for DNS packet parsing
- Network monitoring, IDS/IPS, and research tools built on libtins
Discovery Timeline
- 2026-10-19 - CVE-2026-112274 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112274
Vulnerability Analysis
The libtins library parses DNS packets through its DNS::soa_record class. The init method invokes strlen on fields inside an attacker-supplied RDATA buffer when constructing the record from raw bytes. SOA records normally contain two domain-name fields (MNAME and RNAME) encoded as sequences of length-prefixed labels terminated by a zero byte. The parser assumes these fields contain the expected NUL terminator and does not verify that the terminator falls inside the input buffer. When the terminator is missing, strlen continues reading adjacent heap memory until it encounters a zero byte somewhere else in the process address space.
The impact is confined to confidentiality and availability of the parsing process. The attacker cannot write memory, but may crash the process or, in some layouts, cause sensitive heap contents to be copied into the parsed record and exposed back through application logic.
Root Cause
The root cause is missing bounds validation in the SOA record constructor. The vulnerable code path at src/dns.cpp lines 698-710 uses strlen to compute the length of embedded domain names before confirming that a NUL byte exists within the buffer. The constructor trusts the input format rather than enforcing it.
Attack Vector
Exploitation requires an attacker to deliver a crafted DNS packet to an application that parses SOA records with libtins. The attack vector is network-based and requires no authentication or user interaction. The attacker constructs an SOA RDATA payload where the MNAME or RNAME label sequence omits the trailing zero byte, then delivers it through any channel the target application monitors or accepts. Full technical analysis is available in the HackMD write-up on libtins DNS name parsing OOB read and the VulnCheck advisory.
Detection Methods for CVE-2026-112274
Indicators of Compromise
- Unexpected crashes or segmentation faults in processes linking libtins, especially those parsing DNS traffic
- Malformed DNS SOA responses where MNAME or RNAME fields lack a terminating zero byte
- Anomalous DNS traffic patterns targeting hosts running libtins-based tooling such as sniffers or IDS sensors
Detection Strategies
- Inspect DNS SOA responses with a protocol validator to flag records where label sequences do not end in a zero byte within the declared RDATA length
- Run libtins-dependent applications under AddressSanitizer or Valgrind in test environments to surface out-of-bounds reads triggered by fuzzed inputs
- Correlate process crashes on monitoring hosts with inbound DNS traffic timestamps to identify triggering packets
Monitoring Recommendations
- Enable core dump collection on sensors and tools built on libtins to capture crash artifacts for forensic review
- Monitor DNS resolver and sniffer logs for repeated malformed SOA record events from the same source
- Track upstream commits on the libtins GitHub repository for patch availability
How to Mitigate CVE-2026-112274
Immediate Actions Required
- Identify all internal applications, sensors, and tools that depend on libtins version 4.6 or earlier
- Restrict exposure of libtins-based parsers to untrusted DNS traffic by placing them behind filtering layers
- Validate DNS SOA record structure in application code before passing raw buffers to DNS::soa_record constructors
Patch Information
At the time of publication, no fixed release had been identified in the NVD entry. Monitor the libtins GitHub repository and the VulnCheck advisory for CVE-2026-112274 for upstream fixes. Downstream distributions that package libtins should be tracked for backported patches.
Workarounds
- Pre-validate DNS RDATA buffers in calling code to confirm that SOA MNAME and RNAME fields terminate with a zero byte before invoking libtins parsers
- Wrap parsing calls in exception or signal handlers to prevent process termination from propagating to monitoring infrastructure
- Deploy upstream DNS filtering to drop malformed SOA responses before they reach libtins-based tools
# Example: identify binaries linked against vulnerable libtins on a Linux host
for bin in $(find /usr /opt -type f -executable 2>/dev/null); do
ldd "$bin" 2>/dev/null | grep -q libtins && echo "$bin"
done
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

