CVE-2011-0719: Buffer Overflow

Published Feb 17, 2011
·
Updated

A flaw was found in the way Samba handles the file descriptor sets (fdset) datastructure.

The Samba codebase uses file descriptor sets in various places. The fdset structure is a fixed size defined by the FDSETSIZE variable. If a file descriptor with a value greater than or equal to FDSETSIZE is added to a set, it can set a single bit on the stack to a '1'.

In Red Hat Enterprise Linux, all samba processes except for smbd have a limit set which prevents a process from allocating more than 1024 file descriptors by default. 1024 is the value of FDSETSIZE on Red Hat Enterprise Linux.

smbd does not cap the maximum allowed file descriptors below 1024. This means that if a remote attacker has the ability to open files on a Samba server, they may be able to flip arbitrary stack bits to a '1'. It is not currently believed that this flaw can be used for arbitrary code execution, but the possibility should not be ruled out.

Acknowledgements:

Red Hat would like to thank the Samba team for reporting this issue. Upstream acknowledges Volker Lendecke of SerNet as the original reporter.

Other sources

Samba 3.x before 3.3.15, 3.4.x before 3.4.12, and 3.5.x before 3.5.7 does not perform range checks for file descriptors before use of the FDSET macro, which allows remote attackers to cause a denial of service (stack memory corruption, and infinite loop or daemon crash) by opening a large number of files, related to (1) Winbind or (2) smbd.

MITRE

Affected Software

127 affected components
Samba Samba=3.0.19
Samba Samba=3.0.23-c
Samba Samba=3.0.14a
Samba Samba=3.0.27
Samba Samba=3.0.31
Samba Samba=3.0.3
Samba Samba=3.0.8
Samba Samba=3.2.15
Samba Samba=3.3.3
Samba Samba=3.0.23-b
Samba Samba=3.0.29
Samba Samba=3.0.25-pre2
Samba Samba=3.0.25b
Samba Samba=3.2.5
Samba Samba=3.2.3
Samba Samba=3.0.2a
Samba Samba=3.0.36
Samba Samba=3.0.28-a
Samba Samba=3.2.4
Samba Samba=3.0.5
Samba Samba=3.0.26-a
Samba Samba=3.3.9
Samba Samba=3.0.21-a
Samba Samba=3.0.28
Samba Samba=3.0.32
Samba Samba=3.0.26a
Samba Samba=3.2.13
Samba Samba=3.0.6
Samba Samba=3.0.21a
Samba Samba=3.0.34
Samba Samba=3.0.25-rc1
Samba Samba=3.0.23
Samba Samba=3.2.1
Samba Samba=3.0.4-rc1
Samba Samba=3.3.4
Samba Samba=3.0.33
Samba Samba=3.0.25-b
Samba Samba=3.0.21-b
Samba Samba=3.0.20a
Samba Samba=3.3.12
Samba Samba=3.0.21b
Samba Samba=3.0.20-a
Samba Samba=3.3.7
Samba Samba=3.0.0
Samba Samba=3.0.9
Samba Samba=3.2.9
Samba Samba=3.0.11
Samba Samba=3.0.7
Samba Samba=3.0.13
Samba Samba=3.3.1
Samba Samba=3.2.2
Samba Samba=3.2.7
Samba Samba=3.0.14-a
Samba Samba=3.0.20b
Samba Samba=3.0.21-c
Samba Samba=3.0.16
Samba Samba=3.2.10
Samba Samba=3.0.17
Samba Samba=3.0.21
Samba Samba=3.0.26
Samba Samba=3.0.14
Samba Samba=3.0.25-pre1
Samba Samba=3.0.30
Samba Samba=3.0.21c
Samba Samba=3.3.11
Samba Samba=3.0.20-b
Samba Samba=3.3.0
Samba Samba=3.0.23b
Samba Samba=3.3.6
Samba Samba=3.0.25-rc3
Samba Samba=3.3.14
Samba Samba=3.0.23-a
Samba Samba=3.0.2
Samba Samba=3.0.12
Samba Samba=3.2.12
Samba Samba=3.0.37
Samba Samba=3.0.20
Samba Samba=3.2.8
Samba Samba=3.0.35
Samba Samba=3.0.18
Samba Samba=3.0.23-d
Samba Samba=3.0.2-a
Samba Samba=3.0.25a
Samba Samba=3.0.25c
Samba Samba=3.3.2
Samba Samba=3.0.24
Samba Samba=3.0.10
Samba Samba=3.2.11
Samba Samba=3.1.0
Samba Samba=3.0.27-a
Samba Samba=3.3.8
Samba Samba=3.3.13
Samba Samba=3.2.14
Samba Samba=3.0.23d
Samba Samba=3.0.25-rc2
Samba Samba=3.2.0
Samba Samba=3.3.5
Samba Samba=3.0.25-a
Samba Samba=3.0.23c
Samba Samba=3.0.15
Samba Samba=3.2.6
Samba Samba=3.0.23a
Samba Samba=3.0.25-c
Samba Samba=3.0.4
Samba Samba=3.3.10
Samba Samba=3.0.25
Samba Samba=3.0.1
Samba Samba=3.0.22
Samba Samba=3.4.2
Samba Samba=3.4.11
Samba Samba=3.4.0
Samba Samba=3.4.7
Samba Samba=3.4.8
Samba Samba=3.4.5
Samba Samba=3.4.6
Samba Samba=3.4.1
Samba Samba=3.4.10
Samba Samba=3.4.4
Samba Samba=3.4.3
Samba Samba=3.4.9
Samba Samba=3.5.1
Samba Samba=3.5.6
Samba Samba=3.5.2
Samba Samba=3.5.5
Samba Samba=3.5.0
Samba Samba=3.5.4
Samba Samba=3.5.3

Event History

Feb 17, 2011
Data Sourced
03:46 PM
DescriptionSeverityAffected Software
Mar 1, 2011
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-0719?

CVE-2011-0719 has a medium severity rating due to the potential for denial of service.

2

How do I fix CVE-2011-0719?

To fix CVE-2011-0719, upgrade your Samba version to one that addresses this vulnerability, specifically versions later than 3.4.12.

3

What types of software are affected by CVE-2011-0719?

CVE-2011-0719 affects various versions of Samba, specifically versions from 3.0.0 through 3.5.6.

4

Can CVE-2011-0719 be exploited remotely?

Yes, CVE-2011-0719 can potentially be exploited remotely, which could lead to a denial of service.

5

Is CVE-2011-0719 related to file descriptor handling?

Yes, CVE-2011-0719 is specifically related to how Samba handles the file descriptor sets (fd_set) data structure.

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