Bug 2395886 (CVE-2022-50349) - CVE-2022-50349 kernel: misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
Summary: CVE-2022-50349 kernel: misc: tifm: fix possible memory leak in tifm_7xx1_swit...
Keywords:
Status: NEW
Alias: CVE-2022-50349
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-16 17:04 UTC by OSIDB Bzimport
Modified: 2025-09-16 17:37 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-16 17:04:11 UTC
In the Linux kernel, the following vulnerability has been resolved:

misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()

If device_register() returns error in tifm_7xx1_switch_media(),
name of kobject which is allocated in dev_set_name() called in device_add()
is leaked.

Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.


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