Description
The encode_name macro in misc/mntent_r.c in the GNU C Library (aka glibc or libc6) 2.11.1 and earlier, as used by ncpmount and mount.cifs, does not properly handle newline characters in mountpoint names, which allows local users to cause a denial of service (mtab corruption), or possibly modify mount options and gain privileges, via a crafted mount request.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glibc | 2.11-1 | — |
| Debian 13 | glibc | 2.11-1 | — |
| Debian 12 | glibc | 2.11-1 | — |
| Debian 5.0 | glibc | 2.7-18lenny4 | DSA-2058-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | nscd +6 | 2.5-58.el5_6.2 | RHSA-2011:0412 |
| RHEL 4 | nscd +8 | 2.3.4-2.57 | RHSA-2012:0125 |
Advisories 4
- RHSA-2012:0125 Red Hat Security Advisory: glibc security and bug fix update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- DSA-2058-1 glibc - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2011:0412 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Jan 29, 2026
- VDE-2019-013 WAGO: Multiple Vulnerabilities in industrial managed switches CERT@VDE · Jun 12, 2019
References
- MDVSA-2010:111 vendor-advisory
- GLSA-201011-01 vendor-advisory
- 20111013 VMSA-2011-0012 VMware ESXi and ESX updates to third party libraries and ESX Service Console mailing-list
- 46397 third-party-advisory
- http://sourceware.org/git/?p=glibc.git%3Ba=commit%3Bh=ab00f4eac8f4932211259ff87be83144f5211540
- ADV-2010-1246 vdb-entry
- RHSA-2011:0412 vendor-advisory
- ADV-2011-0863 vdb-entry
- USN-944-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=559579
- 39900 third-party-advisory
- SUSE-SA:2010:052 vendor-advisory
- 43830 third-party-advisory
- http://www.vmware.com/security/advisories/VMSA-2011-0012.html
- 1024043 vdb-entry
- gnuclibrary-encodenamemacro-dos(59240) vdb-entry
- http://frugalware.org/security/662
- MDVSA-2010:112 vendor-advisory
- DSA-2058 vendor-advisory
- 20190612 SEC Consult SA-20190612-0 :: Multiple vulnerabilities in WAGO 852 Industrial Managed Switch Series mailing-list
- 20190613 SEC Consult SA-20190612-0 :: Multiple vulnerabilities in WAGO 852 Industrial Managed Switch Series mailing-list
- http://packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.html