gethostbyaddr and gethostbyaddr_r may incorrectly handle DNS response
The GNU C Library glibc
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| The GNU C Library glibc |
| No fix yet |
Original description
Calling gethostbyaddr or gethostbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend in the GNU C Library version 2.34 to version 2.43 could, with a crafted response from the configured DNS server, result in a violation of the DNS specification that causes the application to treat a non-answer section of the DNS response as a valid answer.
From the CVE record · glibc