CVE-2018-18559 PUBLISHED

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.

EPSS 0.84% · 74.5th percentile

Risk Scores

EPSS Score
0.84%
74.5th percentile

Affected Products

VendorProductVersions
Ubuntu:14.04:LTSlinux-lts-xenial4.4.0-98.121~14.04.1, 4.4.0-101.124~14.04.1, 4.4.0-103.126~14.04.1
Ubuntu:16.04:LTSlinux-raspi24.2.0-1014.21, 4.4.0-1040.47, 4.4.0-1038.45
Ubuntu:22.04:LTSlinux-riscv5.15.0-1023.27, 5.15.0-1020.23, 5.15.0-1006.6
Ubuntu:Pro:FIPS:16.04:LTSlinux-fips4.4.0-1006.6, 4.4.0-1005.5, 4.4.0-1003.3
Ubuntu:16.04:LTSlinux4.4.0-101.124, 4.4.0-103.126, 4.4.0-104.127
Ubuntu:20.04:LTSlinux-gke5.4.0-1033.35, 5.4.0-1036.38, 5.4.0-1037.39
Ubuntu:22.04:LTSlinux-intel-iot-realtime0, 5.15.0-1073.75
Ubuntu:20.04:LTSlinux-riscv5.4.0-24.28, 0, 5.4.0-31.35
Ubuntu:16.04:LTSlinux-snapdragon4.4.0-1073.78, 4.4.0-1087.92, 4.4.0-1084.89
Ubuntu:16.04:LTSlinux-gcp0, 4.13.0-1011.15, 4.13.0-1019.23
Ubuntu:16.04:LTSlinux-aws4.4.0-1032.41, 4.4.0-1039.48, 4.4.0-1041.50
Ubuntu:14.04:LTSlinux-aws4.4.0-1002.2, 4.4.0-1003.3, 4.4.0-1005.5
Ubuntu:20.04:LTSlinux-azure-fde5.4.0-1080.83+cvm1.1, 0, 5.4.0-1063.66+cvm2.2
Ubuntu:22.04:LTSlinux-realtime5.15.0-1032.35, 0
Ubuntu:24.04:LTSlinux-raspi-realtime0, 6.8.0-2019.20
Ubuntu:20.04:LTSlinux-raspi25.3.0-1015.17, 5.3.0-1014.16, 0
Ubuntu:16.04:LTSlinux-azure4.13.0-1005.7, 4.13.0-1018.21, 4.13.0-1016.19
Ubuntu:16.04:LTSlinux-kvm4.4.0-1017.22, 4.4.0-1015.20, 4.4.0-1019.24
Ubuntu:16.04:LTSlinux-hwe4.8.0-54.57~16.04.1, 4.8.0-53.56~16.04.1, 4.8.0-52.55~16.04.1

Timeline

References

Open in Interactive Console →