Race Condition Affecting kernel-debuginfo-common-x86_64 package, versions <0:4.14.51-66.38.amzn2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating

    Threat Intelligence

    EPSS
    0.59% (79th 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 ID SNYK-AMZN2-KERNELDEBUGINFOCOMMONX8664-1663010
  • published 27 Sep 2021
  • disclosed 12 Jun 2018

How to fix?

Upgrade Amazon-Linux:2 kernel-debuginfo-common-x86_64 to version 0:4.14.51-66.38.amzn2 or higher.
This issue was patched in ALAS2-2018-1044.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-debuginfo-common-x86_64 package and not the kernel-debuginfo-common-x86_64 package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 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.