CVE-2018-18559: Race Condition

Published Oct 22, 2018
·
Updated

A use-after-free flaw can occur in the Linux kernel due to a race condition between packetdobind() and packetnotifier() functions called for an AFPACKET socket. An unprivileged local user could use this flaw to induce kernel memory corruption on the system, leading to an unresponsive system or to a crash. Due to the nature of the flaw, privilege escalation cannot be fully ruled out.

External Reference:

https://blogs.securiteam.com/index.php/archives/3731

A probable fix:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=15fe076edea787807a7cdc168df832544b58eba6

Other sources

In the Linux kernel through 4.19, a use-after-free can occur due to a race condition between fanoutadd from setsockopt and bind on an AFPACKET socket. This issue exists because of the 15fe076edea787807a7cdc168df832544b58eba6 incomplete fix for a race condition. The code mishandles a certain multithreaded case involving a packetdobind unregister action followed by a packetnotifier register action. Later, packetrelease operates on only one of the two applicable linked lists. The attacker can achieve Program Counter control.

MITRE

Affected Software

16 affected components
Linux Linux kernel>=3.2.95<3.2.100
Linux Linux kernel>=3.14.58<3.15
Linux Linux kernel>=3.18.25<3.18.88
Linux Linux kernel>=4.1.14<4.1.49
Linux Linux kernel>=4.2.7<4.3
Linux Linux kernel>=4.3.1<4.4.106
Linux Linux kernel>=4.5<4.9.70
Linux Linux kernel>=4.10<4.14.7
redhat OpenShift Container Platform=3.11
redhat Virtualization Host=4.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0

Event History

Oct 22, 2018
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Oct 23, 2018
Data Sourced
via Red Hat·05:44 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-18559?

CVE-2018-18559 is a vulnerability in the Linux kernel that can lead to a use-after-free due to a race condition.

2

What is the severity of CVE-2018-18559?

The severity of CVE-2018-18559 is high with a CVSS score of 8.1.

3

How does CVE-2018-18559 affect Linux?

CVE-2018-18559 affects various versions of the Linux kernel.

4

What is the fix for CVE-2018-18559?

The fix for CVE-2018-18559 can be found in the Linux kernel's commit 15fe076edea787807a7cdc168df832544b58eba6.

5

Are there any references available for CVE-2018-18559?

Yes, you can find references for CVE-2018-18559 in the SecuriTeam blog, the Linux kernel's commit, and the Red Hat bugzilla.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203