CVE-2024-50210 (GCVE-0-2024-50210)
Vulnerability from cvelistv5
Published
2024-11-08 06:08
Modified
2025-11-03 22:27
Summary
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. [pabeni@redhat.com: fixed commit message typo]
Impacted products
Vendor Product Version
Linux Linux Version: 29f085345cde24566efb751f39e5d367c381c584
Version: e0c966bd3e31911b57ef76cec4c5796ebd88e512
Version: 673a1c5a2998acbd429d6286e6cad10f17f4f073
Version: c8789fbe2bbf75845e45302cba6ffa44e1884d01
Version: 27abbde44b6e71ee3891de13e1a228aa7ce95bfe
Version: a3f169e398215e71361774d13bf91a0101283ac2
Version: 1ff7247101af723731ea42ed565d54fb8f341264
Version: d8794ac20a299b647ba9958f6d657051fc51a540
Create a notification for this product.
   Linux Linux Version: 5.10.228   
Version: 5.15.169   
Version: 6.1.114   
Version: 6.6.58   
Version: 6.11.5   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-50210",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T20:17:22.253155Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-667",
                "description": "CWE-667 Improper Locking",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T20:27:06.056Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T22:27:05.200Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/time/posix-clock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d005400262ddaf1ca1666bbcd1acf42fe81d57ce",
              "status": "affected",
              "version": "29f085345cde24566efb751f39e5d367c381c584",
              "versionType": "git"
            },
            {
              "lessThan": "a8219446b95a859488feaade674d13f9efacfa32",
              "status": "affected",
              "version": "e0c966bd3e31911b57ef76cec4c5796ebd88e512",
              "versionType": "git"
            },
            {
              "lessThan": "c7fcfdba35abc9f39b83080c2bce398dad13a943",
              "status": "affected",
              "version": "673a1c5a2998acbd429d6286e6cad10f17f4f073",
              "versionType": "git"
            },
            {
              "lessThan": "e56e0ec1b79f5a6272c6e78b36e9d593aa0449af",
              "status": "affected",
              "version": "c8789fbe2bbf75845e45302cba6ffa44e1884d01",
              "versionType": "git"
            },
            {
              "lessThan": "5f063bbf1ee6b01611c016b54e050a41506eb794",
              "status": "affected",
              "version": "27abbde44b6e71ee3891de13e1a228aa7ce95bfe",
              "versionType": "git"
            },
            {
              "lessThan": "1ba33b327c3f88a7baee598979d73ab5b44d41cc",
              "status": "affected",
              "version": "a3f169e398215e71361774d13bf91a0101283ac2",
              "versionType": "git"
            },
            {
              "lessThan": "b27330128eca25179637c1816d5a72d6cc408c66",
              "status": "affected",
              "version": "1ff7247101af723731ea42ed565d54fb8f341264",
              "versionType": "git"
            },
            {
              "lessThan": "6e62807c7fbb3c758d233018caf94dfea9c65dbd",
              "status": "affected",
              "version": "d8794ac20a299b647ba9958f6d657051fc51a540",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/time/posix-clock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5.10.229",
              "status": "affected",
              "version": "5.10.228",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.170",
              "status": "affected",
              "version": "5.15.169",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.115",
              "status": "affected",
              "version": "6.1.114",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.59",
              "status": "affected",
              "version": "6.6.58",
              "versionType": "semver"
            },
            {
              "lessThan": "6.11.6",
              "status": "affected",
              "version": "6.11.5",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.229",
                  "versionStartIncluding": "5.10.228",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.170",
                  "versionStartIncluding": "5.15.169",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.115",
                  "versionStartIncluding": "6.1.114",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.59",
                  "versionStartIncluding": "6.6.58",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.6",
                  "versionStartIncluding": "6.11.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nposix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()\n\nIf get_clock_desc() succeeds, it calls fget() for the clockid\u0027s fd,\nand get the clk-\u003erwsem read lock, so the error path should release\nthe lock to make the lock balance and fput the clockid\u0027s fd to make\nthe refcount balance and release the fd related resource.\n\nHowever the below commit left the error path locked behind resulting in\nunbalanced locking. Check timespec64_valid_strict() before\nget_clock_desc() to fix it, because the \"ts\" is not changed\nafter that.\n\n[pabeni@redhat.com: fixed commit message typo]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T09:48:49.228Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce"
        },
        {
          "url": "https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32"
        },
        {
          "url": "https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943"
        },
        {
          "url": "https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af"
        },
        {
          "url": "https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc"
        },
        {
          "url": "https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66"
        },
        {
          "url": "https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd"
        }
      ],
      "title": "posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-50210",
    "datePublished": "2024-11-08T06:08:00.319Z",
    "dateReserved": "2024-10-21T19:36:19.970Z",
    "dateUpdated": "2025-11-03T22:27:05.200Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-50210\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-10-01T20:17:22.253155Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-667\", \"description\": \"CWE-667 Improper Locking\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-10-01T15:22:30.830Z\"}}], \"cna\": {\"title\": \"posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"29f085345cde24566efb751f39e5d367c381c584\", \"lessThan\": \"d005400262ddaf1ca1666bbcd1acf42fe81d57ce\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"e0c966bd3e31911b57ef76cec4c5796ebd88e512\", \"lessThan\": \"a8219446b95a859488feaade674d13f9efacfa32\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"673a1c5a2998acbd429d6286e6cad10f17f4f073\", \"lessThan\": \"c7fcfdba35abc9f39b83080c2bce398dad13a943\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c8789fbe2bbf75845e45302cba6ffa44e1884d01\", \"lessThan\": \"e56e0ec1b79f5a6272c6e78b36e9d593aa0449af\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"27abbde44b6e71ee3891de13e1a228aa7ce95bfe\", \"lessThan\": \"5f063bbf1ee6b01611c016b54e050a41506eb794\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a3f169e398215e71361774d13bf91a0101283ac2\", \"lessThan\": \"1ba33b327c3f88a7baee598979d73ab5b44d41cc\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1ff7247101af723731ea42ed565d54fb8f341264\", \"lessThan\": \"b27330128eca25179637c1816d5a72d6cc408c66\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d8794ac20a299b647ba9958f6d657051fc51a540\", \"lessThan\": \"6e62807c7fbb3c758d233018caf94dfea9c65dbd\", \"versionType\": \"git\"}], \"programFiles\": [\"kernel/time/posix-clock.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.10.228\", \"lessThan\": \"5.10.229\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.15.169\", \"lessThan\": \"5.15.170\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"6.1.114\", \"lessThan\": \"6.1.115\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"6.6.58\", \"lessThan\": \"6.6.59\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"6.11.5\", \"lessThan\": \"6.11.6\", \"versionType\": \"semver\"}], \"programFiles\": [\"kernel/time/posix-clock.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce\"}, {\"url\": \"https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32\"}, {\"url\": \"https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943\"}, {\"url\": \"https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af\"}, {\"url\": \"https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794\"}, {\"url\": \"https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc\"}, {\"url\": \"https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66\"}, {\"url\": \"https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nposix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()\\n\\nIf get_clock_desc() succeeds, it calls fget() for the clockid\u0027s fd,\\nand get the clk-\u003erwsem read lock, so the error path should release\\nthe lock to make the lock balance and fput the clockid\u0027s fd to make\\nthe refcount balance and release the fd related resource.\\n\\nHowever the below commit left the error path locked behind resulting in\\nunbalanced locking. Check timespec64_valid_strict() before\\nget_clock_desc() to fix it, because the \\\"ts\\\" is not changed\\nafter that.\\n\\n[pabeni@redhat.com: fixed commit message typo]\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.229\", \"versionStartIncluding\": \"5.10.228\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.170\", \"versionStartIncluding\": \"5.15.169\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.115\", \"versionStartIncluding\": \"6.1.114\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.59\", \"versionStartIncluding\": \"6.6.58\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11.6\", \"versionStartIncluding\": \"6.11.5\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T09:48:49.228Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-50210\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-10-01T20:27:06.056Z\", \"dateReserved\": \"2024-10-21T19:36:19.970Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-11-08T06:08:00.319Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…