CVE Catalog

CVE-2024-50210

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile - higher than 6% of all known CVEs

Summary

In the Linux kernel, an unbalanced locking issue exists in pc_clock_settime() in the posix-clock module. The error path fails to release the clk->rwsem read lock and does not fput the clockid's fd, resulting in unbalanced locking. The fix checks timespec64_valid_strict() before calling get_clock_desc().

Risk Assessment

Unbalanced locking in the kernel can lead to deadlocks or system instability, affecting service availability. Systems using POSIX clocks in userspace are affected.

Recommendation

Update the Linux kernel to a version containing the fix for CVE-2024-50210. Verify that your distribution has provided the corresponding kernel package.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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]

Vulnerability data from NVD (NIST) · CISA KEV · EPSS