{
  "id": "CVE-2025-38183",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38183",
  "published_at": "2025-07-04T13:37:10.253Z",
  "title": "net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()\n\nBefore calling lan743x_ptp_io_event_clock_get(), the 'channel' value\nis checked against the maximum value of PCI11X1X_PTP_IO_MAX_CHANNELS(8).\nThis seems correct and aligns with the PTP interrupt status register\n(PTP_INT_STS) specifications.\n\nHowever, lan743x_ptp_io_event_clock_get() writes to ptp-\u003eextts[] with\nonly LAN743X_PTP_N_EXTTS(4) elements, using channel as an index:\n\n    lan743x_ptp_io_event_clock_get(..., u8 channel,...)\n    {\n        ...\n        /* Update Local timestamp */\n        extts = \u0026ptp-\u003eextts[channel];\n        extts-\u003ets.tv_sec = sec;\n        ...\n    }\n\nTo avoid an out-of-bounds write and utilize all the supported GPIO\ninputs, set LAN743X_PTP_N_EXTTS to 8.\n\nDetected using the static analysis tool - Svace.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 60942c397af6094c04406b77982314dfe69ef3c4, \u003c e8d48201a132f4aab31351c19a802c5a5ae820fa",
          "\u003e= 60942c397af6094c04406b77982314dfe69ef3c4, \u003c 66bba1fd5bad548c03f7e42669a59f3f4d8211cc",
          "\u003e= 60942c397af6094c04406b77982314dfe69ef3c4, \u003c 41017bd66c533f7af912c58273c7dfd5de0065d4",
          "\u003e= 60942c397af6094c04406b77982314dfe69ef3c4, \u003c 4da0d23516857230b8e9b3022e25422ee2e2ba80",
          "\u003e= 60942c397af6094c04406b77982314dfe69ef3c4, \u003c e353b0854d3a1a31cb061df8d022fbfea53a0f24"
        ],
        "fixed_in": [
          "e8d48201a132f4aab31351c19a802c5a5ae820fa",
          "66bba1fd5bad548c03f7e42669a59f3f4d8211cc",
          "41017bd66c533f7af912c58273c7dfd5de0065d4",
          "4da0d23516857230b8e9b3022e25422ee2e2ba80",
          "e353b0854d3a1a31cb061df8d022fbfea53a0f24"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.18"
        ],
        "fixed_in": [
          "0",
          "6.1.142",
          "6.6.95",
          "6.12.35",
          "6.15.4",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e8d48201a132f4aab31351c19a802c5a5ae820fa or 66bba1fd5bad548c03f7e42669a59f3f4d8211cc or 41017bd66c533f7af912c58273c7dfd5de0065d4 or 4da0d23516857230b8e9b3022e25422ee2e2ba80 or e353b0854d3a1a31cb061df8d022fbfea53a0f24 or later.",
      "Upgrade Linux to 0 or 6.1.142 or 6.6.95 or 6.12.35 or 6.15.4 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
