CVE-2025-40255: net: core: prevent NULL deref in generic_hwtstamp_ioctl_lower()

Published Dec 4, 2025
·
Updated

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

net: core: prevent NULL deref in generichwtstampioctllower()

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

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

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

The generichwtstampioctllower() 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.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add a NULL check for kernel_cfg->ifr in generic_hwtstamp_ioctl_lower(); if ifr is NULL, return -EINVAL.

Event History

Dec 4, 2025
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description
Data Sourced
via NVD·04:16 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40255?

CVE-2025-40255 has been rated as a medium severity vulnerability due to its potential to cause application crashes or unexpected behavior.

2

How do I fix CVE-2025-40255?

To fix CVE-2025-40255, you should upgrade to the latest patched version of the Linux kernel that addresses the null pointer dereference issue.

3

What systems are affected by CVE-2025-40255?

CVE-2025-40255 affects various versions of the Linux kernel that may utilize the ethtool tsconfig Netlink path.

4

What are the potential impacts of CVE-2025-40255?

The potential impacts of CVE-2025-40255 include system crashes and denial of service conditions caused by null pointer dereferences.

5

Is there a workaround for CVE-2025-40255?

While the recommended solution is to upgrade, users may mitigate risks by disabling features related to the ethtool tsconfig if not required.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203