CVE-2022-48775

Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj

State
Published
Severity
Not scored
Published
Jul 16, 2024
Updated
May 11, 2026
Reserved
Jun 20, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj

kobject_init_and_add() takes reference even when it fails. According to the doc of kobject_init_and_add():

If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object.

Fix memory leak by calling kobject_put().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before 417947891bd5ae327f15efed1a0da2b12ef24962Affected
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before fe595759c2a4a5bb41c438474f15947d8ae32f5cAffected
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before 91d8866ca55232d21995a3d54fac96de33c9e20cAffected
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before c377e2ba78d3fe9a1f0b4ec424e75f81da7e81e9Affected
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before 92e25b637cd4e010f776c86e4810300e773eac5cAffected
  • c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c to before 8bc69f86328e87a0ffa79438430cc82f3aa6a194Affected
LinuxLinux
  • 4.15Affected
  • before 4.15Not affected
  • 4.19.231 through 4.19.*Not affected
  • 5.4.181 through 5.4.*Not affected
  • 5.10.102 through 5.10.*Not affected
  • 5.15.25 through 5.15.*Not affected
  • 5.16.11 through 5.16.*Not affected
  • 5.17 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.