getaddrinfo() dont work correct with ipv4+ipv6 addreses aftrer upgrade libc6 in Ubuntu Precise
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
GLibC |
Fix Released
|
Medium
|
||||
eglibc (Ubuntu) | ||||||
Precise |
Fix Released
|
Critical
|
Unassigned |
Bug Description
getaddrinfo() dont work correct with ipv4+ipv6 addreses aftrer upgrade libc6 in Ubuntu Precise.
server has only ipv6 address.
Ubuntu 12.04.5 LTS \n \l
libc6 = 2.15-0ubuntu10.16
host ya.ru
YA.ru has address 93.158.134.3
YA.ru has address 213.180.193.3
YA.ru has address 213.180.204.3
YA.ru has IPv6 address 2a02:6b8::3
strace -e connect nc -zv ya.ru http
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
nc: connect to ya.ru port 80 (tcp) failed: Network is unreachable
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
nc: connect to ya.ru port 80 (tcp) failed: Network is unreachable
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
nc: connect to ya.ru port 80 (tcp) failed: Network is unreachable
python -c 'import socket; print socket.
('93.158.134.3', 0)
('2a02:6b8::3', 0, 0, 0)
before update libc6=2.
strace -e connect nc -zv ya.ru http
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=
connect(3, {sa_family=
connect(3, {sa_family=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=
connect(3, {sa_family=
Connection to ya.ru 80 port [tcp/http] succeeded!
python -c 'import socket; print socket.
('2a02:6b8::3', 0, 0, 0)
('2a02:6b8::3', 0, 0, 0)
I think problem with patch: CVE-2016-3706: getaddrinfo: stack overflow in hostent conversion [BZ #20010]
https:/
description: | updated |
description: | updated |
Changed in eglibc: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in eglibc (Ubuntu): | |
status: | Confirmed → Invalid |
no longer affects: | eglibc (Ubuntu) |
affects: | eglibc → glibc |
Changed in glibc: | |
status: | New → In Progress |
Changed in glibc: | |
status: | In Progress → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.