VDB

GCVE-110-CERTCC-2022-473698

GCVE-110-CERTCC-2022-473698
Advisory Published
Vulnetix · Advisory published May 2, 2022
### Overview The uClibc and uClibc-ng libraries, prior to uClibc-ng 1.0.41, are vulnerable to DNS cache poisoning due to the use of predicatble DNS transaction IDs when making DNS requests. This vulnerability can allow an attacker to perform DNS cache poisoning attacks against a vulnerable environment. ### Description The uClibc and the Uclibc-ng software are lightweight C standard libraries intended for use in embedded systems and mobile devices. The [uClibc](https://uclibc.org/) library has not been updated since May of 2012. The newer [uClibc-ng ](https://uclibc-ng.org/)is the currently maintained fork of uClibc, as announced on the OpenWRT mailing list in July 2014. Researchers at the Nozomi Networks Security Research Team discovered that all existing versions of uClibc and uClibc-ng libraries are vulnerable to DNS cache poisoning. These libraries do not employ any randomization in the DNS Transaction ID (DNS TXID) field when creating a new DNS request. This can allow an attacker to send maliciously crafted DNS packets to corrupt the DNS cache with invalid entries and redirect users to arbitrary sites. As uClibc and uClibc-ng are used in devices such as home routers and firewalls, an attacker can perform attacks against multiple users in a shared network environment that relies on DNS responses from the vulnerable device. The DNS cache poisoning scenarios and defenses are discussed in [IETF RFC5452](https://tools.ietf.org/html/rfc5452). ### Impact The lack of DNS response validation can allow an attacker to use unsolicited DNS responses to poison the DNS cache and redirect users to malicious sites. ### Solution #### Apply a patch If your vendor has developed a patched version of uClibc or uClibc-ng to address this issue, apply the updates provided by your vendor. [uClibc-ng was updated to 1.0.41](https://mailman.openadk.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/thread/KZD3HQ3MUT63JC3STZ6IH7E7RGQSOV75/) on 05/20/2022. #### Product Developers If you have a forked or customized version of uClibc or uClibc-ng, develop or adopt a patch to ensure the `dns_lookup` function provides adequate randomization of DNS TXID's while making DNS requests. Review and consider applying the patch has been made available in [patchwork repository](https://patchwork.ozlabs.org/project/uclibc-ng/list/?state=new) of uClibc-ng with VU#638879 tag. #### Follow security best practices Consider the following security best-practices to protect DNS infrastructure: * Prevent direct exposure of IoT devices and lightweight devices over the Internet to minimize attacks against a caching DNS server. * Provide secure DNS recursion service with features such as DNSSEC validation and the interim [0x20-bit encoding](https://astrolavos.gatech.edu/articles/increased_dns_resistance.pdf) as part of enterprise DNS recursion services where applicable. * Implement a [Secure By Default ](https://en.wikipedia.org/wiki/Secure_by_default) configuration suitable for your operating environment (e.g., disable caching on embedded IoT devices when an upstream caching resolver is available). ### Acknowledgements Thanks to the Nozomi Networks Security Research Team for this [report](https://www.nozominetworks.com/blog/nozomi-networks-discovers-unpatched-dns-bug-in-popular-c-standard-library-putting-iot-at-risk/) This document was written by Vijay Sarvepalli and Timur Snoke.

Browse GCVE Records

73,834 records in the GCVE database · Updated July 19, 2026

No matching records found.

Explore Further

Investigate this vulnerability in the interactive console or download the raw GCVE record.

$ Console Community · 100/wk Open console ›