Description
libtins through 4.6 contains a heap out-of-bounds read vulnerability in DNS::compose_name in src/dns.cpp that allows remote attackers to read past the packet buffer by sending a label ending exactly at the packet end. Attackers can deliver crafted DNS packets whose additional, answer, or authority records trigger a one-byte read when parsed, crashing applications on hardened allocators.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libtins | libtins | ≤ 4.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libtins | No fix yet | — |
| Debian 13 | libtins | No fix yet | — |
| Debian 12 | libtins | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libtins | No fix yet | — |
| Ubuntu 26.04 LTS | libtins | No fix yet | — |
| Ubuntu 24.04 LTS | libtins | No fix yet | — |
| Ubuntu 22.04 LTS | libtins | No fix yet | — |
| Ubuntu 20.04 LTS | libtins | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libtins | No fix yet | — |
References
- https://hackmd.io/@haindpwn/libtins-dns-name-parsing-oob-read third-party-advisory
- https://github.com/mfontanini/libtins/blob/v4.6/src/dns.cpp#L338-L389 technical-description
- https://github.com/mfontanini/libtins product
- VulnCheck Advisory: libtins through 4.6 Heap Out-of-Bounds Read via DNS::compose_name third-party-advisory