Use-After-Free Vulnerability in Linux Kernel's PTP OCP - CVE-2025-39859

linux Updated 02 Oct 2025

Summary

19/09/2025
N/A
No i
Unrated
Not published

CVE-2025-39859: In the Linux kernel, the following vulnerability has been resolved: ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog The ptp_ocp_detach() only shuts down the watchdog timer if it is pending. Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It supports various functionalities, including process management, memory management, and device control. The PTP (Precision Time Protocol) OCP (Open Control Protocol) is a feature within the kernel that facilitates precise time synchronization across networked devices. However, it is susceptible to vulnerabilities that can lead to critical security issues, such as use-after-free bugs.

Vulnerability Detail

The vulnerability identified as CVE-2025-39859 arises from a race condition in the PTP OCP implementation within the Linux kernel. Specifically, the issue occurs in the ptp_ocp_detach() function, which fails to properly deactivate a watchdog timer if it is already running. This oversight can lead to a scenario where the associated devlink is deallocated while the timer handler is still accessing it, resulting in use-after-free bugs. Such vulnerabilities can be exploited to execute arbitrary code, leading to system crashes or unauthorized access.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patch as soon as possible.

Conclusion

CVE-2025-39859 represents a significant vulnerability in the Linux kernel's PTP OCP implementation, leading to potential use-after-free issues. It is essential to apply the available patch promptly to safeguard your system against exploitation. Regular monitoring and updates are vital for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-39859 is a vulnerability in the Linux kernel related to the PTP OCP that can lead to use-after-free bugs due to improper timer management.

Exploitation of this vulnerability can lead to arbitrary code execution, system crashes, or unauthorized access, posing significant security risks.

You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

You can update the Linux package to the patched version by running the command: sudo apt-get update && sudo apt-get install linux=6.16.6-1.

While there are no specific workarounds available, it is crucial to prioritize updating your system to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback