soc: mediatek: svs: Fix memory leak in svs_enable_debug_write() (Linux Linux)

CVE-2026-45881
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write() In svs_enable_debug_write(), the buf allocated by memdup_user_nul() is leaked if kstrtoint() fails. Fix this by using __free(kfree) to automatically free buf, eliminating the need for explicit kfree() calls and preventing leaks. [Angelo: Added missing cleanup.h inclusion]

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 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < 47a3e372f7d68776adb749a27c0ec9058ff1b4fd ; affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < 06195456c4e4de3826c4ca60eca941c472f991d0 ; affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < a58c97828911c0b6e25d6b556789da974003efda ; affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < 0f6498077faa9cd89bb787bcc57063494a6f0601 ; affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < 6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a ; affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa < 6259094ee806fb813ca95894c65fb80e2ec98bf1
Linux · Linuxaffected 6.0 ; unaffected 0 < 6.0 ; unaffected 6.1.165 ≤ 6.1.* ; unaffected 6.6.128 ≤ 6.6.* ; unaffected 6.12.75 ≤ 6.12.* ; unaffected 6.18.14 ≤ 6.18.*

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