CVE-2026-139278
publishedALSA: pcmtest: Pin the module while pattern files are open
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < add182e88ecabe2c86f262182c9f7642311df097 · 315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331 · 315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < 891cbc7058b3d459b5d02002f6c8618c820b2306 · 315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < ee65450f168eca7367672885825bb9bff6670c17 · 315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < 069003afab42b5a9394faa6985a3d76bd4700e72 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: pcmtest: Pin the module while pattern files are open The fill_pattern_fops table must remain alive until the final release of each pattern debugfs file. It has no .owner, so the fops_get() call in full_proxy_open_regular() does not take a PCMTest module reference. With snd-pcmtest loaded as a module, a user with permission to open a fill_patternN file and unload the module can retain the descriptor across normal unload, provided no PCM file or other module reference prevents it. The following ordering is possible: Pattern file user Module unload ----------------- ------------- open(fill_patternN) full_proxy_open_regular() fops_get(fill_pattern_fops) owner == NULL: no module pin keep the descriptor open mod_exit() clear_debug_files() debugfs_remove_recursive() drain active operations return from mod_exit() free_module() free the module image close(fd) full_proxy_release() read real_fops->release -> UAF fops_put(real_fops) read real_fops->owner access freed module memory Even though the table has no release callback, reading those fields is a use-after-free and can fault. The retained dentry keeps the proxy's bookkeeping alive, but does not retain the module storage. Set .owner to THIS_MODULE so the existing fops_get()/fops_put() pair pins PCMTest until final release has finished accessing the table. Normal module unload is then blocked while any pattern file is open.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < add182e88ecabe2c86f262182c9f7642311df097 (affected · git)315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331 (affected · git)315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < 891cbc7058b3d459b5d02002f6c8618c820b2306 (affected · git)315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < ee65450f168eca7367672885825bb9bff6670c17 (affected · git)315a3d57c64c55901d6fe5a5eef3b3e51d215381 to < 069003afab42b5a9394faa6985a3d76bd4700e72 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/069003afab42b5a9394faa6985a3d76bd4700e72
- https://git.kernel.org/stable/c/891cbc7058b3d459b5d02002f6c8618c820b2306
- https://git.kernel.org/stable/c/add182e88ecabe2c86f262182c9f7642311df097
- https://git.kernel.org/stable/c/ee65450f168eca7367672885825bb9bff6670c17
- https://git.kernel.org/stable/c/f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331
Provider assertions
1Linux · cna
ALSA: pcmtest: Pin the module while pattern files are open
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a606c70d752db4c6be8a0dbf58a4e0238ef6fe87f52dca5c25fc1221fbfa7c7c
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record