CVE-2026-6238: Buffer overread in ns_printrrf with corrupted RDATA field

Published Apr 28, 2026
·
Updated

Buffer overread in nsprintrrf with corrupted RDATA field

Other sources

The deprecated functions nsprintrrf, nsprintrr and fpnquery in the GNU C Library version 2.0.1 to version 2.43 fail to validate the RDATA content against the RDATA length in a DNS response when processing A6, CERT, LOC, TKEY or TSIG records, which may allow an attacker to craft a DNS response, causing a target application to crash or read uninitialized memory.

— Launchpad

The deprecated functions nsprintrrf, nsprintrr and fpnquery in the GNU C Library version 2.2 and newer fail to validate the RDATA content against the RDATA length in a DNS response when processing LOC, CERT, TKEY or TSIG records, which may allow an attacker to craft a DNS response, causing a target application to crash or read uninitialized memory.

These functions are for application debugging only and hence not in the path of code executed by the DNS resolver. Further, they have been deprecated since version 2.34 and should not be used by any new applications. Applications should consider porting away from these interfaces since they may be removed in future versions.

— Red Hat

Affected Software

15 affected componentsFixes available
GNU GNU C Library>=2.2
GNU glibc>=2.2
IBM watsonx.data<=2.4.0 - 2.4.0 patch 8
debian/glibc*
debian/glibc<2.41-12+deb13u5
2.41-12+deb13u5
debian/glibc<2.43-3
2.43-3
debian/glibc<=2.36-9+deb12u14, <=2.36-9+deb12u7
2.41-12+deb13u52.43-3
ubuntu/eglibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc<2.35-0ubuntu3.14
2.35-0ubuntu3.14
ubuntu/glibc<2.39-0ubuntu8.8
2.39-0ubuntu8.8
ubuntu/glibc*
ubuntu/glibc<2.43-2ubuntu2.3
2.43-2ubuntu2.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.41-12+deb13u5
  2. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.43-3
  3. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.41-12+deb13u5Fixed in 2.43-3
  4. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.35-0ubuntu3.14
  5. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.39-0ubuntu8.8
  6. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.43-2ubuntu2.3
  7. Compensating control

    Port applications away from the deprecated GNU C Library functions ns_printrrf, ns_printrr, and fp_nquery; do not use these interfaces in new applications.

Event History

Apr 28, 2026
CVE Published
via MITRE·04:43 PM
Data Sourced
via MITRE·04:43 PM
DescriptionWeakness
Data Sourced
via Red Hat·07:09 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·07:37 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:37 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
Severity
Apr 30, 2026
Data Sourced
via Microsoft·08:10 AM
DescriptionSeverityWeakness
May 4, 2026
Data Sourced
via NVD·05:57 PM
Affected Software
May 5, 2026
Event
via FIRST·12:00 AM
Jun 19, 2026
Updated
via MITRE·08:40 PM
Description
Updated
via NVD·09:17 PM
Description
Aug 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 5, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software
Oct 21, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software
Nov 19, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 21, 2026
Updated
via OSV·01:00 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-6238?

The vulnerability CVE-2026-6238 is categorized as a high severity issue due to the potential for buffer overread that could lead to information disclosure.

2

How do I fix CVE-2026-6238?

To resolve CVE-2026-6238, update the GNU C Library to a version that includes the fix for the buffer overread issue.

3

Which versions of the GNU C Library are affected by CVE-2026-6238?

CVE-2026-6238 affects the GNU C Library version 2.2 and newer.

4

What type of records are involved in CVE-2026-6238?

CVE-2026-6238 involves CORRUPT RDATA fields in DNS responses for LOC, CERT, TKEY, and TSIG records.

5

What are the risks associated with CVE-2026-6238?

The risks associated with CVE-2026-6238 include potential data leakage and exposure of sensitive information due to the buffer overread.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203