Skip to content
OpenAdvisories
Unscored CVE-2018-18559 EUVD-2018-10279GHSA-8w88-57v8-p48h

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 Oct 22, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.14.7-1 —
Debian 13 linux 4.14.7-1 —
Debian 12 linux 4.14.7-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +2 No fix yet —
Ubuntu 20.04 LTS linux-gke +3 No fix yet —
Ubuntu 16.04 LTS linux 4.4.0-119.143 —
Ubuntu 16.04 LTS linux-aws 4.4.0-1054.63 —
Ubuntu 16.04 LTS linux-azure 4.15.0-1013.13~16.04.2 —
Ubuntu 16.04 LTS linux-gcp 4.15.0-1014.14~16.04.1 —
Ubuntu 16.04 LTS linux-hwe 4.15.0-24.26~16.04.1 —
Ubuntu 16.04 LTS linux-kvm 4.4.0-1020.25 —
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1086.94 —
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1088.93 —
Ubuntu 14.04 LTS linux-aws 4.4.0-1016.16 —
Ubuntu 14.04 LTS linux-lts-xenial 4.4.0-119.143~14.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1008.10 —
ReleasePackageFixed inAdvisory
RHEL 7 kernel-alt 4.14.0-115.17.1.el7a RHSA-2020:0174
RHEL 7 kernel-rt +10 3.10.0-957.5.1.rt56.916.el7 RHSA-2019:0188
RHEL 7 perf +19 3.10.0-957.5.1.el7 RHSA-2020:0174, RHSA-2019:0163
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.5 EUS perf +18 3.10.0-862.44.2.el7 RHSA-2019:3967
RHEL 7.4 EUS perf +17 3.10.0-693.47.2.el7 RHSA-2019:1170
RHEL 7.3 TUS perf +12 3.10.0-514.71.1.el7 RHSA-2019:4159
RHEL 7.3 E4S perf +14 3.10.0-514.71.1.el7 RHSA-2019:4159
RHEL 7.3 AUS perf +12 3.10.0-514.71.1.el7 RHSA-2019:4159
Red Hat MRG 2 kernel-rt +10 1:3.10.0-693.47.2.rt56.641.el6rt RHSA-2019:1190

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kernel-uek +5 4.1.12-124.26.1.el7uek ELSA-2019-4575
Oracle Linux 7 perf +12 3.10.0-957.5.1.el7 ELSA-2019-0163

Advisories 9

References