{"id":"CVE-2025-40239","aliases":["CVE-2025-40239"],"related":[],"kind":"vulnerability","state":"published","title":"net: phy: micrel: always set shared->phydev for LAN8814","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: phy: micrel: siempre establecer shared -> phydev para LAN8814\n\nActualmente, durante la sonda PTP de LAN8814, shared -> phydev solo se establece si el reloj PTP se configura realmente; de lo contrario, la función retornará antes de establecerlo.\n\nEsto es un problema ya que shared -> phydev se utiliza incondicionalmente cuando se maneja la IRQ, especialmente en lan8814_gpio_process_cap, y dado que no se estableció, causará una excepción de puntero NULL y bloqueará el kernel.\n\nAsí que, simplemente siempre establecer shared -> phydev para evitar la excepción de puntero NULL.","source":"nvd"}],"published":"2025-12-04T15:31:28.941Z","modified":"2026-10-19T19:10:00.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","fixed":"da1ef8e9eb5d4a12bec32d11636e521e7d529b9e","status":"affected"},{"type":"git","introduced":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","fixed":"b093b06826b836c2824858669db080c190c04715","status":"affected"},{"type":"git","introduced":"b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746","fixed":"399d10934740ae8cdaa4e3245f7c5f6c332da844","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.56","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40239","url":"https://www.cve.org/CVERecord?id=CVE-2025-40239","licence":"CVE Terms of Use","modified":"2026-05-11T21:45:29.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40239","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40239","licence":"Public domain","modified":"2026-10-19T19:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:08.269Z","epss":{"score":0.00213,"percentile":0.12351,"date":"2026-12-01T12:00:22.000Z"}}