{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38183","id":"CVE-2025-38183","title":"net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()","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\nHowe","descriptionLong":"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->extts[] 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 = &ptp->extts[channel];\n        extts->ts.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.","published":"2025-07-04T13:37:10.253Z","updated":"2026-10-28T02:30:40.457395715Z","reserved":"2025-04-16T04:51:23.992Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60942c397af6094c04406b77982314dfe69ef3c4","lessThan":"e8d48201a132f4aab31351c19a802c5a5ae820fa","status":"affected","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","lessThan":"66bba1fd5bad548c03f7e42669a59f3f4d8211cc","status":"affected","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","lessThan":"41017bd66c533f7af912c58273c7dfd5de0065d4","status":"affected","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","lessThan":"4da0d23516857230b8e9b3022e25422ee2e2ba80","status":"affected","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","lessThan":"e353b0854d3a1a31cb061df8d022fbfea53a0f24","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.95","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.35","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.4","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e8d48201a132f4aab31351c19a802c5a5ae820fa","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/66bba1fd5bad548c03f7e42669a59f3f4d8211cc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/41017bd66c533f7af912c58273c7dfd5de0065d4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4da0d23516857230b8e9b3022e25422ee2e2ba80","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e353b0854d3a1a31cb061df8d022fbfea53a0f24","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38183.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38183","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00192,"epssPercentile":0.0892,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38183","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38183","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38183","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38183","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}