CVE-2015-3636
kernel: ping sockets: use-after-free leading to local privilege escalation
Severity
ModerateRed Hat Product Security
CVSS 2.0
Review impact separately from score.
Published · May 2, 2015
Updated · June 28, 2026
Description
It was found that the Linux kernel's ping socket implementation did not properly handle socket unhashing during spurious disconnects, which could lead to a use-after-free flaw. On x86-64 architecture systems, a local user able to create ping sockets could use this flaw to crash the system. On non-x86-64 architecture systems, a local user able to create ping sockets could use this flaw to escalate their privileges on the system.
Statement
This issue does not affect the Linux kernel as shipped with Red Hat Enterprise Linux 5. This issue does affect the Linux kernel as shipped with Red Hat Enterprise Linux 6, 7 and Red Hat Enterprise MRG 2. Future kernel updates for the respective releases will address this issue.
Please note that on x86-64 architecture systems the impact is limited to local Denial of Service and that the ping sockets functionality is disabled by default (net.ipv4.ping_group_range sysctl is "1 0").
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
You can check whether ping socket functionality is enabled by examining the net.ipv4.ping_group_range sysctl value:
~]# sysctl net.ipv4.ping_group_range net.ipv4.ping_group_range = 1 0
"1 0" is the default value and disables the ping socket functionality even for root user. Any other value means that the ping socket functionality might be enabled for certain users on the system.
To mitigate this vulnerability make sure that you either allow the functionality to trusted local users (groups) only or set the net.ipv4.ping_group_range sysctl to the default and disabled state:
~]# sysctl net.ipv4.ping_group_range="1 0"
Please note that this might prevent some programs relying on this functionality from functioning properly.
CVSS / CWE
CVSS 2.0 · 6AV:L/AC:H/Au:S/C:C/I:C/A:C
CWE-416 · Use After Free