Race Condition Affecting kernel-livepatch-4_12_14-23-default package, versions <9-25.2


Severity

Recommended
high

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
6.53% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES150-KERNELLIVEPATCH4121423DEFAULT-2755342
  • published14 Apr 2022
  • disclosed26 Mar 2019

Introduced: 26 Mar 2019

CVE-2018-12232  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade SLES:15.0 kernel-livepatch-4_12_14-23-default to version 9-25.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-livepatch-4_12_14-23-default package and not the kernel-livepatch-4_12_14-23-default package as distributed by SLES. See How to fix? for SLES:15.0 relevant fixed versions and status.

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.