C library vulnerabilities in embedded firmware are inherited by every program on the device from whichever libc the image was built with (glibc, uClibc, uClibc-ng or musl), and they include actively exploited flaws such as glibc's CVE-2023-4911, listed in CISA's KEV catalog since 2023-11-21.
To handle them, identify the libc and its exact version from the loader, file names and version strings, check that project's own advisories, because the three publish fixes very differently, rank the matched CVEs by KEV, EPSS and reachability, then update or backport, rebuild every static binary and re-scan.
Key takeaways
- The C library matters because nearly every user-space program on an embedded Linux device calls into it.
- Unpack the image, read the loader and library names, then read the version text inside the files.
- The libc CVEs that matter most sit in name resolution, logging and the loader, because DNS answers come from the network and loader and syslog code run inside setuid programs.
- The three differ because each project publishes fixes differently, and scanners see only CVE records with usable version ranges.
Why does the C library matter so much in firmware?
The C library matters because nearly every user-space program on an embedded Linux device calls into it. Name resolution, logging, string conversion, regular expressions and the dynamic loader all live there, so one flaw reaches every daemon at once. The choice is made early and rarely changes. The Buildroot manual states that its internal toolchain backend "supports several C libraries: uClibc-ng, glibc and musl", and that changing the C library usually means a complete rebuild. Yocto's TCLIBC variable offers "glibc", "musl", "newlib" or "baremetal".
| Library | Typical use | Release and fix model | Where security fixes are announced |
|---|---|---|---|
| glibc | Larger devices, gateways, Debian- or Yocto-based images | Regular releases, with maintained release branches that receive backports | GLIBC-SA advisories in the glibc git repository, with per-branch Fix-Commit tags |
| uClibc (original) | Older routers, cameras and SoC SDKs | Last release 0.9.33.2 on 15 May 2012 | No releases since 2012; CVEs stay unfixed upstream |
| uClibc-ng | Buildroot, OpenADK and Freetz-NG images, MMU-less targets | One stable line with frequent point releases | Commits and releases; no separate advisory page |
| musl | Small static binaries, Alpine-based containers, newer Buildroot and Yocto images | One stable 1.2 series | Advisories on musl.libc.org and the musl and oss-security lists, usually with patches |
How do you identify which libc and version a firmware image ships?
Unpack the image, read the loader and library names, then read the version text inside the files.
Unpack the root filesystemExtract the SquashFS, UBIFS, JFFS2 or ext4 filesystem with binwalk or the vendor's tooling. Our firmware entropy analysis guide helps when parts refuse to unpack. Read the loader nameThe program interpreter in any ELF header, or the files in /lib, identify the family. glibc usesld-linux-<arch>.so.N(for exampleld-linux-armhf.so.3) next tolibc.so.6. uClibc-ng names its loaderld-uClibc.so.<ABI>, orld64-uClibc.so.<ABI>on 64-bit targets. musl installsld-musl-<arch>.so.1, which points at its singlelibc.so.Read the glibc bannerglibc's libc carries a banner that starts "GNU C Library", followed by the package version in brackets and "release version 2.NN"; stringsfinds it without executing anything. The glibc 2.34 NEWS records the end of versioned file names such aslibc-2.33.so, so on newer images the banner, not the file name, carries the version.Read the uClibc-ng file namesuClibc-ng names the real library libuClibc-<version>.soand the real loaderld-uClibc-<version>.so, with the short sonames as symlinks. Images on the original uClibc usually showlibc.so.0,ld-uClibc.so.0and a 0.9.x version in the real file names.Read the musl versionmusl's loader prints "musl libc" and "Version 1.2.x" when run with no arguments; without execution, confirm the unlabelled version string in libc.soagainst package metadata.Search for static copiesmusl in particular is often linked statically, and each static binary carries its own libc at whatever version it was built with. Run the same searches across every executable and record each static copy as its own component. Check build and package recordsOpenWrt opkg metadata, Debian dpkg status files and Buildroot package lists confirm the version. Our embedded Linux build systems and SBOM guide covers what Buildroot and Yocto emit directly.
Record family, version, path and linkage in the firmware SBOM; a uClibc-ng library recorded as "glibc" matches the wrong CVE list entirely.
Which C library CVEs matter most for embedded devices?
The libc CVEs that matter most sit in name resolution, logging and the loader, because DNS answers come from the network and loader and syslog code run inside setuid programs. Public data, read on 2026-11-14, with the KEV and EPSS columns read on 2026-11-29:
| CVE | Library | What it is | Affected / fixed | CISA KEV (catalog 2026.11.27) | FIRST EPSS (2026-11-28) |
|---|---|---|---|---|---|
| CVE-2015-7547 | glibc | Stack overflow in getaddrinfo() DNS handling | Introduced in 2.9 (2008); NVD lists versions before 2.23 | Not listed | 0.924, ~99.9th percentile |
| CVE-2023-4911 ("Looney Tunables") | glibc | ld.so GLIBC_TUNABLES overflow, local root via setuid programs | Introduced in 2.34; fixed in 2.39 and on the 2.34 to 2.38 branches | Listed, added 2023-11-21 | 0.726, ~99.6th percentile |
| CVE-2023-6246 | glibc | syslog() heap overflow with a long program name, local root | Introduced in 2.37 and branch commit 2.36-16; fixed in 2.39 and on the 2.36 to 2.38 branches | Not listed | 0.024, ~84.7th percentile |
| CVE-2021-43523 | uClibc, uClibc-ng | DNS host names with special characters not rejected | uClibc-ng before 1.0.39; no uClibc release | Not listed | 0.031, ~88.4th percentile |
| CVE-2022-30295 | uClibc, uClibc-ng | Predictable DNS transaction IDs, enabling cache poisoning | uClibc-ng through 1.0.40, uClibc through 0.9.33.2 | Not listed | 0.010, ~61.6th percentile |
| CVE-2025-26519 | musl | Out-of-bounds write in iconv() converting EUC-KR to UTF-8 | 0.9.13 through 1.2.5; fixed in 1.2.6 and by patches | Not listed | 0.0037, ~22.8th percentile |
| CVE-2026-107891 | musl | regcomp() integer overflows, undersized heap allocations | 0.5.0 through 1.2.6; patch published | Not listed | 0.0057, ~40.9th percentile |
CVE-2015-7547 is the reference case for glibc's resolver. The glibc announcement on libc-alpha explains that getaddrinfo with AF_UNSPEC sends parallel A and AAAA queries, and that a crafted response can write up to 65535 bytes into a 2048-byte stack buffer. Disabling IPv6 does not mitigate it. Our dnsmasq vulnerabilities guide covers the resolver that often sits in front of glibc on the same device.
CVE-2023-4911 turns the loader into an attack surface. The glibc advisory GLIBC-SA-2023-0004 states that a tunable of the form NAME=NAME=VAL passed to a setuid program "may result in a buffer overflow, which could be exploited to achieve escalated privileges". The Qualys advisory reports full root on default installs of Fedora 37 and 38, Ubuntu 22.04 and 23.04, and Debian 12 and 13, but not on musl-based Alpine.
CVE-2023-6246 sits in syslog(), which device daemons call constantly. GLIBC-SA-2024-0001, public on 2024-01-30, lists the vulnerable commit as 2.37 and as 2.36-16 on the 2.36 branch, with fixes in 2.39 and branch commits 2.38-42, 2.37-57 and 2.36-126; 2024-0002 and 2024-0003 fix two sibling syslog bugs (CVE-2023-6779, CVE-2023-6780). The Qualys syslog advisory reached root on Fedora 38 through su, and judges remote triggering unlikely because it needs an argv[0] or openlog() ident longer than 1024 bytes.
The uClibc DNS pair hits small routers and cameras. uClibc-ng's fix for CVE-2021-43523, commit 0f822af, checks DNS answers "using the same rules glibc does" and shipped in 1.0.39. For CVE-2022-30295, commit f73fcb3 of 10 May 2022 replaced a simple counter with configurable, random-by-default query IDs and shipped in 1.0.41; its message does not name the CVE.
The musl iconv and regcomp bugs depend on the application. The CVE-2025-26519 advisory says the bug is exposed only when an application converts untrusted EUC-KR input to UTF-8, most often when a declared charset from XML, HTML or MIME email reaches iconv_open. The CVE-2026-107891 advisory limits exposure to applications that compile regular expressions from an untrusted source with regcomp.
Why do glibc, uClibc-ng and musl differ in CVE coverage?
The three differ because each project publishes fixes differently, and scanners see only CVE records with usable version ranges.
glibc publishes structured advisories. The glibc repository holds one GLIBC-SA advisory per issue (GLIBC-SA-2023-0001 to GLIBC-SA-2026-0028 on 2026-11-14). The advisory format README defines tags for CVE-Id, Public-Date, Vulnerable-Commit and one Fix-Commit per release branch, and explains that a version such as 2.36-118 means the fix is on release/2.36/master "and not in any released tarball". A device built from the 2.36 tarball therefore stays vulnerable to CVE-2023-4911 unless the build tracks the branch or applies the commit. The glibc Release wiki page listed branches 2.32 through 2.44 as maintained on 2026-11-14. The glibc security policy treats regex denial of service from crafted patterns as a regular bug, so some findings never get a CVE.
The original uClibc has no fix channel. The uClibc home page states that "uClibc releases are on hold", points to uClibc-ng, and lists 0.9.33.2 from 15 May 2012 as the last release. Every later CVE against uClibc, such as CVE-2022-30295, has no upstream fix in that codebase.
uClibc-ng fixes in commits and releases. The uClibc-ng project site listed 1.0.60, released on 7 November 2026, as the latest release. It has no advisory page, so NVD version ranges are often the only machine-readable link between a CVE and a fixed release.
musl publishes advisories with patches. The musl home page carries a security banner that on 2026-11-14 listed CVE-2026-107891, CVE-2026-40200 and CVE-2026-6042 as affecting all releases through 1.2.6. The release history gives affected ranges, for example that CVE-2026-40200, a stack overflow in qsort with large arrays, affects only 32-bit architectures. Patches often precede releases: musl 1.2.6 of 20 March 2026 "includes the fix for CVE-2025-26519 affecting iconv that was previously only available as patches". A version-only scanner therefore flags a correctly patched musl 1.2.5.
How do you triage C library CVEs in a firmware image?
Start with exploitation data, then reachability on this device, then backports.
KEV firstIn CISA's KEV catalog version 2026.11.27, CVE-2023-4911 was the only GNU C Library entry, and no uClibc, uClibc-ng or musl CVE was listed. A device with local shell access and an unfixed glibc 2.34 to 2.38 goes to the top. Our KEV and EPSS prioritisation guide explains how the two signals combine. Check reachabilityFor loader and syslog CVEs, list setuid files and who gets a shell; a web command injection is a common foothold. For the DNS CVEs, check whether the device resolves names over untrusted networks. For musl iconv and regcomp, check for untrusted charsets or regular expressions. Check backports before accepting a version matchFor glibc, compare the source or SDK patch set against the advisory's Fix-Commit for that branch; for musl, look for the advisory patches; for uClibc-ng, compare against the fixing commit. A version string proves only the upstream base. Record decisionsWhen a CVE is fixed by a backport or unreachable, record a VEX statement instead of a silent gap; our CSAF and VEX for device makers guide covers the format and the VEX generator drafts one.
What does libc triage look like on one device? A worked example
Synthetic example, not a real product. A Yocto-built ARM gateway shows ld-linux-armhf.so.3, a banner reading "release version 2.36" and a libc built from the plain 2.36 tarball plus two vendor patches, none from the glibc branch. A firmware update helper is a static binary that reports musl 1.2.5. BusyBox su is installed setuid root, and the web interface had a command injection fixed in the previous release.
| Finding | Evidence | Decision |
|---|---|---|
| CVE-2023-4911 | 2.36 tarball, no 2.36-118 commit in the patch set; setuid su; history of web command injection |
Affected, KEV-listed: fix first |
| CVE-2023-6246 | NVD's range starts at 2.36, but the advisory says the bug reached 2.36 only through branch commit 2.36-16, absent from this build | Not affected today; recorded with the advisory reference |
| CVE-2015-7547 | 2.36 is later than the 2.23 fix | Not affected |
| CVE-2025-26519 | Static musl 1.2.5 helper; no iconv symbols or EUC-KR charset names found in the binary | Not affected; rebuild against 1.2.6 at the next release anyway |
The fix is a move to the head of release/2.36/master, which pulls in 2.36-16 together with fixes 2.36-126 to 2.36-128; confirm all three syslog fixes, not only the tunables one.
How do you fix C library vulnerabilities in firmware?
Update within the library's supported line. For glibc, build from the head of the maintained release branch rather than the original tarball, or cherry-pick the Fix-Commit for your branch; for CVE-2023-4911 on 2.36 that is the commit tagged 2.36-118. For uClibc-ng, move to the latest 1.0.x release, 1.0.60 on 2026-11-14. For musl, apply each advisory's patches or move to a release that includes them.
Leave the original uClibc. uClibc 0.9.x receives no upstream fixes. The uClibc-ng site says porting from glibc "typically involves just recompiling the source code", so uClibc-ng is the shortest path out, with musl or glibc as alternatives; plan it as a full rebuild and release.
Use the build system's CVE tooling. The Buildroot manual describes make pkg-stats, which reports "whether known CVEs (security vulnerabilities) affect the packages in your current configuration", and LIBFOO_IGNORE_CVES for CVEs fixed by a named package patch, which keeps a backport visible.
Rebuild every static binary, then re-scan and publish. A shared libc update does not touch statically linked programs. The CVE-2025-26519 advisory allows overwriting the EUC-KR charset names in a static binary that cannot be relinked; treat that as a stopgap. Regenerate the SBOM, compare it with the previous release in the SBOM diff tool to confirm every libc copy changed, and publish affected and fixed versions in your advisory. For the components on top of libc, see our BusyBox vulnerabilities, OpenSSL vulnerabilities and Linux kernel CVEs in embedded devices guides.
What are the common mistakes with C library CVEs?
- Inventorying only
/lib. Static binaries, recovery partitions and container layers carry their own libc copies. - Reading glibc NVD ranges literally. Branch-only bugs such as the 2.36 case of CVE-2023-6246 are flagged on tarball builds that lack them, and branch fixes are invisible to a version match.
- Cherry-picking one syslog fix. GLIBC-SA-2024-0001 to 0003 change the same function; apply all three.
- Assuming musl means no libc CVEs. musl avoids glibc's bugs, not its own: its banner lists three open CVEs for 1.2.6.
- Suppressing uClibc 0.9.33.2 findings. An ignore entry without a patch hides an exposure with no upstream fix.
- Treating "no setuid files" as permanent. The next release can add one; re-check on every build.
What does an AI-assisted scan check, and what stays with the engineer?
SoftWSP's scan works from the firmware SBOM. Where it records the C library as a component with a version, the scan matches that version against CVE records, CISA's KEV catalog and FIRST's EPSS scores, the same deterministic matching it applies to every component: the code scores, and AI narrates. AI writes a plain-language summary that cites the component, version and record behind each finding, and an engineer reviews every finding before delivery. The judgements above stay with that engineer: libc family and version, older static copies, a Fix-Commit or musl patch behind an unchanged version, and reachability. Because matching is version-based, a patched musl 1.2.5 is still flagged for CVE-2025-26519; the review turns that flag into a documented not-affected decision.
For where this check fits in a full assessment, see the OWASP Firmware Security Testing Methodology guide, or device & firmware security services to have a specific image reviewed.
Project pages cited here were read on 2026-11-14; the KEV catalog (version 2026.11.27) and EPSS scores (2026-11-28) were read on 2026-11-29.
Put this guide to work
Frequently asked questions
How do I tell whether a firmware image uses glibc, uClibc-ng or musl?
Unpack the root filesystem and look at the dynamic loader and the libc file names in /lib. glibc ships a loader named ld-linux-<arch>.so.N next to libc.so.6, and its libc carries a banner that begins "GNU C Library" and states the release version. uClibc-ng installs ld-uClibc.so.<ABI> and a real library file named libuClibc-<version>.so, so the version is in the file name. musl installs ld-musl-<arch>.so.1 as its loader, and when that loader is run with no arguments it prints "musl libc" and its version. Statically linked binaries carry their own copy of the library, so run the same string search over every executable, not only /lib.
Is a device with glibc 2.34 or later automatically exploitable through Looney Tunables (CVE-2023-4911)?
No. The glibc advisory GLIBC-SA-2023-0004 describes a buffer overflow in the dynamic loader's handling of the GLIBC_TUNABLES environment variable when a setuid program is launched, introduced in glibc 2.34. An attacker needs a local foothold and a setuid binary on the device. Qualys obtained full root on default Fedora, Ubuntu and Debian installs, and CISA added the CVE to its Known Exploited Vulnerabilities catalog on 2023-11-21, so any device with an interactive shell, setuid binaries and an unpatched 2.34 to 2.38 glibc should be fixed first. On a locked-down image with no setuid files the path Qualys used is absent, but a command injection bug in the web interface can supply the local foothold.
Why do uClibc-based devices often show CVEs that never get fixed?
Because the original uClibc stopped releasing in 2012. Its website lists 0.9.33.2, released 15 May 2012, as the last release and points users to uClibc-ng. NVD records CVE-2022-30295, predictable DNS transaction IDs that can lead to cache poisoning, as affecting uClibc through 0.9.33.2 and uClibc-ng through 1.0.40. uClibc-ng changed its DNS query ID generation in May 2022 and shipped that in 1.0.41, but no uClibc 0.9.x release carries a fix, so devices on the old library stay exposed until the vendor backports the change or moves to uClibc-ng or musl.
Where does musl publish its security fixes?
On its own website and on the Openwall mailing lists. The musl home page and release history list each CVE with the affected version range, and Rich Felker posts the advisory with source patches to the musl list, copied to oss-security. Fixes are often available as patches long before a release: CVE-2025-26519, an out-of-bounds write in iconv, was announced with patches on 13 February 2025 and first shipped in a release with musl 1.2.6 on 20 March 2026. For CVE-2026-107891 in regcomp, announced 21 October 2026, the advisory gives a patch against 1.2.6, which was still the latest release on 12 November 2026.
Does SoftWSP decide whether a vendor backported a C library fix?
No, not automatically. SoftWSP's scan takes the C library as a component with its version from the firmware's software bill of materials and matches that version against CVE records, CISA's KEV catalog and FIRST EPSS scores. AI then writes a plain-language summary that cites the component, version and record behind each finding, and an engineer reviews every finding before the report is delivered. Whether a vendor cherry-picked a glibc Fix-Commit or applied a musl patch without changing the version, and whether a setuid binary or untrusted DNS path makes a CVE reachable, is decided by that engineer from the evidence, not by the scan.
Sources
- glibc: GLIBC-SA-2023-0004, tunables: local privilege escalation through buffer overflow (CVE-2023-4911)
- glibc: Security advisory format (advisories README)
- glibc: The GNU C Library Security Policy (SECURITY.md)
- glibc wiki: Release (current release branches and distribution branch mapping)
- glibc 2.34 NEWS (shared objects installed under ABI sonames)
- Carlos O'Donell, libc-alpha, 16 Feb 2016: CVE-2015-7547, glibc getaddrinfo() stack-based buffer overflow
- Qualys Security Advisory: Looney Tunables, Local Privilege Escalation in the glibc's ld.so (CVE-2023-4911)
- uClibc: project home page (0.9.33.2, 15 May 2012, releases on hold)
- uClibc-ng: Embedded C library (project home page, latest release 1.0.60)
- uClibc-ng commit f73fcb3: DnsLookup, configurable dnsQueryId generation including random
- uClibc-ng commit 0f822af: add __hnbad to check DNS entries for validity
- musl libc: home page and security advisories
- musl libc: Release History and Security Advisories
- Rich Felker, musl list, 13 Feb 2025: CVE-2025-26519, input-controlled out-of-bounds write primitive in iconv()
- Rich Felker, musl list, 21 Oct 2026: CVE-2026-107891, multiple integer overflow in regcomp
- The Buildroot user manual
- Yocto Project Reference Manual: Variables Glossary (TCLIBC)
- glibc: GLIBC-SA-2024-0001, syslog: Heap buffer overflow in __vsyslog_internal (CVE-2023-6246)
- Qualys Security Advisory: CVE-2023-6246, heap-based buffer overflow in the glibc's syslog()
- NIST NVD: CVE-2022-30295
- NIST NVD: CVE-2021-43523
- CISA: Known Exploited Vulnerabilities (KEV) Catalog
About this guide
SoftWSP Firmware Security Desk
Covers the Firmware vulnerabilities & fixes cluster: 135 guides.

In this cluster
Questions about this page?
