Bug 2298111 (CVE-2022-48775) - CVE-2022-48775 kernel: Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj
Summary: CVE-2022-48775 kernel: Drivers: hv: vmbus: Fix memory leak in vmbus_add_chann...
Keywords:
Status: NEW
Alias: CVE-2022-48775
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 12:22 UTC by OSIDB Bzimport
Modified: 2024-09-24 13:58 UTC (History)
4 users (show)

Fixed In Version: kernel 4.19.231, kernel 5.4.181, kernel 5.10.102, kernel 5.15.25, kernel 5.16.11, kernel 5.17
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-16 12:22:25 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.