Bug 2348178 (CVE-2022-49508) - CVE-2022-49508 kernel: HID: elan: Fix potential double free in elan_input_configured
Summary: CVE-2022-49508 kernel: HID: elan: Fix potential double free in elan_input_con...
Keywords:
Status: NEW
Alias: CVE-2022-49508
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-02-26 03:20 UTC by OSIDB Bzimport
Modified: 2025-02-27 08:55 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:20:19 UTC
In the Linux kernel, the following vulnerability has been resolved:

HID: elan: Fix potential double free in elan_input_configured

'input' is a managed resource allocated with devm_input_allocate_device(),
so there is no need to call input_free_device() explicitly or
there will be a double free.

According to the doc of devm_input_allocate_device():
 * Managed input devices do not need to be explicitly unregistered or
 * freed as it will be done automatically when owner device unbinds from
 * its driver (or binding fails).

Comment 1 Avinash Hanwate 2025-02-26 21:55:15 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022609-CVE-2022-49508-c351@gregkh/T


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