Initializing the DNS stub resolver from an /etc/resolv.conf file, or a LOCALDOMAIN environment variable, whose search list contains a domain of roughl...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSeglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSglibc |
< 2.35-0ubuntu3.18→ 2.35-0ubuntu3.18 |
2.35-0ubuntu3.18 |
| Ubuntu:24.04:LTSglibc |
< 2.39-0ubuntu8.12→ 2.39-0ubuntu8.12 |
2.39-0ubuntu8.12 |
| Ubuntu:26.04:LTSglibc |
< 2.43-2ubuntu2.7→ 2.43-2ubuntu2.7 |
2.43-2ubuntu2.7 |
Original description The description as published by the source.
Initializing the DNS stub resolver from an /etc/resolv.conf file, or a LOCALDOMAIN environment variable, whose search list contains a domain of roughly 200 characters or more in the GNU C Library version 2.26 to 2.44 results in an assertion failure which aborts the process. The resolver truncates the search list when copying it into the fixed-size _res.defdname buffer, then asserts that the copy is consistent with the full configuration. The consistency check compared against the wrong size and did not handle a first entry that does not fit, so a correctly truncated list failed the assertion. Any process that resolves names through the library is affected, including long-running processes that reload /etc/resolv.conf on the next query after it changes. Search domains are commonly written to /etc/resolv.conf from data received over DHCP or from a VPN server, so an attacker on the local network may be able to trigger this without privileges on the target system, subject to validation by the network configuration software.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report openwall.com
- report sourceware.org