net: usb: rtl8150: fix memory leak on usb_submit_urb() failure (Linux Linux)

CVE-2025-71154
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
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: net: usb: rtl8150: fix memory leak on usb_submit_urb() failure In async_set_registers(), when usb_submit_urb() fails, the allocated async_req structure and URB are not freed, causing a memory leak. The completion callback async_set_reg_cb() is responsible for freeing these allocations, but it is only called after the URB is successfully submitted and completes (successfully or with error). If submission fails, the callback never runs and the memory is leaked. Fix this by freeing both the URB and the request structure in the error path when usb_submit_urb() fails.

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 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < a4e2442d3c48355a84463342f397134f149936d7 ; affected 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < 2f966186b99550e3c665dbfb87b8314e30acea02 ; affected 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < db2244c580540306d60ce783ed340190720cd429 ; affected 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < 4bd4ea3eb326608ffc296db12c105f92dc2f2190 ; affected 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < 6492ad6439ff1a479fc94dc6052df3628faed8b6 ; affected 4d12997a9bb3d217ad4b925ec3074ec89364bf95 < 151403e903840c9cf06754097b6732c14f26c532
Linux · Linuxaffected 3.10 ; unaffected 0 < 3.10 ; unaffected 5.10.248 ≤ 5.10.* ; unaffected 5.15.198 ≤ 5.15.* ; unaffected 6.1.160 ≤ 6.1.* ; unaffected 6.6.120 ≤ 6.6.*

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