Bug 29415 - getaddrinfo with AI_ADDRCONFIG returns addresses with wrong family
Summary: getaddrinfo with AI_ADDRCONFIG returns addresses with wrong family
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nscd (show other bugs)
Version: 2.35
: P2 normal
Target Milestone: 2.37
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-27 09:36 UTC by Fabian Vogt
Modified: 2022-08-30 06:47 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2022-07-27 09:36:31 UTC
Processes cache network interface information such as whether IPv4 or IPv6
are enabled. This is only checked again if the "netlink timestamp" provided
by nscd changed, which is triggered by netlink socket activity.

However, this mechanism is currently broken. This means that e.g. processes which started before network configuration got unusuable addresses from getaddrinfo, like IPv6 only even though only IPv4 is available:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1041
Comment 1 Martin Liska 2022-08-29 19:56:47 UTC
Fixed in 02ca25fef2785974011e9c5beecc99b900b69fd7.