RDMA/hfi1: fix potential memory leak in setup_base_ctxt() (Linux Linux)

CVE-2022-50134
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/hfi1: fix potential memory leak in setup_base_ctxt() setup_base_ctxt() allocates a memory chunk for uctxt->groups with hfi1_alloc_ctxt_rcv_groups(). When init_user_ctxt() fails, uctxt->groups is not released, which will lead to a memory leak. We should release the uctxt->groups with hfi1_free_ctxt_rcv_groups() when init_user_ctxt() 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 e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < fc4de8009fd6c2ca51986c6757efa964040e7d02 ; affected e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 90ef48a718f88935d4af53d7dadd1ceafe103ce6 ; affected e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 2f90813f1c21c3d780585390af961bd17c8515ae ; affected e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < a85c7dd1edadcdeca24e603a6618153a3bcc81ca ; affected e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < e25b828553aecb3185a8d8d0c4f9b4e133fb5db6 ; affected e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 1750be1e9f18787cf717c24dbc5fa029fc372a22
Linux · Linuxaffected 4.14 ; unaffected 0 < 4.14 ; unaffected 4.14.291 ≤ 4.14.* ; unaffected 4.19.256 ≤ 4.19.* ; unaffected 5.4.211 ≤ 5.4.* ; unaffected 5.10.137 ≤ 5.10.*

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