RDMA/cm: Fix memory leak in ib_cm_insert_listen (Linux Linux)

CVE-2022-49671
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.28 % · percentile 21 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/cm: Fix memory leak in ib_cm_insert_listen cm_alloc_id_priv() allocates resource for the cm_id_priv. When cm_init_listen() fails it doesn't free it, leading to memory leak. Add the missing error unwind.

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 98f67156a80f37db70ec64787020b1f9bc8aea8c < b0cab8b517aeaf2592c3479294f934209c41a26f ; affected 98f67156a80f37db70ec64787020b1f9bc8aea8c < 889000874c1204e47c7f2a4945db262a47e7efc9 ; affected 98f67156a80f37db70ec64787020b1f9bc8aea8c < 2febf09a8a8ae4accf908f043f1bab1421056568 ; affected 98f67156a80f37db70ec64787020b1f9bc8aea8c < 2990f223ffa7bb25422956b9f79f9176a5b38346
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 5.10.129 ≤ 5.10.* ; unaffected 5.15.53 ≤ 5.15.* ; unaffected 5.18.10 ≤ 5.18.* ; unaffected 5.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