CVE-2012-6657: Medium severity Linux Linux kernel vulnerability

Published Sep 24, 2012
·
Updated

It was found that the Linux kernel's networking implementation did not correctly handle the setting of the keepalive socket option on raw sockets. A local user able to create a raw socket could use this flaw to crash the system.

Other sources

Linux kernel built with the Networking support(CONFIGNET) is vulnerable to a crash, while resetting a socket timer. It could occur while doing a setsockopt(SOKEEPALIVE) call.

A privileged user/process able to create RAW socket could use this flaw to crash the system kernel resulting in DoS.

Upstream fix: ------------- -> https://git.kernel.org/linus/3e10986d1d698140747fcfc2761ec9cb64c1d582

— Red Hat

The socksetsockopt function in net/core/sock.c in the Linux kernel before 3.5.7 does not ensure that a keepalive action is associated with a stream socket, which allows local users to cause a denial of service (system crash) by leveraging the ability to create a raw socket.

Affected Software

13 affected componentsFixes available
redhat/kernel<0:2.6.32-504.3.3.el6
0:2.6.32-504.3.3.el6
Linux Linux kernel<=3.5.6
Linux Linux kernel=3.5.1
Linux Linux kernel=3.5.2
Linux Linux kernel=3.5.3
Linux Linux kernel=3.5.4
Linux Linux kernel=3.5.5
Novell Suse Linux Enterprise Server=10.0-sp4
Novell Suse Linux Enterprise Server=11.0-sp1
debian/linux<3.6.4-1
3.6.4-1
debian/linux<3.6.4-1
3.6.4-1
debian/linux<3.6.4-1
3.6.4-1
debian/linux
6.1.176-16.1.192-26.12.107-16.12.117-17.3.4-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:2.6.32-504.3.3.el6
  2. Upgrade

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

    Fixed in 3.6.4-1
  3. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1
  4. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 3.5.7

Event History

Sep 24, 2012
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Sep 28, 2014
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
via OSV·10:55 AM
DescriptionAffected Software
Feb 17, 2021
Data Sourced
via Red Hat·06:13 AM
DescriptionSeverityAffected Software
Feb 13, 2023
Data Sourced
04:38 AM
Weakness
Data Sourced
via NVD·04:38 AM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·01:46 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Jun 16, 2026
Updated
via NVD·11:48 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2012-6657?

CVE-2012-6657 has a medium severity rating due to its potential to allow a local user to crash the system.

2

How do I fix CVE-2012-6657?

To fix CVE-2012-6657, update your kernel to a version higher than 0:2.6.32-504.3.3.el6 or the specific versions for the Linux kernel that include patches.

3

Which systems are affected by CVE-2012-6657?

CVE-2012-6657 affects various Linux kernel versions including those from Red Hat and SUSE enterprise distributions.

4

Can CVE-2012-6657 be exploited remotely?

No, CVE-2012-6657 cannot be exploited remotely as it requires local user access to create raw sockets.

5

What are the potential impacts of CVE-2012-6657?

The potential impact of CVE-2012-6657 includes system crashes due to improper handling of the keepalive socket option.

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