{"id":"CVE-2025-38183","summary":"net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()","details":"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 = &ptp-\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.","modified":"2026-04-16T04:39:04.193962526Z","published":"2025-07-04T13:37:10.253Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38183.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/41017bd66c533f7af912c58273c7dfd5de0065d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4da0d23516857230b8e9b3022e25422ee2e2ba80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66bba1fd5bad548c03f7e42669a59f3f4d8211cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e353b0854d3a1a31cb061df8d022fbfea53a0f24"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8d48201a132f4aab31351c19a802c5a5ae820fa"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38183.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38183"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"60942c397af6094c04406b77982314dfe69ef3c4"},{"fixed":"e8d48201a132f4aab31351c19a802c5a5ae820fa"},{"fixed":"66bba1fd5bad548c03f7e42669a59f3f4d8211cc"},{"fixed":"41017bd66c533f7af912c58273c7dfd5de0065d4"},{"fixed":"4da0d23516857230b8e9b3022e25422ee2e2ba80"},{"fixed":"e353b0854d3a1a31cb061df8d022fbfea53a0f24"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38183.json"}}],"schema_version":"1.7.5"}