CVE-2013-4312: Buffer Overflow

Published Jan 12, 2016
·
Updated

It was found that process could allocate and accumulate far more FDs than the process' limit by sending them over a unix socket then closing them to keep the process' fd count low, which could result into a local DoS against kernel by depleting all available memory.

Upstream patch:

https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=712f4aad406b

Discussion:

https://lkml.org/lkml/2015/12/28/155

Other sources

The Linux kernel before 4.4.1 allows local users to bypass file-descriptor limits and cause a denial of service (memory consumption) by sending each descriptor over a UNIX socket before closing it, related to net/unix/afunix.c and net/unix/garbage.c.

— Launchpad

Affected Software

29 affected componentsFixes available
Oracle Linux=5.0
Oracle Linux=6
Oracle Linux=7
Linux Linux kernel<=4.4
ubuntu/linux<3.13.0-83.127
3.13.0-83.127
ubuntu/linux-lts-utopic<3.16.0-67.87~14.04.1
3.16.0-67.87~14.04.1
ubuntu/linux-lts-vivid<3.19.0-56.62~14.04.1
3.19.0-56.62~14.04.1
ubuntu/linux-lts-wily<4.2.0-30.35~14.04.1
4.2.0-30.35~14.04.1
ubuntu/linux-azure*
ubuntu/linux-gcp*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15*
ubuntu/linux-gke*
ubuntu/linux-gkeop*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-azure-6.11*
ubuntu/linux-gcp-6.11*
ubuntu/linux-hwe-6.11*
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-raspi-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
debian/linux
3.2.73-2+deb7u33.16.7-ckt20-1+deb8u44.3.3-6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 3.13.0-83.127
  2. Upgrade

    Upgrade ubuntu/linux-lts-utopic to a version that resolves this vulnerability.

    Fixed in 3.16.0-67.87~14.04.1
  3. Upgrade

    Upgrade ubuntu/linux-lts-vivid to a version that resolves this vulnerability.

    Fixed in 3.19.0-56.62~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux-lts-wily to a version that resolves this vulnerability.

    Fixed in 4.2.0-30.35~14.04.1
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 3.2.73-2+deb7u3Fixed in 3.16.7-ckt20-1+deb8u4Fixed in 4.3.3-6
  6. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 4.4.1

Event History

Jan 12, 2016
Data Sourced
02:21 PM
DescriptionSeverityAffected Software
Feb 7, 2016
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Feb 8, 2016
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
Feb 17, 2021
Data Sourced
via Red Hat·04:31 AM
DescriptionSeverityAffected Software
Feb 13, 2023
Data Sourced
04:46 AM
Weakness
Data Sourced
via NVD·04:46 AM
DescriptionSeverityWeaknessAffected Software
Updated
04:46 AM
Affected Software
Nov 21, 2024
Updated
via NVD·01:55 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Jun 16, 2026
Updated
via NVD·11:57 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2013-4312?

CVE-2013-4312 is a vulnerability in the Linux kernel that allows local users to bypass file-descriptor limits and cause a denial of service by sending each descriptor over a UNIX socket before closing it.

2

How can this vulnerability be exploited?

To exploit CVE-2013-4312, a local user would need to send each file descriptor over a UNIX socket before closing it.

3

What is the severity of CVE-2013-4312?

CVE-2013-4312 has a severity level of medium.

4

How can I fix CVE-2013-4312?

To fix CVE-2013-4312, it is recommended to update the Linux kernel to version 4.5~ or later.

5

Where can I find more information about CVE-2013-4312?

More information about CVE-2013-4312 can be found at the following references: [1] [2] [3].

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