CVE-2022-30295
NixOS vulnerability analysis and mitigation

Overview

A vulnerability tracked as CVE-2022-30295 affects the Domain Name System (DNS) implementation in uClibc and uClibc-ng libraries through versions 1.0.40 and 0.9.33.2 respectively. The vulnerability was discovered by Nozomi Networks Labs and involves predictable DNS transaction IDs that could lead to DNS cache poisoning attacks. These libraries are widely used in IoT products and embedded systems, with notable vendors including Linksys, Netgear, and Axis (until 2010), as well as Linux distributions like Embedded Gentoo (Nozomi Networks).

Technical details

The vulnerability stems from the predictable nature of DNS transaction IDs generated by the library's '_dnslookup' function in '/libc/inet/resolv.c'. The function uses a static variable 'lastid' initialized to 1 and increments it by 1 for each subsequent DNS request, making the transaction IDs predictable. After incrementing, the value is stored in 'lastid' variable and copied into the DNS request header (Nozomi Networks).

Impact

The vulnerability could allow attackers to perform DNS cache poisoning attacks against target devices. If successfully exploited, attackers could redirect network communications to servers under their control, enabling subsequent Man-in-the-Middle attacks. This could lead to information theft, manipulation of transmitted data, and potential complete device compromise (Nozomi Networks).

Mitigation and workarounds

As of May 20, 2022, uClibc-ng version 1.0.41 includes a fix for this vulnerability. Until vendors implement the fix in their firmware, recommended mitigations include: deploying a DNS proxy in the trusted local network, enabling Domain Name System Security Extensions (DNSSEC), and configuring devices to send DNS queries to trusted DNS servers through end-to-end encrypted communication (Nozomi Networks).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management