diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-01-21 21:26:03 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-04 15:29:59 +0100 |
commit | 525478a25143fa1d040fd857600415fb2e4c0fe1 (patch) | |
tree | 925ad696be3ee1a4be359bbd0d00b00d4a973805 /sunrpc/rpc_thread.c | |
parent | c3419ac61555cefb3c0762c17c1cf66d31bc0940 (diff) | |
download | glibc-525478a25143fa1d040fd857600415fb2e4c0fe1.tar.gz glibc-525478a25143fa1d040fd857600415fb2e4c0fe1.tar.xz glibc-525478a25143fa1d040fd857600415fb2e4c0fe1.zip |
CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018]
The IPv4 address parser in the getaddrinfo function is changed so that it does not ignore trailing whitespace and all characters after it. For backwards compatibility, the getaddrinfo function still recognizes legacy name syntax, such as 192.000.002.010 interpreted as 192.0.2.8 (octal). This commit does not change the behavior of inet_addr and inet_aton. gethostbyname already had additional sanity checks (but is switched over to the new __inet_aton_exact function for completeness as well). To avoid sending the problematic query names over DNS, commit 6ca53a2453598804a2559a548a08424fca96434a ("resolv: Do not send queries for non-host-names in nss_dns [BZ #24112]") is needed. (cherry picked from commit 108bc4049f8ae82710aec26a92ffdb4b439c83fd)
Diffstat (limited to 'sunrpc/rpc_thread.c')
0 files changed, 0 insertions, 0 deletions