CVE-2011-3191: Buffer Overflow

Published Aug 24, 2011
·
Updated

Integer signedness error in the CIFSFindNext function in fs/cifs/cifssmb.c in the Linux kernel before 3.1 allows remote CIFS servers to cause a denial of service (memory corruption) or possibly have unspecified other impact via a large length value in a response to a read request for a directory.

Other sources

The namelen variable in CIFSFindNext is a signed int that gets set to the resumenamelen in the cifssearchinfo. The resumenamelen however is unsigned and for some infolevels is populated directly from a 32 bit value sent by the server.

If the server sends a very large value for this, then that value could look negative when converted to a signed int. That would make that value pass the PATHMAX check later in CIFSFindNext. The namelen would then be used as a length value for a memcpy. It would then be treated as unsigned again, and the memcpy scribbles over a ton of memory.

Fix this by making the namelen an unsigned value in CIFSFindNext.

http://www.spinics.net/lists/linux-cifs/msg03950.html

Acknowledgements:

Red Hat would like to thank Darren Lavender for reporting this issue.

Red Hat

Affected Software

3 affected components
debian/linux-2.6
Linux Linux kernel<3.0.5
redhat Enterprise Linux=4.0

Event History

Aug 24, 2011
Data Sourced
via Red Hat·02:22 AM
DescriptionSeverityAffected Software
May 24, 2012
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:58 PM
Description
Sep 15, 2024
Data Sourced
via Ubuntu·10:47 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2011-3191?

CVE-2011-3191 is rated as a high severity vulnerability due to its potential for causing denial of service and memory corruption.

2

How do I fix CVE-2011-3191?

To fix CVE-2011-3191, upgrade your Linux kernel to version 3.1 or newer, which includes the necessary patches.

3

Which Linux kernel versions are affected by CVE-2011-3191?

CVE-2011-3191 affects Linux kernel versions before 3.1, specifically versions prior to 3.0.5.

4

What types of attacks can exploit CVE-2011-3191?

CVE-2011-3191 can be exploited by remote CIFS servers sending a large length value in a directory read request, leading to potential memory corruption.

5

Are there any specific distributions known to be affected by CVE-2011-3191?

Yes, Red Hat Enterprise Linux version 4.0 and various versions of Debian's linux-2.6 are known to be affected by CVE-2011-3191.

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