Bug 2363507 (CVE-2022-49836) - CVE-2022-49836 kernel: siox: fix possible memory leak in siox_device_add()
Summary: CVE-2022-49836 kernel: siox: fix possible memory leak in siox_device_add()
Keywords:
Status: NEW
Alias: CVE-2022-49836
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: 2025-05-01 15:07 UTC by OSIDB Bzimport
Modified: 2025-06-17 06:01 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:07:28 UTC
In the Linux kernel, the following vulnerability has been resolved:

siox: fix possible memory leak in siox_device_add()

If device_register() returns error in siox_device_add(),
the name allocated by dev_set_name() need be freed. As
comment of device_register() says, it should use put_device()
to give up the reference in the error path. So fix this
by calling put_device(), then the name can be freed in
kobject_cleanup(), and sdevice is freed in siox_device_release(),
set it to null in error path.

Comment 1 Avinash Hanwate 2025-05-02 03:41:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050138-CVE-2022-49836-510d@gregkh/T


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