{"id":"CVE-2025-40239","state":"PUBLISHED","title":"net: phy: micrel: always set shared->phydev for LAN8814","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: phy: micrel: always set shared->phydev for LAN8814\n\nCurrently, during the LAN8814 PTP probe shared->phydev is only set if PTP\nclock gets actually set, otherwise the function will return before setting\nit.\n\nThis is an issue as shared->phydev is unconditionally being used when IRQ\nis being handled, especially in lan8814_gpio_process_cap and since it was\nnot set it will cause a NULL pointer exception and crash the kernel.\n\nSo, simply always set shared->phydev to avoid the NULL pointer exception.","publishedAt":"2025-12-04T15:31:28.941Z","updatedAt":"2026-05-11T21:45:29.000Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"da1ef8e9eb5d4a12bec32d11636e521e7d529b9e","versionType":"git"},{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"b093b06826b836c2824858669db080c190c04715","versionType":"git"},{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"399d10934740ae8cdaa4e3245f7c5f6c332da844","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/phy/micrel.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.56","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.6","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/phy/micrel.c"]}],"references":["https://git.kernel.org/stable/c/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e","https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715","https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40239.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40239","state":"PUBLISHED","datePublished":"2025-12-04T15:31:28.941Z","dateUpdated":"2026-05-11T21:45:29.000Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.181Z"},"containers":{"cna":{"title":"net: phy: micrel: always set shared->phydev for LAN8814","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: phy: micrel: always set shared->phydev for LAN8814\n\nCurrently, during the LAN8814 PTP probe shared->phydev is only set if PTP\nclock gets actually set, otherwise the function will return before setting\nit.\n\nThis is an issue as shared->phydev is unconditionally being used when IRQ\nis being handled, especially in lan8814_gpio_process_cap and since it was\nnot set it will cause a NULL pointer exception and crash the kernel.\n\nSo, simply always set shared->phydev to avoid the NULL pointer exception."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"da1ef8e9eb5d4a12bec32d11636e521e7d529b9e","versionType":"git"},{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"b093b06826b836c2824858669db080c190c04715","versionType":"git"},{"version":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","status":"affected","lessThan":"399d10934740ae8cdaa4e3245f7c5f6c332da844","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/phy/micrel.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.56","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.6","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/phy/micrel.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e"},{"url":"https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715"},{"url":"https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:45:29.000Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.17.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}