Bug 2378993 (CVE-2025-38259) - CVE-2025-38259 kernel: ASoC: codecs: wcd9335: Fix missing free of regulator supplies
Summary: CVE-2025-38259 kernel: ASoC: codecs: wcd9335: Fix missing free of regulator s...
Keywords:
Status: NEW
Alias: CVE-2025-38259
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-07-09 11:02 UTC by OSIDB Bzimport
Modified: 2025-07-09 17:37 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-09 11:02:19 UTC
In the Linux kernel, the following vulnerability has been resolved:

ASoC: codecs: wcd9335: Fix missing free of regulator supplies

Driver gets and enables all regulator supplies in probe path
(wcd9335_parse_dt() and wcd9335_power_on_reset()), but does not cleanup
in final error paths and in unbind (missing remove() callback).  This
leads to leaked memory and unbalanced regulator enable count during
probe errors or unbind.

Fix this by converting entire code into devm_regulator_bulk_get_enable()
which also greatly simplifies the code.


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