---
id: CVE-2025-38148
title: 'net: phy: mscc: Fix memory leak when using one step timestamping'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net: phy: mscc: Fix memory leak when using one step timestamping

  Fix memory leak when running one-step timestamping. When running
  one-step sync timestamping, the HW is…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    24b24295464f25fb771d36ed558c7cd942119361
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    db2a12ddd3a31f668137ff6a4befc1343c79cbc4
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    0b40aeaf83ca04d4c9801e235b7533400c8b5f17
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    66abe22017522dd56b820e41ca3a5b131a637001
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    cdbabd316c5a4a9b0fda6aafe491e2db17fbb95d
  - >-
    Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 <
    846992645b25ec4253167e3f931e4597eb84af56
  - Linux 5.9
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:50:31.653796Z'
published: '2025-07-03'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:52:17.728Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-38148'
references:
  - url: 'https://git.kernel.org/stable/c/24b24295464f25fb771d36ed558c7cd942119361'
  - url: 'https://git.kernel.org/stable/c/db2a12ddd3a31f668137ff6a4befc1343c79cbc4'
  - url: 'https://git.kernel.org/stable/c/0b40aeaf83ca04d4c9801e235b7533400c8b5f17'
  - url: 'https://git.kernel.org/stable/c/66abe22017522dd56b820e41ca3a5b131a637001'
  - url: 'https://git.kernel.org/stable/c/cdbabd316c5a4a9b0fda6aafe491e2db17fbb95d'
  - url: 'https://git.kernel.org/stable/c/846992645b25ec4253167e3f931e4597eb84af56'
tags:
  - cve.org
epss: 0.00182
epssPercentile: 0.07832
ingestedAt: '2026-11-05T22:38:31.924Z'
---

## Overview

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

net: phy: mscc: Fix memory leak when using one step timestamping

Fix memory leak when running one-step timestamping. When running
one-step sync timestamping, the HW is configured to insert the TX time
into the frame, so there is no reason to keep the skb anymore. As in
this case the HW will never generate an interrupt to say that the frame
was timestamped, then the frame will never released.
Fix this by freeing the frame in case of one-step timestamping.

## Affected

- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < 24b24295464f25fb771d36ed558c7cd942119361`
- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < db2a12ddd3a31f668137ff6a4befc1343c79cbc4`
- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < 0b40aeaf83ca04d4c9801e235b7533400c8b5f17`
- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < 66abe22017522dd56b820e41ca3a5b131a637001`
- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < cdbabd316c5a4a9b0fda6aafe491e2db17fbb95d`
- `Linux >= 7d272e63e0979d38a6256108adbe462d621c26c5 < 846992645b25ec4253167e3f931e4597eb84af56`
- `Linux 5.9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
