{"id":"CVE-2025-38183","state":"PUBLISHED","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\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.","publishedAt":"2025-07-04T13:37:10.253Z","updatedAt":"2026-05-11T21:22:51.198Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"e8d48201a132f4aab31351c19a802c5a5ae820fa","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"66bba1fd5bad548c03f7e42669a59f3f4d8211cc","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"41017bd66c533f7af912c58273c7dfd5de0065d4","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"4da0d23516857230b8e9b3022e25422ee2e2ba80","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"e353b0854d3a1a31cb061df8d022fbfea53a0f24","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan743x_ptp.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.142","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.95","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan743x_ptp.h"]}],"references":["https://git.kernel.org/stable/c/e8d48201a132f4aab31351c19a802c5a5ae820fa","https://git.kernel.org/stable/c/66bba1fd5bad548c03f7e42669a59f3f4d8211cc","https://git.kernel.org/stable/c/41017bd66c533f7af912c58273c7dfd5de0065d4","https://git.kernel.org/stable/c/4da0d23516857230b8e9b3022e25422ee2e2ba80","https://git.kernel.org/stable/c/e353b0854d3a1a31cb061df8d022fbfea53a0f24","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38183.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38183","state":"PUBLISHED","datePublished":"2025-07-04T13:37:10.253Z","dateUpdated":"2026-05-11T21:22:51.198Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.992Z"},"containers":{"cna":{"title":"net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"e8d48201a132f4aab31351c19a802c5a5ae820fa","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"66bba1fd5bad548c03f7e42669a59f3f4d8211cc","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"41017bd66c533f7af912c58273c7dfd5de0065d4","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"4da0d23516857230b8e9b3022e25422ee2e2ba80","versionType":"git"},{"version":"60942c397af6094c04406b77982314dfe69ef3c4","status":"affected","lessThan":"e353b0854d3a1a31cb061df8d022fbfea53a0f24","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan743x_ptp.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.142","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.95","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan743x_ptp.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/e8d48201a132f4aab31351c19a802c5a5ae820fa"},{"url":"https://git.kernel.org/stable/c/66bba1fd5bad548c03f7e42669a59f3f4d8211cc"},{"url":"https://git.kernel.org/stable/c/41017bd66c533f7af912c58273c7dfd5de0065d4"},{"url":"https://git.kernel.org/stable/c/4da0d23516857230b8e9b3022e25422ee2e2ba80"},{"url":"https://git.kernel.org/stable/c/e353b0854d3a1a31cb061df8d022fbfea53a0f24"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:22:51.198Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.15.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:35:07.945Z"}}]}}}