CVE-2022-49915

mISDN: fix possible memory leak in mISDN_register_device()

State
Published
Severity
5.5 Medium
Published
May 1, 2025
Updated
May 11, 2026
Reserved
May 1, 2025

Read the record on cve.org

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().

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before d1d1aede313eb2b9a84afd60ff6cfb7c33631e0eAffected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before 080aabfb29b2ee9cbb8894a1d039651943d3773eAffected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before a636fc5a7cabd05699b5692ad838c2c7a3abec7bAffected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before 2ff6b669523d3b3d253a044fa9636a67d0694995Affected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before e77d213843e67b4373285712699b692f9c743f61Affected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before 029d5b7688a2f3a86f2a3be5a6ba9cc968c80e41Affected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before 0d4e91efcaee081e919b3c50e875ecbb84290e41Affected
  • 1fa5ae857bb14f6046205171d98506d8112dd74e to before e7d1d4d9ac0dfa40be4c2c8abd0731659869b297Affected
LinuxLinux
  • 2.6.30Affected
  • before 2.6.30Not affected
  • 4.9.333 through 4.9.*Not affected
  • 4.14.299 through 4.14.*Not affected
  • 4.19.265 through 4.19.*Not affected
  • 5.4.224 through 5.4.*Not affected
  • 5.10.154 through 5.10.*Not affected
  • 5.15.78 through 5.15.*Not affected
  • 6.0.8 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.