High severity · published Oct 22, 2018
CVE-2018-18559
In the Linux kernel through 4.19, a use-after-free can occur due to a race condition between fanout_add from setsockopt and bind on an AF_PACKET socket
8.1
CVSS
2.6%
EPSS
No
On KEV
Description
In the Linux kernel through 4.19, a use-after-free can occur due to a race condition between fanout_add from setsockopt and bind on an AF_PACKET socket. This issue exists because of the 15fe076edea787807a7cdc168df832544b58eba6 incomplete fix for a race condition. The code mishandles a certain multithreaded case involving a packet_do_bind unregister action followed by a packet_notifier register action. Later, packet_release operates on only one of the two applicable linked lists. The attacker can achieve Program Counter control.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.6% · higher than 85% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
3.2.95 before 3.2.100; 3.14.58 before 3.15; 3.18.25 before 3.18.88; 4.1.14 before 4.1.49; 4.2.7 before 4.3; 4.3.1 before 4.4.106; +2 more · source: NVD
EL
Enterprise Linux Desktop · Redhat
7.0 · source: NVD
EL
Enterprise Linux Server · Redhat
7.0 · source: NVD
EL
Enterprise Linux Server Aus · Redhat
7.6 · source: NVD
EL
Enterprise Linux Server Eus · Redhat
7.6 · source: NVD
EL
Enterprise Linux Server Tus · Redhat
7.6 · source: NVD
EL
Enterprise Linux Workstation · Redhat
7.0 · source: NVD
OC
Openshift Container Platform · Redhat
3.11 · source: NVD
VH
Virtualization Host · Redhat
4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-18559
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-18559
Third Party Advisory
https://access.redhat.com/errata/RHBA-2019:0327
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0163
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0188
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1170
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1190
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:3967
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
