CVE-2012-6704: Integer Overflow

Published Apr 26, 2012
·
Updated

A flaw was found in the Linux kernel's implementation of setsockopt for the SO{SND|RCV}BUF setsockopt() system call. Users with non-namespace CAPNETADMIN are able to trigger this call and create a situation in which the sockets sendbuff data size could be negative.

Other sources

A flaw was found in the Linux kernels implementation of setsockopt for the SO{SND|RCV}BUF setsockopt() system call. Users with non-namespace CAPNETADMIN are able to trigger this call and create a situation in which the sockets sendbuff data size could be negative.

This could adversely affect memory allocations and create situations where the system could crash or cause memory corruption.

This situation affects SOSNDBUFF and SORCVBUFF similarly as shown in CVE-2016-9793.

Upstream patch:

https://github.com/torvalds/linux/commit/82981930125abfd39d7c8378a9cfdf5e1be2002b

CVE assignment:

http://seclists.org/oss-sec/2016/q4/574

Red Hat

The socksetsockopt function in net/core/sock.c in the Linux kernel before 3.5 mishandles negative values of sksndbuf and skrcvbuf, which allows local users to cause a denial of service (memory corruption and system crash) or possibly have unspecified other impact by leveraging the CAPNETADMIN capability for a crafted setsockopt system call with the (1) SOSNDBUF or (2) SORCVBUF option.

Affected Software

3 affected componentsFixes available
redhat/kernel<3.5
3.5
Linux Linux kernel<3.2.85
Linux Linux kernel>=3.3<3.5

Event History

Apr 26, 2012
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeakness
Dec 28, 2016
CVE Published
via MITRE·07:42 AM
Data Sourced
via MITRE·07:42 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-6704?

CVE-2012-6704 has been classified as a high severity vulnerability due to its potential impact on networking functions.

2

How do I fix CVE-2012-6704?

To fix CVE-2012-6704, upgrade the Linux kernel to version 3.5 or later.

3

What systems are affected by CVE-2012-6704?

CVE-2012-6704 affects Linux kernel versions prior to 3.5 and between versions 3.3 and 3.5.

4

Can CVE-2012-6704 be exploited remotely?

CVE-2012-6704 can potentially be exploited by users with non-namespace CAP_NET_ADMIN permissions, impacting socket buffer sizes.

5

What does CVE-2012-6704 affect in the Linux kernel?

CVE-2012-6704 affects the setsockopt system call, specifically the SO_SND_BUF and SO_RCV_BUF options in the Linux kernel.

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