{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2024-50195",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2024-50195",
    "idYear": 2024,
    "status": "PUBLISHED",
    "publishedAt": "2024-11-08T05:54:10.183Z",
    "updatedAt": "2026-08-05T11:42:26.108Z",
    "importedAt": "2026-10-24T01:57:20.494Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "posix-clock: Fix missing timespec64 check in pc_clock_settime()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nposix-clock: Fix missing timespec64 check in pc_clock_settime()\n\nAs Andrew pointed out, it will make sense that the PTP core\nchecked timespec64 struct's tv_sec and tv_nsec range before calling\nptp->info->settime64().\n\nAs the man manual of clock_settime() said, if tp.tv_sec is negative or\ntp.tv_nsec is outside the range [0..999,999,999], it should return EINVAL,\nwhich include dynamic clocks which handles PTP clock, and the condition is\nconsistent with timespec64_valid(). As Thomas suggested, timespec64_valid()\nonly check the timespec is valid, but not ensure that the time is\nin a valid range, so check it ahead using timespec64_valid_strict()\nin pc_clock_settime() and return -EINVAL if not valid.\n\nThere are some drivers that use tp->tv_sec and tp->tv_nsec directly to\nwrite registers without validity checks and assume that the higher layer\nhas checked it, which is dangerous and will benefit from this, such as\nhclge_ptp_settime(), igb_ptp_settime_i210(), _rcar_gen4_ptp_settime(),\nand some drivers can remove the checks of itself.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "29f085345cde24566efb751f39e5d367c381c584"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e0c966bd3e31911b57ef76cec4c5796ebd88e512"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "673a1c5a2998acbd429d6286e6cad10f17f4f073"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c8789fbe2bbf75845e45302cba6ffa44e1884d01"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "27abbde44b6e71ee3891de13e1a228aa7ce95bfe"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a3f169e398215e71361774d13bf91a0101283ac2"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1ff7247101af723731ea42ed565d54fb8f341264"
            },
            {
              "version": "0606f422b453f76c31ab2b1bd52943ff06a2dcf2",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d8794ac20a299b647ba9958f6d657051fc51a540"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.39",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.39"
            },
            {
              "version": "4.19.323",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.285",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.228",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.169",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.114",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.58",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.11.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.11.*"
            },
            {
              "version": "6.12",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}