CVE-2018-18559 json
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_P…
published 8y ago modified 4mo ago also EUVD-2018-10279
- cvss
- 8.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- linux linux_kernel 3.2.100, 3.15, 3.18.88, 4.1.49, 4.3, 4.4.106, 4.9.70, 4.14.7
- linux Debian 14, Debian 13, Debian 12 4.14.7-1
debian advisories DEBIAN-CVE-2018-18559
- linux Ubuntu 16.04 LTS 4.4.0-119.143
- linux-aws Ubuntu 14.04 LTS 4.4.0-1016.16
- linux-aws Ubuntu 16.04 LTS 4.4.0-1054.63
- linux-gcp Ubuntu 16.04 LTS 4.15.0-1014.14~16.04.1
- linux-hwe Ubuntu 16.04 LTS 4.15.0-24.26~16.04.1
- linux-kvm Ubuntu 16.04 LTS 4.4.0-1020.25
- linux-azure Ubuntu 16.04 LTS 4.15.0-1013.13~16.04.2
- linux-raspi2 Ubuntu 16.04 LTS 4.4.0-1086.94
ubuntu advisories UBUNTU-CVE-2018-18559
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-alt RHEL 7 4.14.0-115.17.1.el7a
- perf RHEL 7 4.14.0-115.17.1.el7a
- kernel RHEL 7 4.14.0-115.17.1.el7a
- python-perf RHEL 7 4.14.0-115.17.1.el7a
- kernel-tools RHEL 7 4.14.0-115.17.1.el7a
- kernel-tools-libs RHEL 7 4.14.0-115.17.1.el7a
- kernel-bootwrapper RHEL 7 4.14.0-115.17.1.el7a
- kernel-abi-whitelists RHEL 7 4.14.0-115.17.1.el7a
red hat advisories RHSA-2020:0174RHSA-2019:0163RHSA-2019:3967RHSA-2019:4159RHSA-2019:1190RHSA-2019:1170
Is CVE-2018-18559 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-18559 updated cvss 7.0
kernel: Use-after-free due to race condition in AF_PACKET implementation
-
Red Hat Enterprise Linux Client (v. 7) perf 3.10.0-957.5.1.el7, kernel 3.10.0-957.5.1.el7, bpftool 3.10.0-957.5.1.el7, python-perf 3.10.0-957.5.1.el7, kernel-tools 3.10.0-957.5.1.el7, kernel-tools-libs 3.10.0-957.5.1.el7, +2 more Red Hat Enterprise Linux Client Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-957.5.1.el7 Red Hat Enterprise Linux ComputeNode (v. 7) perf 3.10.0-957.5.1.el7, kernel 3.10.0-957.5.1.el7, bpftool 3.10.0-957.5.1.el7, python-perf 3.10.0-957.5.1.el7, kernel-tools 3.10.0-957.5.1.el7, kernel-tools-libs 3.10.0-957.5.1.el7, +2 morefixed: vendor fix RHSA-2019:0163
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.4) perf 3.10.0-693.47.2.el7, kernel 3.10.0-693.47.2.el7, python-perf 3.10.0-693.47.2.el7, kernel-tools 3.10.0-693.47.2.el7, kernel-tools-libs 3.10.0-693.47.2.el7, kernel-abi-whitelists 3.10.0-693.47.2.el7, +1 morefixed: vendor fix RHSA-2019:1170
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) perf 3.10.0-862.44.2.el7, kernel 3.10.0-862.44.2.el7, python-perf 3.10.0-862.44.2.el7, kernel-tools 3.10.0-862.44.2.el7, kernel-tools-libs 3.10.0-862.44.2.el7, kernel-abi-whitelists 3.10.0-862.44.2.el7, +1 morefixed: vendor fix RHSA-2019:3967
-
Red Hat Enterprise Linux ComputeNode Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-957.5.1.el7fixed: vendor fix RHSA-2019:0163
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.4) kernel-debuginfo-common-x86_64 3.10.0-693.47.2.el7fixed: vendor fix RHSA-2019:1170
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) kernel-debuginfo-common-x86_64 3.10.0-862.44.2.el7fixed: vendor fix RHSA-2019:3967
-
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) perf 4.14.0-115.17.1.el7a, kernel 4.14.0-115.17.1.el7a, kernel-alt 4.14.0-115.17.1.el7a, python-perf 4.14.0-115.17.1.el7a, kernel-tools 4.14.0-115.17.1.el7a, kernel-tools-libs 4.14.0-115.17.1.el7a, +3 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) kernel-debuginfo-common-ppc64le 4.14.0-115.17.1.el7afixed: vendor fix RHSA-2020:0174
-
Red Hat Enterprise Linux for Real Time for NFV (v. 7) kernel-rt 3.10.0-957.5.1.rt56.916.el7, kernel-rt-kvm 3.10.0-957.5.1.rt56.916.el7, kernel-rt-trace 3.10.0-957.5.1.rt56.916.el7, kernel-rt-debug-kvm 3.10.0-957.5.1.rt56.916.el7, kernel-rt-trace-kvm 3.10.0-957.5.1.rt56.916.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-957.5.1.rt56.916.el7 Red Hat Enterprise Linux Realtime (v. 7) kernel-rt 3.10.0-957.5.1.rt56.916.el7, kernel-rt-trace 3.10.0-957.5.1.rt56.916.el7fixed: vendor fix RHSA-2019:0188
show 12 moreshow fewer
-
Red Hat Enterprise Linux Server (v. 7) perf 3.10.0-957.5.1.el7, kernel 3.10.0-957.5.1.el7, bpftool 3.10.0-957.5.1.el7, python-perf 3.10.0-957.5.1.el7, kernel-kdump 3.10.0-957.5.1.el7, kernel-tools 3.10.0-957.5.1.el7, +7 morefixed: vendor fix RHSA-2019:0163
-
Red Hat Enterprise Linux Server AUS (v. 7.3) perf 3.10.0-514.71.1.el7, kernel 3.10.0-514.71.1.el7, python-perf 3.10.0-514.71.1.el7, kernel-tools 3.10.0-514.71.1.el7, kernel-tools-libs 3.10.0-514.71.1.el7, kernel-abi-whitelists 3.10.0-514.71.1.el7, +1 more Red Hat Enterprise Linux Server E4S (v. 7.3) perf 3.10.0-514.71.1.el7, kernel 3.10.0-514.71.1.el7, python-perf 3.10.0-514.71.1.el7, kernel-tools 3.10.0-514.71.1.el7, kernel-tools-libs 3.10.0-514.71.1.el7, kernel-bootwrapper 3.10.0-514.71.1.el7, +3 morefixed: vendor fix RHSA-2019:4159
-
Red Hat Enterprise Linux Server EUS (v. 7.4) perf 3.10.0-693.47.2.el7, kernel 3.10.0-693.47.2.el7, python-perf 3.10.0-693.47.2.el7, kernel-kdump 3.10.0-693.47.2.el7, kernel-tools 3.10.0-693.47.2.el7, kernel-tools-libs 3.10.0-693.47.2.el7, +6 morefixed: vendor fix RHSA-2019:1170
-
Red Hat Enterprise Linux Server EUS (v. 7.5) perf 3.10.0-862.44.2.el7, kernel 3.10.0-862.44.2.el7, python-perf 3.10.0-862.44.2.el7, kernel-kdump 3.10.0-862.44.2.el7, kernel-tools 3.10.0-862.44.2.el7, kernel-tools-libs 3.10.0-862.44.2.el7, +6 morefixed: vendor fix RHSA-2019:3967
-
Red Hat Enterprise Linux Server Optional (v. 7) kernel-debuginfo-common-ppc64 3.10.0-957.5.1.el7, kernel-debuginfo-common-x86_64 3.10.0-957.5.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-957.5.1.el7fixed: vendor fix RHSA-2019:0163
-
Red Hat Enterprise Linux Server Optional AUS (v. 7.3) kernel-debuginfo-common-x86_64 3.10.0-514.71.1.el7 Red Hat Enterprise Linux Server Optional E4S (v. 7.3) kernel-debuginfo-common-x86_64 3.10.0-514.71.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-514.71.1.el7fixed: vendor fix RHSA-2019:4159
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.4) kernel-debuginfo-common-ppc64 3.10.0-693.47.2.el7, kernel-debuginfo-common-x86_64 3.10.0-693.47.2.el7, kernel-debuginfo-common-ppc64le 3.10.0-693.47.2.el7fixed: vendor fix RHSA-2019:1170
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.5) kernel-debuginfo-common-ppc64 3.10.0-862.44.2.el7, kernel-debuginfo-common-x86_64 3.10.0-862.44.2.el7, kernel-debuginfo-common-ppc64le 3.10.0-862.44.2.el7fixed: vendor fix RHSA-2019:3967
-
Red Hat Enterprise Linux Server Optional TUS (v. 7.3) kernel-debuginfo-common-x86_64 3.10.0-514.71.1.el7 Red Hat Enterprise Linux Server TUS (v. 7.3) perf 3.10.0-514.71.1.el7, kernel 3.10.0-514.71.1.el7, python-perf 3.10.0-514.71.1.el7, kernel-tools 3.10.0-514.71.1.el7, kernel-tools-libs 3.10.0-514.71.1.el7, kernel-abi-whitelists 3.10.0-514.71.1.el7, +1 morefixed: vendor fix RHSA-2019:4159
-
Red Hat Enterprise Linux Workstation (v. 7) perf 3.10.0-957.5.1.el7, kernel 3.10.0-957.5.1.el7, bpftool 3.10.0-957.5.1.el7, python-perf 3.10.0-957.5.1.el7, kernel-tools 3.10.0-957.5.1.el7, kernel-tools-libs 3.10.0-957.5.1.el7, +2 more Red Hat Enterprise Linux Workstation Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-957.5.1.el7fixed: vendor fix RHSA-2019:0163
-
Red Hat MRG Realtime for RHEL 6 Server v.2 kernel-rt 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-trace 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-vanilla 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-firmware 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-debuginfo-common-x86_64 3.10.0-693.47.2.rt56.641.el6rtfixed: vendor fix RHSA-2019:1190
-
Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.61% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- blogs.securiteam.com https://blogs.securiteam.com/index.php/archives/3731 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
- Technology feeds
References
-
blogs.securiteam.com
/index.php/archives/3731
exploit, patch, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:0188
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:0163
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHBA-2019:0327
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:1170
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:1190
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:3967
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:4159
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2020:0174
vendor-advisory, third-party-advisory
Sources
- CVE List CVE-2018-18559
- NVD CVE-2018-18559
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.