CVE-2026-0915

getnetbyaddr and getnetbyaddr_r leak stack contents to DNS resovler

Published Jan 15, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Calling getnetbyaddr or getnetbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend for networks and queries for a zero-valued network in the GNU C Library version 2.0 to version 2.42 can leak stack contents to the configured DNS resolver.

Analysis

AI-generated

Technical impact

Calling getnetbyaddr or its reentrant variant while the system’s nsswitch.conf directs glibc to use the DNS backend for network lookups can cause a stack‑based information leak. A zero‑valued network request triggers an out‑of‑bounds read that exposes raw stack data to the configured DNS resolver, compromising confidentiality.

Affected Systems

The flaw is present in GNU C Library versions 2.0 through 2.42. Any Linux system or application that links against one of these glibc releases and that has the DNS backend enabled for network lookups is potentially affected; the vulnerability resides in the library itself, not in specific applications.

Risk and Exploitability

The CVSS base score of 7.5 indicates moderate to high severity, while the EPSS score is less than 1%, implying a low likelihood of exploitation and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires code to invoke getnetbyaddr with a zero network address and a configuration that forwards the request to the DNS backend, which can be achieved by modifying nsswitch.conf. Attackers capable of altering system configuration or controlling DNS responses are the most likely threat actors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any available glibc patches or updates from the official GNU project repositories.
  • Edit the nsswitch.conf file to disable the DNS backend for the ‘networks’ entry, e.g., replace ‘dns’ with ‘files’ or remove the entry entirely.
  • Avoid calling getnetbyaddr or getnetbyaddr_r with a zero network value; ensure application code validates network parameters before invoking the functions.

Generated by OpenCVE AI on April 18, 2026 at 16:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4621-1 glibc security update
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Gnu
Gnu glibc
Vendors & Products Gnu
Gnu glibc
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Description Calling getnetbyaddr or getnetbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend for networks and queries for a zero-valued network in the GNU C Library version 2.0 to version 2.42 can leak stack contents to the configured DNS resolver.
Title getnetbyaddr and getnetbyaddr_r leak stack contents to DNS resovler
Weaknesses CWE-908
References
Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
glibc
Published
Updated
Jan 20, 2026, 4:03 PM
Reserved
Jan 13, 2026, 7:02 PM
Status
Analyzed
Published
Jan 15, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:11 AM
Severity
Moderate
Public date
Jan 15, 2026, 10:08 PM