{"id":"CVE-2023-52505","state":"PUBLISHED","title":"phy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nphy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers\n\nThe protocol converter configuration registers PCC8, PCCC, PCCD\n(implemented by the driver), as well as others, control protocol\nconverters from multiple lanes (each represented as a different\nstruct phy). So, if there are simultaneous calls to phy_set_mode_ext()\nto lanes sharing the same PCC register (either for the \"old\" or for the\n\"new\" protocol), corruption of the values programmed to hardware is\npossible, because lynx_28g_rmw() has no locking.\n\nAdd a spinlock in the struct lynx_28g_priv shared by all lanes, and take\nthe global spinlock from the phy_ops :: set_mode() implementation. There\nare no other callers which modify PCC registers.","publishedAt":"2024-03-02T21:52:19.215Z","updatedAt":"2026-05-11T19:28:37.001Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"6f901f8448c6b25ed843796b114471d2a3fc5dfb","versionType":"git"},{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"c2d7c79898b427d263c64a4841987eec131f2d4e","versionType":"git"},{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"139ad1143151a07be93bf741d4ea7c89e59f89ce","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/freescale/phy-fsl-lynx-28g.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.59","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.8","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/freescale/phy-fsl-lynx-28g.c"]}],"references":["https://git.kernel.org/stable/c/6f901f8448c6b25ed843796b114471d2a3fc5dfb","https://git.kernel.org/stable/c/c2d7c79898b427d263c64a4841987eec131f2d4e","https://git.kernel.org/stable/c/139ad1143151a07be93bf741d4ea7c89e59f89ce"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52505.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52505","state":"PUBLISHED","datePublished":"2024-03-02T21:52:19.215Z","dateUpdated":"2026-05-11T19:28:37.001Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-20T12:30:33.314Z"},"containers":{"cna":{"title":"phy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nphy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers\n\nThe protocol converter configuration registers PCC8, PCCC, PCCD\n(implemented by the driver), as well as others, control protocol\nconverters from multiple lanes (each represented as a different\nstruct phy). So, if there are simultaneous calls to phy_set_mode_ext()\nto lanes sharing the same PCC register (either for the \"old\" or for the\n\"new\" protocol), corruption of the values programmed to hardware is\npossible, because lynx_28g_rmw() has no locking.\n\nAdd a spinlock in the struct lynx_28g_priv shared by all lanes, and take\nthe global spinlock from the phy_ops :: set_mode() implementation. There\nare no other callers which modify PCC registers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"6f901f8448c6b25ed843796b114471d2a3fc5dfb","versionType":"git"},{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"c2d7c79898b427d263c64a4841987eec131f2d4e","versionType":"git"},{"version":"8f73b37cf3fbda67ea1e579c3b5785da4e7aa2e3","status":"affected","lessThan":"139ad1143151a07be93bf741d4ea7c89e59f89ce","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/freescale/phy-fsl-lynx-28g.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.59","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.8","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/freescale/phy-fsl-lynx-28g.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6f901f8448c6b25ed843796b114471d2a3fc5dfb"},{"url":"https://git.kernel.org/stable/c/c2d7c79898b427d263c64a4841987eec131f2d4e"},{"url":"https://git.kernel.org/stable/c/139ad1143151a07be93bf741d4ea7c89e59f89ce"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:28:37.001Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.5.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52505","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-11T15:02:00.830027Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:23:17.026Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/6f901f8448c6b25ed843796b114471d2a3fc5dfb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c2d7c79898b427d263c64a4841987eec131f2d4e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/139ad1143151a07be93bf741d4ea7c89e59f89ce","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:03:20.376Z"}}]}}}