posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()

Summary

CVECVE-2024-50210
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-11-08 06:15:17 UTC
Updated2026-05-12 13:16:19 UTC
DescriptionIn 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]

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.000160000 probability, percentile 0.038090000 (date 2026-05-12)

Problem Types: CWE-667 | CWE-667 CWE-667 Improper Locking


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
3.1ADPDECLARED5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All
Operating System Linux Linux Kernel 5.15.169 All All All
Operating System Linux Linux Kernel 6.1.114 All All All
Operating System Linux Linux Kernel 6.11.5 All All All
Operating System Linux Linux Kernel 6.12 rc4 All All
Operating System Linux Linux Kernel 6.6.58 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 29f085345cde24566efb751f39e5d367c381c584 d005400262ddaf1ca1666bbcd1acf42fe81d57ce git Not specified
CNA Linux Linux affected e0c966bd3e31911b57ef76cec4c5796ebd88e512 a8219446b95a859488feaade674d13f9efacfa32 git Not specified
CNA Linux Linux affected 673a1c5a2998acbd429d6286e6cad10f17f4f073 c7fcfdba35abc9f39b83080c2bce398dad13a943 git Not specified
CNA Linux Linux affected c8789fbe2bbf75845e45302cba6ffa44e1884d01 e56e0ec1b79f5a6272c6e78b36e9d593aa0449af git Not specified
CNA Linux Linux affected 27abbde44b6e71ee3891de13e1a228aa7ce95bfe 5f063bbf1ee6b01611c016b54e050a41506eb794 git Not specified
CNA Linux Linux affected a3f169e398215e71361774d13bf91a0101283ac2 1ba33b327c3f88a7baee598979d73ab5b44d41cc git Not specified
CNA Linux Linux affected 1ff7247101af723731ea42ed565d54fb8f341264 b27330128eca25179637c1816d5a72d6cc408c66 git Not specified
CNA Linux Linux affected d8794ac20a299b647ba9958f6d657051fc51a540 6e62807c7fbb3c758d233018caf94dfea9c65dbd git Not specified
CNA Linux Linux affected 5.10.228 5.10.229 semver Not specified
CNA Linux Linux affected 5.15.169 5.15.170 semver Not specified
CNA Linux Linux affected 6.1.114 6.1.115 semver Not specified
CNA Linux Linux affected 6.6.58 6.6.59 semver Not specified
CNA Linux Linux affected 6.11.5 6.11.6 semver Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified

References

ReferenceSourceLinkTags
lists.debian.org/debian-lts-announce/2025/03/msg00002.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2025/01/msg00001.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report