Skip to content

gethostbyaddr and gethostbyaddr_r return invalid DNS hostnames #502536

Closed

Description

@nixpkgs-security-tracker

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 result in an invalid DNS hostname being returned to the caller in violation of the DNS specification.

Affected packages

Additional comment

Proposed patch: https://inbox.sourceware.org/libc-alpha/[email protected]/
Proposed advisory: https://inbox.sourceware.org/libc-alpha/[email protected]/

Activity

  1. added
    1.severity: security
    on Mar 23, 2026
  2. self-assigned this
    on Mar 23, 2026
  3. Ma27 commented on Mar 23, 2026

    @Ma27
    Member

    The relevant patch in question landed on master about an hour ago: https://sourceware.org/git/?p=glibc.git;a=commit;h=9f5f18aab40ec6b61fa49a007615e6077e9a979b

    So I'll go to sleep now and see if it was backported for me tomorrow.

  4. added a commit that references this issue on Mar 26, 2026
    d8593ca
  5. h0nIg commented on Mar 29, 2026

    @h0nIg
    Contributor

    @Ma27 would it be possible to get this security fix for 25.11 too?

  6. Ma27 commented on Mar 30, 2026

    @Ma27
    Member

    will probably do so tonight, now that the fix got backported to 2.40.

  7. added a commit that references this issue on Mar 31, 2026
  8. added 2 commits that reference this issue on Apr 9, 2026
    f4aa77f
    8e4917c
  9. added a commit that references this issue on Apr 19, 2026
    e262fe2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1.severity: security

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions