CVE-2014-0244: Input Validation

Published May 14, 2014
·
Updated

Created attachment 895515 [details] Strace of nmbd when the problem is triggered

Description of problem:

I'm running samba3x (samba3x-3.6.6-0.139.el510) as an simple NT domain controler on a CentOS 5.10, and found sometime the nmbd process stuck (eating 100% CPU, and not responding anymore to any request, making any domain login impossible). The only solution was to kill -9 this process and restart it. It was occuring randomly, so was quite hard to troubleshoot, but after a few hours, I've finaly identified what's causing it (well at least, I know a simple request from a client is enough to trigger it)

I'll attach:

- a strace of the process at the time the problem occure. In this file the last lines (recvfrom(12, 0xbfcff9c8, 576, 0, 0xbfcffc08, 0xbfcff988) = -1 EAGAIN (Resource temporarily unavailable)) is repeated indefinitly as long as the process isn't killed, producing several GB per hour in the strace file. I've truncated it to the interesting part

- a pcap of the packet crashing nmbd (which you can replay with tcpreplay to reproduce the issue)

Version-Release number of selected component (if applicable):

How reproducible: 100% with the attached pcap

Steps to Reproduce: 1. You need a client with IP 192.168.7.50 and MAC 6c:62:6d:b0:25:42 2. The server running nmbd with IP 192.168.7.1 and MAC 52:54:00:7C:31:C4 (if you have different values you'll have to tweak the pcap with tcprewrite) 3. The netbios name of the samba server should be SAS (it's contained in the pcap and needs to match the netbios name of the server in order to trigger the issue) 4. Run nmbd (I'm running it with daemontools with /usr/sbin/nmbd -F -S but that probably doesn't matter) 5. Replay the attached pcap with tcpreplay -i eth0 nmbddos.pcap

Actual results: nmbd will go in a loop, taking 100% of a core, and won't respond to any further requests, making impossible to login on the domain

Expected results: nmbd should continue working as normal

Additional info:

Marking this a security issue as it makes it very easy to DOS a domain controler

Other sources

The sysrecvfrom function in nmbd in Samba 3.6.x before 3.6.24, 4.0.x before 4.0.19, and 4.1.x before 4.1.9 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a malformed UDP packet.

MITRE

Affected Software

52 affected components
Samba Samba=4.1.0
Samba Samba=4.1.1
Samba Samba=4.1.2
Samba Samba=4.1.3
Samba Samba=4.1.4
Samba Samba=4.1.5
Samba Samba=4.1.6
Samba Samba=4.1.7
Samba Samba=4.1.8
Samba Samba=4.0.0
Samba Samba=4.0.1
Samba Samba=4.0.2
Samba Samba=4.0.3
Samba Samba=4.0.4
Samba Samba=4.0.5
Samba Samba=4.0.6
Samba Samba=4.0.7
Samba Samba=4.0.8
Samba Samba=4.0.9
Samba Samba=4.0.10
Samba Samba=4.0.11
Samba Samba=4.0.12
Samba Samba=4.0.13
Samba Samba=4.0.14
Samba Samba=4.0.15
Samba Samba=4.0.16
Samba Samba=4.0.17
Samba Samba=4.0.18
Samba Samba=3.6.0
Samba Samba=3.6.1
Samba Samba=3.6.2
Samba Samba=3.6.3
Samba Samba=3.6.4
Samba Samba=3.6.5
Samba Samba=3.6.6
Samba Samba=3.6.7
Samba Samba=3.6.8
Samba Samba=3.6.9
Samba Samba=3.6.10
Samba Samba=3.6.11
Samba Samba=3.6.12
Samba Samba=3.6.13
Samba Samba=3.6.14
Samba Samba=3.6.15
Samba Samba=3.6.16
Samba Samba=3.6.17
Samba Samba=3.6.18
Samba Samba=3.6.19
Samba Samba=3.6.20
Samba Samba=3.6.21
Samba Samba=3.6.22
Samba Samba=3.6.23

Event History

May 14, 2014
Data Sourced
via Red Hat·03:09 PM
DescriptionSeverityAffected Software
Jun 23, 2014
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2014-0244?

CVE-2014-0244 has a high severity rating which indicates a significant risk to affected systems.

2

How do I fix CVE-2014-0244?

To fix CVE-2014-0244, update Samba to versions 4.1.9, 4.1.10, 4.1.11, or later.

3

Which versions of Samba are affected by CVE-2014-0244?

CVE-2014-0244 affects Samba versions 3.6.0 through 4.1.8.

4

What type of vulnerability is CVE-2014-0244?

CVE-2014-0244 is a denial of service vulnerability in Samba.

5

Is CVE-2014-0244 being actively exploited?

CVE-2014-0244 has been reported as potentially being actively exploited in the wild.

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