# CVE-2026-31587: ASoC: qcom: q6apm: move component registration to unmanaged version

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-04-24T14:42:15.625Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 110769a9aa51135ac7ce479a47dfb41924f37664; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 887632163b546a8944b46ef465f1d74e838b727a; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< b7412ed789ffb1e59c8d6f5ab6a6a718963c85e2; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 30383b7780ffa140bc124de5b66cae7c84133dbb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< f7b790531cdad3b2075ab937aa06d7b802403be4; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< a561a55b79a9c55f0443377f2d4dcf6149d057af; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 6ec1235fc941dac6c011b30ee01d9220ff87e0cd
- Anyone running Linux 5.16

## Description

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

ASoC: qcom: q6apm: move component registration to unmanaged version

q6apm component registers dais dynamically from ASoC toplology, which
are allocated using device managed version apis. Allocating both
component and dynamic dais using managed version could lead to incorrect
free ordering, dai will be freed while component still holding references
to it.

Fix this issue by moving component to unmanged version so
that the dai pointers are only freeded after the component is removed.

==================================================================
BUG: KASAN: slab-use-after-free in snd\_soc\_del\_component\_unlocked+0x3d4/0x400 \[snd\_soc\_core\]
Read of size 8 at addr ffff00084493a6e8 by task kworker/u48:0/3426
Tainted: \[W\]=WARN
Hardware name: LENOVO 21N2ZC5PUS/21N2ZC5PUS, BIOS N42ET57W (1.31 ) 08/08/2024
Workqueue: pdr\_notifier\_wq pdr\_notifier\_work \[pdr\_interface\]
Call trace:
 show\_stack+0x28/0x7c (C)
 dump\_stack\_lvl+0x60/0x80
 print\_report+0x160/0x4b4
 kasan\_report+0xac/0xfc
 \_\_asan\_report\_load8\_noabort+0x20/0x34
 snd\_soc\_del\_component\_unlocked+0x3d4/0x400 \[snd\_soc\_core\]
 snd\_soc\_unregister\_component\_by\_driver+0x50/0x88 \[snd\_soc\_core\]
 devm\_component\_release+0x30/0x5c \[snd\_soc\_core\]
 devres\_release\_all+0x13c/0x210
 device\_unbind\_cleanup+0x20/0x190
 device\_release\_driver\_internal+0x350/0x468
 device\_release\_driver+0x18/0x30
 bus\_remove\_device+0x1a0/0x35c
 device\_del+0x314/0x7f0
 device\_unregister+0x20/0xbc
 apr\_remove\_device+0x5c/0x7c \[apr\]
 device\_for\_each\_child+0xd8/0x160
 apr\_pd\_status+0x7c/0xa8 \[apr\]
 pdr\_notifier\_work+0x114/0x240 \[pdr\_interface\]
 process\_one\_work+0x500/0xb70
 worker\_thread+0x630/0xfb0
 kthread+0x370/0x6c0
 ret\_from\_fork+0x10/0x20

Allocated by task 77:
 kasan\_save\_stack+0x40/0x68
 kasan\_save\_track+0x20/0x40
 kasan\_save\_alloc\_info+0x44/0x58
 \_\_kasan\_kmalloc+0xbc/0xdc
 \_\_kmalloc\_node\_track\_caller\_noprof+0x1f4/0x620
 devm\_kmalloc+0x7c/0x1c8
 snd\_soc\_register\_dai+0x50/0x4f0 \[snd\_soc\_core\]
 soc\_tplg\_pcm\_elems\_load+0x55c/0x1eb8 \[snd\_soc\_core\]
 snd\_soc\_tplg\_component\_load+0x4f8/0xb60 \[snd\_soc\_core\]
 audioreach\_tplg\_init+0x124/0x1fc \[snd\_q6apm\]
 q6apm\_audio\_probe+0x10/0x1c \[snd\_q6apm\]
 snd\_soc\_component\_probe+0x5c/0x118 \[snd\_soc\_core\]
 soc\_probe\_component+0x44c/0xaf0 \[snd\_soc\_core\]
 snd\_soc\_bind\_card+0xad0/0x2370 \[snd\_soc\_core\]
 snd\_soc\_register\_card+0x3b0/0x4c0 \[snd\_soc\_core\]
 devm\_snd\_soc\_register\_card+0x50/0xc8 \[snd\_soc\_core\]
 x1e80100\_platform\_probe+0x208/0x368 \[snd\_soc\_x1e80100\]
 platform\_probe+0xc0/0x188
 really\_probe+0x188/0x804
 \_\_driver\_probe\_device+0x158/0x358
 driver\_probe\_device+0x60/0x190
 \_\_device\_attach\_driver+0x16c/0x2a8
 bus\_for\_each\_drv+0x100/0x194
 \_\_device\_attach+0x174/0x380
 device\_initial\_probe+0x14/0x20
 bus\_probe\_device+0x124/0x154
 deferred\_probe\_work\_func+0x140/0x220
 process\_one\_work+0x500/0xb70
 worker\_thread+0x630/0xfb0
 kthread+0x370/0x6c0
 ret\_from\_fork+0x10/0x20

Freed by task 3426:
 kasan\_save\_stack+0x40/0x68
 kasan\_save\_track+0x20/0x40
 \_\_kasan\_save\_free\_info+0x4c/0x80
 \_\_kasan\_slab\_free+0x78/0xa0
 kfree+0x100/0x4a4
 devres\_release\_all+0x144/0x210
 device\_unbind\_cleanup+0x20/0x190
 device\_release\_driver\_internal+0x350/0x468
 device\_release\_driver+0x18/0x30
 bus\_remove\_device+0x1a0/0x35c
 device\_del+0x314/0x7f0
 device\_unregister+0x20/0xbc
 apr\_remove\_device+0x5c/0x7c \[apr\]
 device\_for\_each\_child+0xd8/0x160
 apr\_pd\_status+0x7c/0xa8 \[apr\]
 pdr\_notifier\_work+0x114/0x240 \[pdr\_interface\]
 process\_one\_work+0x500/0xb70
 worker\_thread+0x630/0xfb0
 kthread+0x370/0x6c0
 ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 110769a9aa51135ac7ce479a47dfb41924f37664; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 887632163b546a8944b46ef465f1d74e838b727a; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< b7412ed789ffb1e59c8d6f5ab6a6a718963c85e2; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 30383b7780ffa140bc124de5b66cae7c84133dbb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< f7b790531cdad3b2075ab937aa06d7b802403be4; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< a561a55b79a9c55f0443377f2d4dcf6149d057af; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 6ec1235fc941dac6c011b30ee01d9220ff87e0cd (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 6ec1235fc941dac6c011b30ee01d9220ff87e0cd or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31587.md
Affected: Linux >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 110769a9aa51135ac7ce479a47dfb41924f37664; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 887632163b546a8944b46ef465f1d74e838b727a; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < b7412ed789ffb1e59c8d6f5ab6a6a718963c85e2; >= 5477518b8a0e8a45239646a…
Fixed in: Linux 110769a9aa51135ac7ce479a47dfb41924f37664, Linux 887632163b546a8944b46ef465f1d74e838b727a, Linux 30383b7780ffa140bc124de5b66cae7c84133dbb, Linux 6ec1235fc941dac6c011b30ee01d9220ff87e0cd

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-2026-31587 being exploited?

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

### How serious is CVE-2026-31587?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31587?

Linux \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 110769a9aa51135ac7ce479a47dfb41924f37664; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 887632163b546a8944b46ef465f1d74e838b727a; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< b7412ed789ffb1e59c8d6f5ab6a6a718963c85e2; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 30383b7780ffa140bc124de5b66cae7c84133dbb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< f7b790531cdad3b2075ab937aa06d7b802403be4; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< a561a55b79a9c55f0443377f2d4dcf6149d057af; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 6ec1235fc941dac6c011b30ee01d9220ff87e0cd; Linux 5.16.

### Is there a fix for CVE-2026-31587?

Yes. Fixed in Linux 110769a9aa51135ac7ce479a47dfb41924f37664, Linux 887632163b546a8944b46ef465f1d74e838b727a, Linux 30383b7780ffa140bc124de5b66cae7c84133dbb, Linux 6ec1235fc941dac6c011b30ee01d9220ff87e0cd. Upgrade Linux to 6ec1235fc941dac6c011b30ee01d9220ff87e0cd or later.

### How do I check if I'm affected by CVE-2026-31587?

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/887632163b546a8944b46ef465f1d74e838b727a>
- patch: <https://git.kernel.org/stable/c/b7412ed789ffb1e59c8d6f5ab6a6a718963c85e2>
- patch: <https://git.kernel.org/stable/c/30383b7780ffa140bc124de5b66cae7c84133dbb>
- patch: <https://git.kernel.org/stable/c/f7b790531cdad3b2075ab937aa06d7b802403be4>
- patch: <https://git.kernel.org/stable/c/a561a55b79a9c55f0443377f2d4dcf6149d057af>
- patch: <https://git.kernel.org/stable/c/6ec1235fc941dac6c011b30ee01d9220ff87e0cd>
- other: <https://git.kernel.org/stable/c/110769a9aa51135ac7ce479a47dfb41924f37664>

## 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-2026-31587>

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