# CVE-2025-38438: ASoC: SOF: Intel: hda: Use devm\_kstrdup() to avoid memleak.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **CWE:** CWE-401
- **Published:** 2025-07-25T15:27:17.917Z
- **Modified:** 2026-11-05T21:18:31.473Z

## Who should check

- Anyone running Linux \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 58ecf51af12cb32b890858b52b2c34e80590c74a; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e
- Anyone running Linux 5.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: SOF: Intel: hda: Use devm\_kstrdup() to avoid memleak.

sof\_pdata-\>tplg\_filename can have address allocated by kstrdup()
and can be overwritten. Memory leak was detected with kmemleak:

unreferenced object 0xffff88812391ff60 (size 16):
  comm "kworker/4:1", pid 161, jiffies 4294802931
  hex dump (first 16 bytes):
    73 6f 66 2d 68 64 61 2d 67 65 6e 65 72 69 63 00  sof-hda-generic.
  backtrace (crc 4bf1675c):
    \_\_kmalloc\_node\_track\_caller\_noprof+0x49c/0x6b0
    kstrdup+0x46/0xc0
    hda\_machine\_select.cold+0x1de/0x12cf \[snd\_sof\_intel\_hda\_generic\]
    sof\_init\_environment+0x16f/0xb50 \[snd\_sof\]
    sof\_probe\_continue+0x45/0x7c0 \[snd\_sof\]
    sof\_probe\_work+0x1e/0x40 \[snd\_sof\]
    process\_one\_work+0x894/0x14b0
    worker\_thread+0x5e5/0xfb0
    kthread+0x39d/0x760
    ret\_from\_fork+0x31/0x70
    ret\_from\_fork\_asm+0x1a/0x30

## Affected and fixed versions

- Linux: \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 58ecf51af12cb32b890858b52b2c34e80590c74a; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38438. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38438.md
Affected: Linux >= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, < 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f; >= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, < 58ecf51af12cb32b890858b52b2c34e80590c74a; >= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, < 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e; Linux 5.2
Fixed in: Linux 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f, Linux 58ecf51af12cb32b890858b52b2c34e80590c74a, Linux 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38438 being exploited?

There is no confirmed exploitation: CVE-2025-38438 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38438?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38438?

Linux \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 58ecf51af12cb32b890858b52b2c34e80590c74a; \>= dd96daca6c83ecaf37f38ff49d8d174bbff576b4, \< 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e; Linux 5.2.

### Is there a fix for CVE-2025-38438?

Yes. Fixed in Linux 68397fda2caa90e99a7c0bcb2cf604e42ef3b91f, Linux 58ecf51af12cb32b890858b52b2c34e80590c74a, Linux 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e. Upgrade Linux to 6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e or later.

### How do I check if I'm affected by CVE-2025-38438?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/68397fda2caa90e99a7c0bcb2cf604e42ef3b91f>
- patch: <https://git.kernel.org/stable/c/58ecf51af12cb32b890858b52b2c34e80590c74a>
- patch: <https://git.kernel.org/stable/c/6c038b58a2dc5a008c7e7a1297f5aaa4deaaaa7e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38438>

HTML: <https://flawdb.com/CVE-2025-38438> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38438>
