CVE-2021-47122
JSON

5.5medium

net: caif: fix memory leak in caif_device_notify

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: caif: fix memory leak in caif_device_notify In case of caif_enroll_dev() fail, allocated link_support won't be assigned to the corresponding structure. So simply free allocated pointer in case of error

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before b042e2b2039565eb8f0eb51c14fbe1ef463c8cd8, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before 9348c1f10932f13b299cbc8b1bd5f780751fae49, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before 4bca2034b41c15b62d47a19158bb76235fd4455d, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before 3be863c11cab725add9fef4237ed4e232c3fc3bb, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before f52f4fd67264c70cd0b4ba326962ebe12d9cba94, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before af2806345a37313f01b1c9f15e046745b8ee2daa, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before 6a0e317f61094d377335547e015dd2ff12caf893, from 7c18d2205ea76eef9674e59e1ecae4f332a53e9e before b53558a950a89824938e9811eddfc8efcd94e1bb and 1 more
Not affected: before 3.3, from 4.4.272 up to 4.4.*, from 4.9.272 up to 4.9.*, from 4.14.236 up to 4.14.*, from 4.19.194 up to 4.19.*, from 5.4.125 up to 5.4.*
CVE List
linux linux_kernelfrom 3.3 before 4.4.272, from 4.5 before 4.9.272, from 4.10 before 4.14.236, from 4.15 before 4.19.194, from 4.20 before 5.4.125, from 5.5 before 5.10.43, from 5.11 before 5.12.10, 5.13NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: caif: fix memory leak in caif_device_notify In case of caif_enroll_dev() fail, allocated link_support won't be assigned to the corresponding structure. So simply free allocated pointer in case of error

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: caif: corrige la pérdida de memoria en caif_device_notify En caso de que falle caif_enroll_dev(), el link_support asignado no se asignará a la estructura correspondiente. Así que simplemente libera el puntero asignado en caso de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47122 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47122 changed 2026-06-17Public domain