CVE-2018-12232: Race Condition

Published Jun 12, 2018
·
Updated

A NULL pointer dereference issue was found in the Linux kernel. If the close() and fchownat() system calls share a socket file descriptor as an argument, then the two calls can race and trigger a NULL pointer dereference leading to a system crash and a denial of service.

References:

https://lkml.org/lkml/2018/6/5/14

https://marc.info/?t=152817459500001&r=1&w=2

https://patchwork.ozlabs.org/patch/926519/

An upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14

Other sources

In net/socket.c in the Linux kernel through 4.17.1, there is a race condition between fchownat and close in cases where they target the same socket file descriptor, related to the sockclose and sockfssetattr functions. fchownat does not increment the file descriptor reference count, which allows close to set the socket to NULL during fchownat's execution, leading to a NULL pointer dereference and system crash.

— Launchpad

Affected Software

2 affected componentsFixes available
Linux Linux kernel<=4.17.1
debian/linux
6.1.176-16.1.187-16.12.107-16.12.111-17.2.9-17.2.10-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.187-1Fixed in 6.12.107-1Fixed in 6.12.111-1Fixed in 7.2.9-1Fixed in 7.2.10-1

Event History

Jun 12, 2018
Data Sourced
via Red Hat·08:38 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·12:00 PM
Data Sourced
via MITRE·12:00 PM
Description
Data Sourced
via NVD·12:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:49 PM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:29 AM
RemedyDescriptionSeverityAffected Software
Oct 13, 2026
Data Sourced
via Debian·01:11 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-12232?

CVE-2018-12232 has a severity value of medium.

2

How does CVE-2018-12232 affect the Linux kernel?

CVE-2018-12232 is a race condition vulnerability in the Linux kernel.

3

Which Linux kernel versions are affected by CVE-2018-12232?

Linux kernel versions up to 4.17.1 are affected by CVE-2018-12232.

4

What is the recommended remedy for CVE-2018-12232?

For Ubuntu, updating to version 4.18~ or later of the Linux kernel is recommended.

5

Where can I find more information about CVE-2018-12232?

More information about CVE-2018-12232 can be found in the provided references.

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