CVE-2011-2491: Medium severity linux kernel vulnerability

Published May 31, 2011
·
Updated

Created attachment 502027 [details] dmesg output with NFS/NLM/RPC debug

btw. I'm reporting this issue to akpm@ and to Trond Myklebust because other vendors and upstream linux kernel is affected too.

Description of problem: unprivileged user can use flock syscall for NFS share to trigger unlimited resource leak and this could cause node DoS.

Details: flock on NFS calls nlmclntlock() function, where nlmclntcall() executes synchronous RPC task NLMPROCLOCK. Via several subcalls (callbind) it successfully connects to NFS server and decodes its reply, however because server did not set up rport rpcbgetportdone() returns -EACCES, and following rpc subcall callbindstatus() in this case repeats callbind() after 3 sec timeout.

It isn't a big problem, and this cycle could be broken by signal, however error path of nlmclntlock() executes identical asynchronous RPC call to unlock taken lock. Waiting of result of this call is also canceled by signal, however in this case RPC call is asynchronous, it cycles too and never finished.

I would like to ask Trond to recheck my analyze and review my patch with fix of this issue or propose some better and more correct solution.

My idea is to break cycle described above, return -EOPNOTSUPP to nlmclntlock(), check it on error path and do not execute NLMPROCUNLOCK call because we already know that server does not support locking operations.

PS. one more separate issue: NLMPROCUNLOCK can be cycled in another place: nlmclntunlockcallback() restarts RPC task in case of any errors. Therefore we cannot execute NLMPROCUNLOCK on error path in case of server errors. I did not reproduce this issue, however I believe it's possible.

PPS. Also I've found similar cycles in other nlm callbacks, however I have no ideas is it possible to exploit it. However I would like to ask Trond to review this code too.

Version-Release number of selected component (if applicable): 2.6.32-131.0.15.el6.x8664 I've reproduced this issue on RHEL5, RHEL6, ubuntu 11.04 and upstream linux kernel 2.6.39.

How reproducible: 100%

Actual results: flock hangs, can be canceled by signal, as result one more rpc task leaks (FYI: sysctl -w sunrpc.rpcdebug=0 dumps status of active RPC taks)

Expected results: no hangs, no leaks

Additional info: dmesg output with NFS/NLM/RPC debug and concept of patch are attached. Because vendor-sec is no longer in use I'm preparing private report to akpm@ and to Trond Myklebust, probably they can propose some better solution

Other sources

The Network Lock Manager (NLM) protocol implementation in the NFS client functionality in the Linux kernel before 3.0 allows local users to cause a denial of service (system hang) via a LOCKUN flock system call.

Launchpad

Affected Software

5 affected components
debian/linux-2.6
Linux Linux kernel<3.0
redhat Enterprise Linux Server=5.0
redhat Enterprise Linux Workstation=5.0
redhat Enterprise Linux Desktop=5.0

Event History

May 31, 2011
Data Sourced
via Red Hat·03:31 PM
DescriptionSeverityAffected Software
Mar 1, 2013
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Data Sourced
via NVD·12:37 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·09:58 PM
Description
Sep 15, 2024
Data Sourced
via Ubuntu·10:44 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2011-2491?

CVE-2011-2491 is classified as a moderate severity vulnerability.

2

How do I fix CVE-2011-2491?

To remediate CVE-2011-2491, update your Linux kernel to version 3.0 or later.

3

What software is affected by CVE-2011-2491?

CVE-2011-2491 affects Linux kernels prior to version 3.0 and specific versions of Red Hat Enterprise Linux 5.0.

4

What type of vulnerability is CVE-2011-2491?

CVE-2011-2491 is a vulnerability related to improper privilege management in the Linux kernel.

5

Is CVE-2011-2491 exploitable remotely?

CVE-2011-2491 is not typically exploitable remotely but may be leveraged in local attacks.

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