---
title: "CVE-2018-18559"
canonical_url: "https://pkgseek.com/security/CVE-2018-18559"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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.

CVE-2018-18559 is rated HIGH (8.1), with 3 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (8.1)
- **Affected builds**: 3
- **Affected distros**: 2
- **Distros with fixed_in**: Debian

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | usbip | 2.0+6.12.117-1 | 4.14.7-1 |
| Ubuntu | focal | linux-riscv-headers-5.4.0-24 | 5.4.0-24.28 | — |
| Ubuntu | jammy | linux-riscv-headers-5.15.0-1007 | 5.15.0-1007.7 | — |
