{"id":"CVE-2026-139278","aliases":["CVE-2026-139278"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: pcmtest: Pin the module while pattern files are open","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcmtest: Pin the module while pattern files are open\n\nThe fill_pattern_fops table must remain alive until the final release\nof each pattern debugfs file. It has no .owner, so the fops_get() call\nin full_proxy_open_regular() does not take a PCMTest module reference.\n\nWith snd-pcmtest loaded as a module, a user with permission to open a\nfill_patternN file and unload the module can retain the descriptor\nacross normal unload, provided no PCM file or other module reference\nprevents it. The following ordering is possible:\n\n  Pattern file user                   Module unload\n  -----------------                   -------------\n  open(fill_patternN)\n    full_proxy_open_regular()\n      fops_get(fill_pattern_fops)\n        owner == NULL: no module pin\n  keep the descriptor open\n                                      mod_exit()\n                                        clear_debug_files()\n                                          debugfs_remove_recursive()\n                                          drain active operations\n                                      return from mod_exit()\n                                      free_module()\n                                        free the module image\n  close(fd)\n    full_proxy_release()\n      read real_fops->release -> UAF\n      fops_put(real_fops)\n        read real_fops->owner\n      access freed module memory\n\nEven though the table has no release callback, reading those fields\nis a use-after-free and can fault. The retained dentry keeps the\nproxy's bookkeeping alive, but does not retain the module storage.\n\nSet .owner to THIS_MODULE so the existing fops_get()/fops_put() pair\npins PCMTest until final release has finished accessing the table.\nNormal module unload is then blocked while any pattern file is open.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcmtest: Pin the module while pattern files are open\n\nThe fill_pattern_fops table must remain alive until the final release\nof each pattern debugfs file. It has no .owner, so the fops_get() call\nin full_proxy_open_regular() does not take a PCMTest module reference.\n\nWith snd-pcmtest loaded as a module, a user with permission to open a\nfill_patternN file and unload the module can retain the descriptor\nacross normal unload, provided no PCM file or other module reference\nprevents it. The following ordering is possible:\n\n  Pattern file user                   Module unload\n  -----------------                   -------------\n  open(fill_patternN)\n    full_proxy_open_regular()\n      fops_get(fill_pattern_fops)\n        owner == NULL: no module pin\n  keep the descriptor open\n                                      mod_exit()\n                                        clear_debug_files()\n                                          debugfs_remove_recursive()\n                                          drain active operations\n                                      return from mod_exit()\n                                      free_module()\n                                        free the module image\n  close(fd)\n    full_proxy_release()\n      read real_fops->release -> UAF\n      fops_put(real_fops)\n        read real_fops->owner\n      access freed module memory\n\nEven though the table has no release callback, reading those fields\nis a use-after-free and can fault. The retained dentry keeps the\nproxy's bookkeeping alive, but does not retain the module storage.\n\nSet .owner to THIS_MODULE so the existing fops_get()/fops_put() pair\npins PCMTest until final release has finished accessing the table.\nNormal module unload is then blocked while any pattern file is open.","source":"cvelist"}],"published":"2026-11-30T13:33:16.551Z","modified":"2026-11-30T14:18:50.910Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","fixed":"add182e88ecabe2c86f262182c9f7642311df097","status":"affected"},{"type":"git","introduced":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","fixed":"f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331","status":"affected"},{"type":"git","introduced":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","fixed":"891cbc7058b3d459b5d02002f6c8618c820b2306","status":"affected"},{"type":"git","introduced":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","fixed":"ee65450f168eca7367672885825bb9bff6670c17","status":"affected"},{"type":"git","introduced":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","fixed":"069003afab42b5a9394faa6985a3d76bd4700e72","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/add182e88ecabe2c86f262182c9f7642311df097","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/891cbc7058b3d459b5d02002f6c8618c820b2306","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee65450f168eca7367672885825bb9bff6670c17","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/069003afab42b5a9394faa6985a3d76bd4700e72","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139278","url":"https://www.cve.org/CVERecord?id=CVE-2026-139278","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:16.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139278","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139278","licence":"Public domain","modified":"2026-11-30T14:18:50.910Z"}],"updatedAt":"2026-11-30T14:33:00.158Z","epss":{"score":0.00201,"percentile":0.10475,"date":"2026-12-01T12:00:22.000Z"}}