Skip to main content
No exploitation reportedFix available

CVE-2018-18559

No exploitation reported by the sources we read.

  • Published2018-10-22
  • Fixed in4.14.7 · 4.9.70 · 4.4.106 · 4.3 · 4.1.49 · 3.18.88
  • WeaknessCWE-362 · CWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-10-2216:29CVE publishedNVD

Versions per branch

NVD
Linux linux kernel
BranchAffectedFixed in
4.x≥ 4.10, < 4.14.74.14.7
4.x≥ 4.5, < 4.9.704.9.70
4.x≥ 4.3.1, < 4.4.1064.4.106
4.x≥ 4.2.7, < 4.34.3
4.1≥ 4.1.14, < 4.1.494.1.49
3.18≥ 3.18.25, < 3.18.883.18.88
3.x≥ 3.14.58, < 3.153.15
3.2≥ 3.2.95, < 3.2.1003.2.100
Redhat enterprise linux desktop
BranchAffectedFixed in
7.0= 7.0no fix published
Redhat enterprise linux server
BranchAffectedFixed in
7.0= 7.0no fix published

6 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • kernelRed Hat:rhel_tus:7.3::serverall versions · fixed in 0:3.10.0-514.71.1.el7and 17 other packages
  • kernelRed Hat:rhel_eus:7.5::serverall versions · fixed in 0:3.10.0-862.44.2.el7and 24 other packages
  • kernelRed Hat:rhel_eus:7.5::computenodeall versions · fixed in 0:3.10.0-862.44.2.el7and 17 other packages
  • kernelRed Hat:rhel_eus:7.4::serverall versions · fixed in 0:3.10.0-693.47.2.el7and 23 other packages
  • kernelRed Hat:rhel_eus:7.4::computenodeall versions · fixed in 0:3.10.0-693.47.2.el7and 16 other packages
  • kernelRed Hat:rhel_e4s:7.3::serverall versions · fixed in 0:3.10.0-514.71.1.el7and 19 other packages
  • kernelRed Hat:rhel_aus:7.3::serverall versions · fixed in 0:3.10.0-514.71.1.el7and 17 other packages
  • kernelRed Hat:enterprise_linux:7::workstationall versions · fixed in 0:3.10.0-957.5.1.el7and 18 other packages

23 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-18559 Red Hat Product Security547 products fixed

    kernel: Use-after-free due to race condition in AF_PACKET implementation

  • RHSA-2020:0174 Red Hat Product Security25 products fixed

    Red Hat Security Advisory: kernel-alt security and bug fix update

  • RHSA-2019:4159 Red Hat Product Security98 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

  • RHSA-2019:3967 Red Hat Product Security111 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

  • RHSA-2019:1190 Red Hat Product Security16 products fixed

    Red Hat Security Advisory: kernel-rt security and bug fix update

  • RHSA-2019:1170 Red Hat Product Security106 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

2 more advisories

Full record on NVD

Fix

  1. Update Linux linux kernel to 4.14.7 · 4.9.70 · 4.4.106 · 4.3 · 4.1.49 · 3.18.88 · 3.15 · 3.2.100
  2. Vendor fix Red Hat Product Security RHSA-2020:0174 · 25 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2018-10-22
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-8w88-57v8-p48h

Frequently asked questions

What is 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. 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.

Is CVE-2018-18559 actively exploited?

Active exploitation of CVE-2018-18559 has not been confirmed. Its EPSS score was 3.0% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-18559?

CVE-2018-18559 has a CVSS v3 base score of 8.1 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record