CVE-2025-40255

Source
https://cve.org/CVERecord?id=CVE-2025-40255
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40255.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40255
Downstream
Related
Published
2025-12-04T16:08:17.023Z
Modified
2026-03-20T12:43:14.345331Z
Summary
net: core: prevent NULL deref in generic_hwtstamp_ioctl_lower()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: core: prevent NULL deref in generichwtstampioctl_lower()

The ethtool tsconfig Netlink path can trigger a null pointer dereference. A call chain such as:

tsconfigpreparedata() -> devgethwtstampphylib() -> vlanhwtstampget() -> generichwtstampgetlower() -> generichwtstampioctl_lower()

results in generichwtstampioctllower() being called with kernelcfg->ifr as NULL.

The generichwtstampioctl_lower() function does not expect a NULL ifr and dereferences it, leading to a system crash.

Fix this by adding a NULL check for kernelcfg->ifr in generichwtstampioctllower(). If ifr is NULL, return -EINVAL.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40255.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6e9e2eed4f39d52edf5fd006409d211facf49f6b
Fixed
8817f816ae41908e9625c0770c4af0dcdcc01238
Fixed
f796a8dec9beafcc0f6f0d3478ed685a15c5e062

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40255.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.17.10

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40255.json"