CVE-2014-8121
NoneCVSS
—
EPSS
5.6%
Published
Mar 27, 2015
CISA due date
—
Cloudanix analysis
A flaw in a core system library can let attackers make services stop responding by sending certain lookup requests, leading to outages until the software is updated.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
The flaw in DB_LOOKUP within nss_files/files-XXX.c fails to verify an open file state, allowing a lookup operation during iteration to reset the file pointer and trigger an infinite loop resulting in denial of service.
Why it matters to the business
Availability loss for applications relying on the affected library component, causing service outages and operational disruption until systems are updated to patched releases.
How an attack unfolds
An attacker identifies a service performing NSS database operations and issues concurrent lookup requests during iteration, exploiting the missing file-open check to reset the pointer repeatedly and sustain the loop.
How to fix it
Upgrade affected deployments to vault (Bitnami) 1.5.7 or later versions that incorporate corrected glibc handling; apply vendor patches for the underlying library where direct upgrades are unavailable.
How to confirm the fix worked
Verify installed package versions against fixed releases, reproduce the lookup-during-iteration scenario in a test environment to confirm loop termination, and review process behavior under load.
Typical attack path
- Scan for services using vulnerable glibc NSS implementation
- Trigger database iteration in the target process
- Issue parallel lookup operations to reset the file pointer
- Sustain the condition to induce infinite loop and resource exhaustion
How to detect it
Review system and application logs for repeated NSS database access patterns coinciding with high CPU utilization; examine process traces for stuck file operations on database files.
What your security team should do
- Prioritize upgrade of all instances to vault (Bitnami) 1.5.7 or newer
- Implement network segmentation to limit exposure of NSS-dependent services
- Monitor CPU and process resource consumption for anomalous sustained activity
The record
DB_LOOKUP in nss_files/files-XXX.c in the Name Service Switch (NSS) in GNU C Library (aka glibc or libc6) 2.21 and earlier does not properly check if a file is open, which allows remote attackers to cause a denial of service (infinite loop) by performing a look-up on a database while iterating over it, which triggers the file pointer to be reset.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | glibc | 0 | 2.21-1 |
| Debian:11 | glibc | 0 | 2.21-1 |
| Debian:12 | glibc | 0 | 2.21-1 |
| Debian:13 | glibc | 0 | 2.21-1 |
| Debian:6.0 | eglibc | 0 | 2.11.3-4+deb6u7 |
| Debian:7 | eglibc | 0 | 2.13-38+deb7u10 |
| Mageia:4 | glibc | 0 | 2.18-9.11.mga4 |
| Red Hat:enterprise_linux:7::client | glibc | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-debuginfo | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-debuginfo-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-devel | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-headers | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-static | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | glibc-utils | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::client | nscd | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-debuginfo | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-debuginfo-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-devel | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-headers | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-static | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-utils | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::computenode | nscd | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-debuginfo | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-debuginfo-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-devel | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-headers | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-static | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | glibc-utils | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::server | nscd | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-debuginfo | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-debuginfo-common | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-devel | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-headers | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-static | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-utils | 0 | 0:2.17-78.el7 |
| Red Hat:enterprise_linux:7::workstation | nscd | 0 | 0:2.17-78.el7 |
| SUSE:Linux Enterprise Desktop 11 SP3 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Desktop 11 SP4 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Desktop 12 | glibc | 0 | 2.19-22.7.1 |
| SUSE:Linux Enterprise Server 11 SP2-LTSS | glibc | 0 | 2.11.3-17.45.66.1 |
| SUSE:Linux Enterprise Server 11 SP3 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Server 11 SP4 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Server 12 | glibc | 0 | 2.19-22.7.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP3 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | glibc | 0 | 2.19-22.7.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP3 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | glibc | 0 | 2.11.3-17.87.3 |
| SUSE:Linux Enterprise Software Development Kit 12 | glibc | 0 | 2.19-22.7.1 |
| Ubuntu:14.04:LTS | eglibc | 0 | 2.19-0ubuntu6.8 |
| Ubuntu:16.04:LTS | glibc | 0 | 2.23-0ubuntu1 |
| openSUSE:Tumbleweed | glibc | 0 | 2.24-2.3 |
Related vulnerabilities
- CVE-2021-35942 The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read… Also affects glibc
- CVE-2021-3326 The iconv function in the GNU C Library (aka glibc or libc6) 2.32 and earlier, when… Also affects glibc
- CVE-2020-1752 A use-after-free vulnerability introduced in glibc upstream version 2.14 was found in the… Also affects glibc
- CVE-2020-10029 The GNU C Library (aka glibc or libc6) before 2.32 could overflow an on-stack buffer… Also affects glibc
- CVE-2017-15804 The glob function in glob.c in the GNU C Library (aka glibc or libc6) before 2.27… Also affects glibc
- CVE-2017-15671 The glob function in glob.c in the GNU C Library (aka glibc or libc6) before 2.27, when… Also affects glibc
- CVE-2017-15670 The GNU C Library (aka glibc or libc6) before 2.27 contains an off-by-one error leading… Also affects glibc
- CVE-2015-5180 res_query in libresolv in glibc before 2.25 allows remote attackers to cause a denial of… Also affects glibc