CVE-2009-3621: Medium severity linux kernel vulnerability

Published Oct 19, 2009
·
Updated

net/unix/afunix.c in the Linux kernel 2.6.31.4 and earlier allows local users to cause a denial of service (system hang) by creating an abstract-namespace AFUNIX listening socket, performing a shutdown operation on this socket, and then performing a series of connect operations to this socket.

Other sources

Quoting from the patch submitted: "...a deadlock bug in UNIX domain socket, which makes able to DoS attack against the local machine by non-root users.

... Why this happens: Error checks between unixsocketconnect() and unixwaitforpeer() are inconsistent. The former calls the latter to wait until the backlog is processed. Despite the latter returns without doing anything when the socket is shutdown, the former doesn't check the shutdown state and just retries calling the latter forever."

How to reproduce: 1. Make a listening AFUNIX/SOCKSTREAM socket with an abstruct namespace(), and shutdown(2) it. 2. Repeat connect(2)ing to the listening socket from the other sockets until the connection backlog is full-filled. 3. connect(2) takes the CPU forever. If every core is taken, the system hangs.

Reproducer: http://patchwork.kernel.org/patch/54678/

You will need to add in the missing header files: #include <string.h> #include <stdio.h> #include <sys/un.h> #include <sys/types.h> #include <sys/socket.h>

Red Hat

Affected Software

15 affected components
Linux Linux kernel<=2.6.31.4
Canonical Ubuntu Linux=9.04
Canonical Ubuntu Linux=8.10
Canonical Ubuntu Linux=9.10
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=6.06
Fedoraproject Fedora=10
openSUSE openSUSE=11.0
openSUSE openSUSE=11.2
SUSE SUSE Linux Enterprise Server=10-sp3
SUSE SUSE Linux Enterprise Desktop=10-sp3
SUSE SUSE Linux Enterprise Server=10-sp2
SUSE SUSE Linux Enterprise Desktop=10-sp2
VMware ESX=4.0
VMware vMA=4.0

Event History

Oct 19, 2009
Data Sourced
08:50 AM
DescriptionSeverityAffected Software
Oct 22, 2009
CVE Published
via MITRE·03:26 PM
Data Sourced
via MITRE·03:26 PM
Description
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-2009-3621?

CVE-2009-3621 has a high severity rating due to its potential to cause a denial of service by hanging the system.

2

How do I fix CVE-2009-3621?

To fix CVE-2009-3621, upgrade your Linux kernel to a version later than 2.6.31.4.

3

Which versions of Linux are affected by CVE-2009-3621?

CVE-2009-3621 affects Linux kernel versions 2.6.31.4 and earlier, along with specific releases of Ubuntu, Fedora, openSUSE, and SUSE Linux Enterprise.

4

What type of vulnerability is CVE-2009-3621?

CVE-2009-3621 is classified as a denial of service vulnerability that affects abstract-namespace AF_UNIX sockets.

5

Can local users exploit CVE-2009-3621?

Yes, local users can exploit CVE-2009-3621 by creating specific AF_UNIX sockets to cause the system to hang.

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