Bug 1631338 - glibc: gethostid: Missing NULL check for gethostbyname_r result
Summary: glibc: gethostid: Missing NULL check for gethostbyname_r result
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 29
Hardware: All
OS: Linux
high
low
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1631293
TreeView+ depends on / blocked
 
Reported: 2018-09-20 11:26 UTC by Florian Weimer
Modified: 2018-11-07 08:08 UTC (History)
10 users (show)

Fixed In Version: glibc-2.28-15.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1631293
Environment:
Last Closed: 2018-11-07 08:08:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 23679 0 None None None 2018-09-20 11:26:38 UTC

Description Florian Weimer 2018-09-20 11:26:38 UTC
+++ This bug was initially created as a clone of Bug #1631293 +++

We should fix a regression respective to RHEL 7 in the gethostid function.  Fix upstream thusly:

commit 1214ba06e6771acb953a190091b0f6055c64fd25
Author: Mingli Yu <Mingli.Yu>
Date:   Thu Sep 20 12:02:48 2018 +0200

    Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
    
    A NULL value can happen with certain gethostbyname_r failures.

commit db9a8ad4ff3fc58e3773a9a4d0cabe3c1bc9c94c
Author: Florian Weimer <fweimer>
Date:   Thu Sep 20 12:03:01 2018 +0200

    misc: New test misc/tst-gethostid
    
    The empty /etc/hosts file used to trigger bug 23679.

The upstream test will likely not run during the build because support_become_root does not yet work on the builders.

Comment 1 Fedora Update System 2018-11-03 07:01:11 UTC
glibc-2.28-17.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 2 Fedora Update System 2018-11-04 06:38:33 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 3 Fedora Update System 2018-11-07 02:40:50 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.