CVE-2025-37910 ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's PTP OCP driver allows local attackers to cause a system crash via SMA sysfs operations on Adva boards.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37910?

CVE-2025-37910 is a medium-severity vulnerability in Linux kernel, published on 20 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations

On Adva boards, SMA sysfs store/get operations can call __handle_signal_outputs() or __handle_signal_inputs() while the `irig` and `dcf` pointers are uninitialized, leading to a NULL pointer dereference in __handle_signal() and causing a kernel crash. Adva boards don't use `irig` or `dcf` functionality, so add Adva-specific callbacks `ptp_ocp_sma_adva_set_outputs()` and `ptp_ocp_sma_adva_set_inputs()` that avoid invoking `irig` or `dcf` input/output routines.

Weakness: CWE-476

Which versions are affected by CVE-2025-37910?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37910?

Apply the vendor's patch.

Is CVE-2025-37910 being exploited?

There is no known exploitation of CVE-2025-37910 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-37910, DEBIAN-CVE-2025-37910, GHSA-wfcc-qm3q-frp3, UBUNTU-CVE-2025-37910.

Is CVE-2025-37910 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free