net: phy: micrel: always set shared->phydev for LAN8814
In the Linux kernel, the following vulnerability has been resolved: net: phy: micrel: always set shared->phydev for LAN8814 Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP clock gets actually set, otherwise the function will return before setting it. This is an issue as shared->phydev is unconditionally being used when IRQ is being handled, especially in lan8814_gpio_process_cap and since it was not set it will cause a NULL pointer exception and crash the kernel. So, simply always set shared->phydev to avoid the NULL pointer exception.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.56, 6.17.6
- CVEs
- CVE-2025-40239
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 10:56 UTC · Revision 1
Source evidence
net: phy: micrel: always set shared->phydev for LAN8814
core-osv · Original sourcePublished 4 Dec 2025, 15:31 UTC
In the Linux kernel, the following vulnerability has been resolved: net: phy: micrel: always set shared->phydev for LAN8814 Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP clock gets actually set, otherwise the function will return before setting it. This is an issue as shared->phydev is unconditionally being used when IRQ is being handled, especially in lan8814_gpio_process_cap and since it was not set it will cause a NULL pointer exception and crash the kernel. So, simply always set shared->phydev to avoid the NULL pointer exception.
osv:CVE-2025-40239
Kernel
Fixed versions: 6.12.56, 6.17.6
Complete source record
{
"id": "43d9e547f6152728bb29df0bcf616c8318edf9d22ece558491b4b8cf5f6c0875",
"url": "https://osv.dev/vulnerability/CVE-2025-40239",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: phy: micrel: always set shared->phydev for LAN8814",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: phy: micrel: always set shared->phydev for LAN8814 Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP clock gets actually set, otherwise the function will return before setting it. This is an issue as shared->phydev is unconditionally being used when IRQ is being handled, especially in lan8814_gpio_process_cap and since it was not set it will cause a NULL pointer exception and crash the kernel. So, simply always set shared->phydev to avoid the NULL pointer exception.",
"evidence": "osv:CVE-2025-40239",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.56",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-40239",
"aliases": [
"CVE-2025-40239"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746"
},
{
"fixed": "da1ef8e9eb5d4a12bec32d11636e521e7d529b9e"
},
{
"fixed": "b093b06826b836c2824858669db080c190c04715"
},
{
"fixed": "399d10934740ae8cdaa4e3245f7c5f6c332da844"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40239.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.10.0"
},
{
"fixed": "6.12.56"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40239.json"
}
}
],
"modified": "2026-10-28T02:30:50.527933732Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844",
"https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715",
"https://git.kernel.org/stable/c/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40239.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40239",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40239.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40239",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 519062,
"published_at": "2025-12-04T15:31:28.941+00:00"
}