CVE-2018-18559

Advisory lineage Upstream: 0 Downstream: 9
Modified
Published: 22 Oct 2018, 16:00
Last modified:05 Aug 2024, 11:16

Vulnerability Summary

Overall Risk (default)
medium
43/100
CVSS Score
8.1 HIGH
v3.1 (nvd)
EPSS Score
1.35% LOW
1% probability +0.21%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

22 Oct 2018, 16:00
Published
Vulnerability first disclosed
05 Aug 2024, 11:16
Last Modified
Vulnerability information updated

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 Metrics

  • v3.1HIGHScore: 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v2.0MEDIUMScore: 6.8AV:N/AC:M/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 1.35% Percentile: 80%

Techniques & Countermeasures

  • CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

    The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

  • CWE-416Use After Free

    The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Affected Systems

  • linuxlinux_kernel

    ≥ 3.2.95, < 3.2.100 | ≥ 3.14.58, < 3.15 | ≥ 3.18.25, < 3.18.88 | ≥ 4.1.14, < 4.1.49 | ≥ 4.2.7, < 4.3 | ≥ 4.3.1, < 4.4.106 | ≥ 4.5, < 4.9.70 | ≥ 4.10, < 4.14.7

  • redhatenterprise_linux_desktop

    7.0

  • redhatenterprise_linux_server

    7.0

  • redhatenterprise_linux_server_aus

    7.6

  • redhatenterprise_linux_server_eus

    7.6

  • redhatenterprise_linux_server_tus

    7.6

  • redhatenterprise_linux_workstation

    7.0

  • redhatopenshift_container_platform

    3.11

  • redhatvirtualization_host

    4.0

References (9)