{"id":"CVE-2025-38183","aliases":["CVE-2025-38183"],"related":[],"kind":"vulnerability","state":"published","title":"net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: lan743x: corrección de una posible escritura fuera de los límites en lan743x_ptp_io_event_clock_get(). Antes de llamar a lan743x_ptp_io_event_clock_get(), el valor del canal se compara con el valor máximo de PCI11X1X_PTP_IO_MAX_CHANNELS(8). Esto parece correcto y se ajusta a las especificaciones del registro de estado de interrupción PTP (PTP_INT_STS). Sin embargo, lan743x_ptp_io_event_clock_get() escribe en ptp-&gt;extts[] solo con elementos LAN743X_PTP_N_EXTTS(4), usando el canal como índice: lan743x_ptp_io_event_clock_get(..., u8 channel,...) { ... /* Actualizar marca de tiempo local */ extts = &amp;ptp-&gt;extts[channel]; extts-&gt;ts.tv_sec = sec; ... } Para evitar una escritura fuera de los límites y utilizar todas las entradas GPIO compatibles, configure LAN743X_PTP_N_EXTTS en 8. Detectado usando la herramienta de análisis estático - Svace.","source":"nvd"}],"published":"2025-07-04T13:37:10.253Z","modified":"2026-06-17T09:16:20.467Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"60942c397af6094c04406b77982314dfe69ef3c4","fixed":"e8d48201a132f4aab31351c19a802c5a5ae820fa","status":"affected"},{"type":"git","introduced":"60942c397af6094c04406b77982314dfe69ef3c4","fixed":"66bba1fd5bad548c03f7e42669a59f3f4d8211cc","status":"affected"},{"type":"git","introduced":"60942c397af6094c04406b77982314dfe69ef3c4","fixed":"41017bd66c533f7af912c58273c7dfd5de0065d4","status":"affected"},{"type":"git","introduced":"60942c397af6094c04406b77982314dfe69ef3c4","fixed":"4da0d23516857230b8e9b3022e25422ee2e2ba80","status":"affected"},{"type":"git","introduced":"60942c397af6094c04406b77982314dfe69ef3c4","fixed":"e353b0854d3a1a31cb061df8d022fbfea53a0f24","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.95","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.35","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.4","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.18","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.95"},{"status":"affected","introduced":"6.7","fixed":"6.12.35"},{"status":"affected","introduced":"6.13","fixed":"6.15.4"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e8d48201a132f4aab31351c19a802c5a5ae820fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66bba1fd5bad548c03f7e42669a59f3f4d8211cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41017bd66c533f7af912c58273c7dfd5de0065d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4da0d23516857230b8e9b3022e25422ee2e2ba80","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e353b0854d3a1a31cb061df8d022fbfea53a0f24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38183","url":"https://www.cve.org/CVERecord?id=CVE-2025-38183","licence":"CVE Terms of Use","modified":"2026-05-11T21:22:51.198Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38183","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38183","licence":"Public domain","modified":"2026-06-17T09:16:20.467Z"}],"updatedAt":"2026-11-25T22:59:00.627Z","epss":{"score":0.00306,"percentile":0.15932,"date":"2026-11-30T12:00:22.000Z"}}