---
id: CVE-2025-38546
title: 'atm: clip: Fix memory leak of struct clip_vcc.'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  atm: clip: Fix memory leak of struct clip_vcc.

  ioctl(ATMARP_MKIP) allocates struct clip_vcc and set it to
  vcc->user_back.

  The code assumes that vcc_destroy_socket() p…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    2fb37ab3226606cbfc9b2b6f9e301b0b735734c5
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    9e4dbeee56f614e3f1e166e5d0655a999ea185ef
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    1c075e88d5859a2c6b43b27e0e46fb281cef8039
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    1fb9fb5a4b5cec2d56e26525ef8c519de858fa60
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    9f771816f14da6d6157a8c30069091abf6b566fb
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    cb2e4a2f8f268d8fba6662f663a2e57846f14a8d
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    62dba28275a9a3104d4e33595c7b3328d4032d8d
  - Linux 2.6.12
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T21:03:45.586611Z'
published: '2025-08-16'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T21:12:46.672Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-38546'
references:
  - url: 'https://git.kernel.org/stable/c/2fb37ab3226606cbfc9b2b6f9e301b0b735734c5'
  - url: 'https://git.kernel.org/stable/c/9e4dbeee56f614e3f1e166e5d0655a999ea185ef'
  - url: 'https://git.kernel.org/stable/c/1c075e88d5859a2c6b43b27e0e46fb281cef8039'
  - url: 'https://git.kernel.org/stable/c/0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90'
  - url: 'https://git.kernel.org/stable/c/1fb9fb5a4b5cec2d56e26525ef8c519de858fa60'
  - url: 'https://git.kernel.org/stable/c/9f771816f14da6d6157a8c30069091abf6b566fb'
  - url: 'https://git.kernel.org/stable/c/cb2e4a2f8f268d8fba6662f663a2e57846f14a8d'
  - url: 'https://git.kernel.org/stable/c/62dba28275a9a3104d4e33595c7b3328d4032d8d'
tags:
  - cve.org
epss: 0.00181
epssPercentile: 0.07677
ingestedAt: '2026-11-05T22:38:31.991Z'
---

## Overview

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

atm: clip: Fix memory leak of struct clip_vcc.

ioctl(ATMARP_MKIP) allocates struct clip_vcc and set it to
vcc->user_back.

The code assumes that vcc_destroy_socket() passes NULL skb
to vcc->push() when the socket is close()d, and then clip_push()
frees clip_vcc.

However, ioctl(ATMARPD_CTRL) sets NULL to vcc->push() in
atm_init_atmarp(), resulting in memory leak.

Let's serialise two ioctl() by lock_sock() and check vcc->push()
in atm_init_atmarp() to prevent memleak.

## Affected

- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2fb37ab3226606cbfc9b2b6f9e301b0b735734c5`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9e4dbeee56f614e3f1e166e5d0655a999ea185ef`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1c075e88d5859a2c6b43b27e0e46fb281cef8039`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1fb9fb5a4b5cec2d56e26525ef8c519de858fa60`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9f771816f14da6d6157a8c30069091abf6b566fb`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < cb2e4a2f8f268d8fba6662f663a2e57846f14a8d`
- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 62dba28275a9a3104d4e33595c7b3328d4032d8d`
- `Linux 2.6.12`

## Remediation

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