5.5
MEDIUM
CVE-2024-50210
Linux Kernel posix-clock Unbalanced Locking Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime() If get_clock_desc() succeeds, it calls fget() for the clockid's fd, and get the clk->rwsem read lock, so the error path should release the lock to make the lock balance and fput the clockid's fd to make the refcount balance and release the fd related resource. However the below commit left the error path locked behind resulting in unbalanced locking. Check timespec64_valid_strict() before get_clock_desc() to fix it, because the "ts" is not changed after that. [[email protected]: fixed commit message typo]

INFO

Published Date :

Nov. 8, 2024, 6:15 a.m.

Last Modified :

Nov. 19, 2024, 4:26 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-50210 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-50210 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-50210 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Nov. 19, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc No Types Assigned https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc Patch
    Changed Reference Type https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794 No Types Assigned https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794 Patch
    Changed Reference Type https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd No Types Assigned https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd Patch
    Changed Reference Type https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32 No Types Assigned https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32 Patch
    Changed Reference Type https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66 No Types Assigned https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66 Patch
    Changed Reference Type https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943 No Types Assigned https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943 Patch
    Changed Reference Type https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce No Types Assigned https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce Patch
    Changed Reference Type https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af No Types Assigned https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af Patch
    Added CWE NIST CWE-667
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10.228 up to (excluding) 5.11 *cpe:2.3:o:linux:linux_kernel:5.15.169:*:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1.114:*:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.6.58:*:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11.5:*:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 08, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943 [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 08, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime() If get_clock_desc() succeeds, it calls fget() for the clockid's fd, and get the clk->rwsem read lock, so the error path should release the lock to make the lock balance and fput the clockid's fd to make the refcount balance and release the fd related resource. However the below commit left the error path locked behind resulting in unbalanced locking. Check timespec64_valid_strict() before get_clock_desc() to fix it, because the "ts" is not changed after that. [[email protected]: fixed commit message typo]
    Added Reference kernel.org https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-50210 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-50210 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability