Opened 3 weeks ago

Closed 11 days ago

#5895 closed enhancement (fixed)

fix glibc CVE-2026-4437 and 4438

Reported by: Xi Ruoyao Owned by: Douglas R. Reno
Priority: high Milestone: 13.1
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

Change History (6)

comment:1 by Bruce Dubbs, 3 weeks ago

The link above is interesting. It changes 4 files:

 resolv/Makefile                 |   7 +
 resolv/nss_dns/dns-host.c       |   4 +-
 resolv/tst-resolv-dns-section.c | 161 ++++++++++++++++++++
 resolv/tst-resolv-invalid-ptr.c | 258 ++++++++++++++++++++++++++++++++

Three of those are for tests. The only real change is to two lines in one file: resolv/nss_dns/dns-host.c

-  while (ancount > 0)
+  for (; ancount > 0; --ancount)
...
-	      || !__res_binary_hnok (expected_name)
+	      || !__res_binary_hnok (name_buffer)

This is the essential fix:

sed -e '/while..ancount/c\  for (; ancount > 0; --ancount)'  \
    -e '/binary_hnok..expected/s/expected_name/name_buffer/' \
    -i resolv/nss_dns/dns-host.c

I did not rebuild glibc, but I did check that the sed above does the same as the patch to the affected file.

comment:2 by zeckma, 3 weeks ago

I'd go with the sed approach.

comment:3 by Douglas R. Reno, 2 weeks ago

I wanted to report in real quick that I tried the sed here and it's working perfectly on my laptop, which I just rebuilt glibc on about 30 minutes ago. Tests look normal as well :)

comment:4 by Bruce Dubbs, 2 weeks ago

Fixed at commits

f3d6527e8 Add a sed to glibc-2.43 (Security update).
7df48f36f Update to XML-Parser-2.53 (Security update).

Leaving both open for security updates.

comment:5 by Bruce Dubbs, 2 weeks ago

Owner: changed from lfs-book to Douglas R. Reno

Reassigning for security advisories.

comment:6 by Douglas R. Reno, 11 days ago

Resolution: fixed
Status: newclosed

SA-13.0-021 issued.

Added a note in the advisory regarding updating or rebuilding glibc, reminding users to follow the instructions strictly in the Updating section to prevent a broken system.

Also brought this note back to SA-12.4-079 for glibc-2.43 to prevent 12.4 users from getting in trouble.

Note: See TracTickets for help on using tickets.