Home/CVE/In the Linux kernel through 4.19, a use-after-free can occur due to a race condition between fanout_add from setsockopt
CVE

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

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.

HIGH · CVSS 8.1 EPSS 0.01349
Act now
  • Public exploit or PoC is available
  • CVSS base score ≥ 7.0
Sigma rules0 YARA rules0

Affected Products & Versions

16
linux kernel>= 3.2.95 and < 3.2.100
linux kernel>= 3.14.58 and < 3.15
linux kernel>= 3.18.25 and < 3.18.88
linux kernel>= 4.1.14 and < 4.1.49
linux kernel>= 4.2.7 and < 4.3
linux kernel>= 4.3.1 and < 4.4.106
linux kernel>= 4.5 and < 4.9.70
linux kernel>= 4.10 and < 4.14.7

Public Exploits & PoCs

1
pocblogs.securiteam.com · 3731blogs.securiteam.com

Scoring & Timeline

8.1
HIGH · CVSS v3.1 · cve@mitre.org
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD22 Oct 2018 · 04:29 PM
CVSS VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Vendor Advisories

7
rhsaRHSA-2020:0174Moderate
rhsaRHSA-2019:1170Moderate
rhsaRHSA-2019:1190Moderate
rhsaRHSA-2019:3967Important
rhsaRHSA-2019:4159Important
🔗

References & Sources

1
Source URLs (vendor pages, mailing lists, write-ups). Exploit/PoC links are in their own section above to avoid duplication.
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin