CVEvulnerability

CVE-2018-18559

8.1 HIGH Published 2018-10-22 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2018-10-22
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
6.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:P
Weaknesses
CWE-362, CWE-416

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.

Affected configurations

• linux linux kernel (>= 3.2.95 < 3.2.100) • linux linux kernel (>= 3.14.58 < 3.15) • linux linux kernel (>= 3.18.25 < 3.18.88) • linux linux kernel (>= 4.1.14 < 4.1.49) • linux linux kernel (>= 4.2.7 < 4.3) • linux linux kernel (>= 4.3.1 < 4.4.106) • linux linux kernel (>= 4.5 < 4.9.70) • linux linux kernel (>= 4.10 < 4.14.7) • redhat openshift container platform 3.11 • redhat virtualization host 4.0 • redhat enterprise linux desktop 7.0 • redhat enterprise linux server 7.0 • redhat enterprise linux server aus 7.6 • redhat enterprise linux server eus 7.6 • redhat enterprise linux server tus 7.6 • redhat enterprise linux workstation 7.0

Related

Weakness · CWE (2)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness
  • CWE-416 Use After Free weakness

References