ksmbd: Fix memory leak in get_file_all_info() (Linux Linux)

CVE-2025-71153
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.14 % · centile 3 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix memory leak in get_file_all_info() In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak. Fix this by freeing the filename before returning in this error case.

Faiblesses (CWE)

  • CWE-401 — Mémoire non libérée après sa durée de vie utile

Références

Scores

VersionScoreVecteurÉvalué par
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)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected c8f7ad2df083c510e640c0bf76166593cc116ff2 < 5012b4c812230ae066902a00442708c999111183 ; affected 5614c8c487f6af627614dd2efca038e4afe0c6d7 < 676907004256e0226c7ed3691db9f431404ca258 ; affected 5614c8c487f6af627614dd2efca038e4afe0c6d7 < d026f47db68638521df8543535ef863814fb01b1 ; affected 5614c8c487f6af627614dd2efca038e4afe0c6d7 < 0c56693b06a68476ba113db6347e7897475f9e4c ; affected f9278ba4967027ad2bf001694f0e489c7bbae6d5 ; affected 88779f09295d82b86601fe42595748488bf5e20c
Linux · Linuxaffected 6.9 ; unaffected 0 < 6.9 ; unaffected 6.6.120 ≤ 6.6.* ; unaffected 6.12.64 ≤ 6.12.* ; unaffected 6.18.4 ≤ 6.18.* ; unaffected 6.19 ≤ *

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