# CVE-2025-38259: ASoC: codecs: wcd9335: Fix missing free of regulator supplies

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-07-09T10:42:35.602Z
- Modified: 2026-06-17T09:16:29.930Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 20aedafdf4926e7a957f8b302a18c8fb75c7e332 before edadaf4239c14dc8a19ea7f60b97d5524d93c29b; from 20aedafdf4926e7a957f8b302a18c8fb75c7e332 before 9830ef1803a5bc50b4a984a06cf23142cd46229d; from 20aedafdf4926e7a957f8b302a18c8fb75c7e332 before a8795f3cd289cd958f6396a1b43ba46fa8e22a2e; from 20aedafdf4926e7a957f8b302a18c8fb75c7e332 before b86280aaa23c1c0f31bcaa600d35ddc45bc38b7a; from 20aedafdf4926e7a957f8b302a18c8fb75c7e332 before 9079db287fc3e38e040b0edeb0a25770bb679c8e; 5.1 (not affected: before 5.1; from 6.1.143 up to 6.1.*; from 6.6.96 up to 6.6.*; from 6.12.36 up to 6.12.*; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 5.1 before 6.1.143; from 6.2 before 6.6.96; from 6.7 before 6.12.36; from 6.13 before 6.15.5
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/edadaf4239c14dc8a19ea7f60b97d5524d93c29b> (patch)
- <https://git.kernel.org/stable/c/9830ef1803a5bc50b4a984a06cf23142cd46229d> (patch)
- <https://git.kernel.org/stable/c/a8795f3cd289cd958f6396a1b43ba46fa8e22a2e> (patch)
- <https://git.kernel.org/stable/c/b86280aaa23c1c0f31bcaa600d35ddc45bc38b7a> (patch)
- <https://git.kernel.org/stable/c/9079db287fc3e38e040b0edeb0a25770bb679c8e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-38259](https://www.cve.org/CVERecord?id=CVE-2025-38259), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38259](https://nvd.nist.gov/vuln/detail/CVE-2025-38259), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38259 · Whole record: https://cve.day/CVE-2025-38259.json · Rebuilt by cve.day 2026-11-25T22:59:01.016Z
