cve-2024-50210
Vulnerability from cvelistv5
Published
2024-11-08 06:08
Modified
2024-12-19 09:35
Severity ?
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: 5.10.228   
Version: 5.15.169   
Version: 6.1.114   
Version: 6.6.58   
Version: 6.11.5   
Show details on NVD website


{
  "containers": {
    "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"
            }
          ]
        }
      ],
      "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": "2024-12-19T09:35:30.669Z",
        "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-5f407fcff5a0"
      }
    }
  },
  "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": "2024-12-19T09:35:30.669Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-50210\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-11-08T06:15:17.350\",\"lastModified\":\"2024-11-19T16:26:34.767\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"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]\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: posix-clock: posix-clock: Corregir bloqueo desequilibrado en pc_clock_settime() Si get_clock_desc() tiene \u00e9xito, llama a fget() para el fd del clockid y obtiene el bloqueo de lectura clk-\u0026gt;rwsem, por lo que la ruta de error deber\u00eda liberar el bloqueo para equilibrar el bloqueo y fput el fd del clockid para equilibrar el refcount y liberar el recurso relacionado con el fd. Sin embargo, la siguiente confirmaci\u00f3n dej\u00f3 la ruta de error bloqueada, lo que result\u00f3 en un bloqueo desequilibrado. Verifique timespec64_valid_strict() antes de get_clock_desc() para corregirlo, porque el \\\"ts\\\" no se cambia despu\u00e9s de eso. [pabeni@redhat.com: se corrigi\u00f3 un error tipogr\u00e1fico en el mensaje de confirmaci\u00f3n]\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-667\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.10.228\",\"versionEndExcluding\":\"5.11\",\"matchCriteriaId\":\"7CEF9F93-A67A-45C9-9C51-0024664ACC19\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.15.169:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"65E5B4C5-20C7-42FD-B670-6B09641CC073\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.1.114:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"CFC6719E-D39A-44B0-90DD-F606EE505404\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.6.58:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"38BA5D36-31FC-4EF3-9E92-9B67AB6F2D42\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.11.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"101C7DA2-28FF-4CC0-A476-2C8D49CD2AC5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"E0F717D8-3014-4F84-8086-0124B2111379\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1ba33b327c3f88a7baee598979d73ab5b44d41cc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5f063bbf1ee6b01611c016b54e050a41506eb794\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/6e62807c7fbb3c758d233018caf94dfea9c65dbd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a8219446b95a859488feaade674d13f9efacfa32\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b27330128eca25179637c1816d5a72d6cc408c66\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c7fcfdba35abc9f39b83080c2bce398dad13a943\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d005400262ddaf1ca1666bbcd1acf42fe81d57ce\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e56e0ec1b79f5a6272c6e78b36e9d593aa0449af\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


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.
  • 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.