CVE-2025-38546

atm: clip: Fix memory leak of struct clip_vcc.

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2fb37ab3226606cbfc9b2b6f9e301b0b735734c5 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9e4dbeee56f614e3f1e166e5d0655a999ea185ef ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1c075e88d5859a2c6b43b27e0e46fb281cef8039 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1fb9fb5a4b5cec2d56e26525ef8c519de858fa60 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9f771816f14da6d6157a8c30069091abf6b566fb
Linux · Linuxaffected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 5.4.296 ≤ 5.4.* ; unaffected 5.10.240 ≤ 5.10.* ; unaffected 5.15.189 ≤ 5.15.* ; unaffected 6.1.146 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD