Back
CVE-2018-12232
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…
Medium5.9EPSS 6.3%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
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 sock_close and sockfs_setattr 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 6.3% · top 6.4% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Weakness
Affected products
n/a
- affected n/a
References (9)
- USN-3752-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-3752-3 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14 (opens in a new tab)x_refsource_MISCx_transferred
- https://patchwork.ozlabs.org/patch/926519/ (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2018:2948 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://lkml.org/lkml/2018/6/5/14 (opens in a new tab)x_refsource_MISCx_transferred
- 104453 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- USN-3752-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .