CVE-2011-1749: Input Validation

Published Apr 19, 2011
·
Updated

It was found that mount.nfs suffers from the same flaw as other mount helpers (see CVE-2011-1089). Instead of using addmntent(), nfs-utils implements its own similar function (nfsaddmntent()) which also fails to anticipate whether resource limits would interfere with correctly writing to /etc/mtab. A local user could use this to trigger corruption of the /etc/mtab file via a process with a small RLIMITFSIZE value.

In nfs-utils-1.2.3/support/nfs/nfsmntent.c:

126 int 127 nfsaddmntent (mntFILE mfp, struct mntent mnt) { 128 char m1, m2, m3, m4; 129 int res; 130 131 if (fseek (mfp->mntentfp, 0, SEEKEND)) 132 return 1; / failure / 133 134 m1 = mangle(mnt->mntfsname); 135 m2 = mangle(mnt->mntdir); 136 m3 = mangle(mnt->mnttype); 137 m4 = mangle(mnt->mntopts); 138 139 res = fprintf (mfp->mntentfp, "%s %s %s %s %d %d\n", 140 m1, m2, m3, m4, mnt->mntfreq, mnt->mntpassno); 141 142 free(m1); 143 free(m2); 144 free(m3); 145 free(m4); 146 return (res < 0) ? 1 : 0; 147 }

The above function should use fflush() and return failure based on the success of the fflush() call, to ensure it is fully written prior to updating /etc/mtab. Perhaps something like:

146 return (res < 0) ? 1 : ((fflush(mfp->mntentfp) == 0) ? 0 : 1);

Other sources

The nfsaddmntent function in support/nfs/nfsmntent.c in the mount.nsf tool in nfs-utils before 1.2.4 attempts to append to the /etc/mtab file without first checking whether resource limits would interfere, which allows local users to corrupt this file via a process with a small RLIMITFSIZE value, a related issue to CVE-2011-1089.

MITRE

Affected Software

4 affected components
linux-nfs nfs-utils<=1.2.3
linux-nfs nfs-utils=1.2.2
linux-nfs nfs-utils=1.2.1
linux-nfs nfs-utils=1.2.0

Event History

Apr 19, 2011
Data Sourced
via Red Hat·07:45 PM
DescriptionSeverityAffected Software
Feb 26, 2014
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:55 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-1749?

CVE-2011-1749 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2011-1749?

To fix CVE-2011-1749, upgrade nfs-utils to version 1.2.4 or later.

3

What systems are affected by CVE-2011-1749?

CVE-2011-1749 affects nfs-utils versions 1.2.3 and earlier, including 1.2.0, 1.2.1, and 1.2.2.

4

What is the nature of the vulnerability in CVE-2011-1749?

CVE-2011-1749 results from a flaw in the way mount.nfs handles input, leading to possible security risks.

5

Is CVE-2011-1749 still relevant for current systems?

CVE-2011-1749 is relevant only for systems using the affected versions of nfs-utils and should be assessed for risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203