CVE-2021-47121
JSON

5.5medium

net: caif: fix memory leak in cfusbl_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 cfusbl_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 7ad65bf68d705b445ef10b77ab50dab22be185ee before cc302e30a504e6b60a9ac8df7988646f46cd0294, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before 81afc61cb6e2b553f2c5f992fa79e0ae73857141, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before e8b37f5009ea7095529790f022859711e6939c76, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before 9ea0ab48e755d8f29fe89eb235fb86176fdb597f, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before 4d94f530cd24c85aede6e72b8923f371b45d6886, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before 46403c1f80b0d3f937ff9c4f5edc63bb64bc5051, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before dde8686985ec24d6b00487080a906609bd613ea1, from 7ad65bf68d705b445ef10b77ab50dab22be185ee before 7f5d86669fa4d485523ddb1d212e0a2d90bd62bb 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 cfusbl_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 cfusbl_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-47121 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47121 changed 2026-06-17Public domain