CVE-2018-18559
Reported by mitre · Published October 22, 2018
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-lts-xenial | Ubuntu:14.04:LTS | 4.4.0-119.143~14.04.1 |
| linux-raspi2 | Ubuntu:16.04:LTS | 4.4.0-1086.94 |
| linux-fips | Ubuntu:Pro:FIPS:16.04:LTS | 4.4.0-1008.10 |
| linux | Ubuntu:16.04:LTS | 4.4.0-119.143 |
| linux_kernel | linux | 4.14.7, 4.9.70, 4.4.106, 4.3, 4.1.49, 3.18.88, 3.15, 3.2.100 |
| linux-snapdragon | Ubuntu:16.04:LTS | 4.4.0-1088.93 |
| linux-gcp | Ubuntu:16.04:LTS | 4.15.0-1014.14~16.04.1 |
| linux-aws | Ubuntu:16.04:LTS | 4.4.0-1054.63 |
| linux-aws | Ubuntu:14.04:LTS | 4.4.0-1016.16 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Oct 22, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Oct 8, 2025 PoC Published
- Apr 7, 2026 Distribution Patch (21 in total, the first dated here)
- Apr 7, 2026 Security Advisory (23 in total, the first dated here)
- Sep 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-18559
vulnetix vdb fixes CVE-2018-18559
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-18559/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2019:0188 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:0163 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- RHBA-2019:0327 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:1170 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:1190 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3967 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:4159 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0174 vendor-advisoryx_refsource_REDHAT