mISDN: fix possible memory leak in mISDN_register_device() (Linux Linux)

CVE-2022-49915
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: mISDN: fix possible memory leak in mISDN_register_device() Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, add put_device() to give up the reference, so that the name can be freed in kobject_cleanup() when the refcount is 0. Set device class before put_device() to avoid null release() function WARN message in device_release().

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 1fa5ae857bb14f6046205171d98506d8112dd74e < d1d1aede313eb2b9a84afd60ff6cfb7c33631e0e ; affected 1fa5ae857bb14f6046205171d98506d8112dd74e < 080aabfb29b2ee9cbb8894a1d039651943d3773e ; affected 1fa5ae857bb14f6046205171d98506d8112dd74e < a636fc5a7cabd05699b5692ad838c2c7a3abec7b ; affected 1fa5ae857bb14f6046205171d98506d8112dd74e < 2ff6b669523d3b3d253a044fa9636a67d0694995 ; affected 1fa5ae857bb14f6046205171d98506d8112dd74e < e77d213843e67b4373285712699b692f9c743f61 ; affected 1fa5ae857bb14f6046205171d98506d8112dd74e < 029d5b7688a2f3a86f2a3be5a6ba9cc968c80e41
Linux · Linuxaffected 2.6.30 ; unaffected 0 < 2.6.30 ; unaffected 4.9.333 ≤ 4.9.* ; unaffected 4.14.299 ≤ 4.14.* ; unaffected 4.19.265 ≤ 4.19.* ; unaffected 5.4.224 ≤ 5.4.*

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