Lucene search
K

CVE-2025-40057 ptp: Add a upper bound on max_vclocks

🗓️ 28 Oct 2025 11:48:30Reported by LinuxType 
cvelist
 cvelist
🔗 www.cve.org👁 4 Views

CVE-2025-40057: Kernel ptp adds upper bound on max_vclocks to prevent kcalloc overflow.

Related
Affected
Refs
[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/ptp/ptp_private.h",
      "drivers/ptp/ptp_sysfs.c"
    ],
    "versions": [
      {
        "version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
        "lessThan": "8dd446056336faa2283d62cefc2f576536845edc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
        "lessThan": "35ce5f163889dbce88eda1df661b357a09bbed87",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
        "lessThan": "e9f35294e18da82162004a2f35976e7031aaf7f9",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/ptp/ptp_private.h",
      "drivers/ptp/ptp_sysfs.c"
    ],
    "versions": [
      {
        "version": "5.14",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.14",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.12.53",
        "lessThanOrEqual": "6.12.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.17.3",
        "lessThanOrEqual": "6.17.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.18",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation