{"api_version":"1","generated_at":"2026-12-01T14:01:17+00:00","cve":"CVE-2026-139278","urls":{"html":"https://cve.report/CVE-2026-139278","api":"https://cve.report/api/cve/CVE-2026-139278.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139278","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139278"},"summary":{"title":"ALSA: pcmtest: Pin the module while pattern files are open","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:50","updated_at":"2026-11-30 14:18:50"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331","name":"https://git.kernel.org/stable/c/f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/069003afab42b5a9394faa6985a3d76bd4700e72","name":"https://git.kernel.org/stable/c/069003afab42b5a9394faa6985a3d76bd4700e72","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/add182e88ecabe2c86f262182c9f7642311df097","name":"https://git.kernel.org/stable/c/add182e88ecabe2c86f262182c9f7642311df097","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ee65450f168eca7367672885825bb9bff6670c17","name":"https://git.kernel.org/stable/c/ee65450f168eca7367672885825bb9bff6670c17","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/891cbc7058b3d459b5d02002f6c8618c820b2306","name":"https://git.kernel.org/stable/c/891cbc7058b3d459b5d02002f6c8618c820b2306","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139278","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139278","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 315a3d57c64c55901d6fe5a5eef3b3e51d215381 add182e88ecabe2c86f262182c9f7642311df097 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 315a3d57c64c55901d6fe5a5eef3b3e51d215381 f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 315a3d57c64c55901d6fe5a5eef3b3e51d215381 891cbc7058b3d459b5d02002f6c8618c820b2306 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 315a3d57c64c55901d6fe5a5eef3b3e51d215381 ee65450f168eca7367672885825bb9bff6670c17 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 315a3d57c64c55901d6fe5a5eef3b3e51d215381 069003afab42b5a9394faa6985a3d76bd4700e72 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/drivers/pcmtest.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"add182e88ecabe2c86f262182c9f7642311df097","status":"affected","version":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","versionType":"git"},{"lessThan":"f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331","status":"affected","version":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","versionType":"git"},{"lessThan":"891cbc7058b3d459b5d02002f6c8618c820b2306","status":"affected","version":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","versionType":"git"},{"lessThan":"ee65450f168eca7367672885825bb9bff6670c17","status":"affected","version":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","versionType":"git"},{"lessThan":"069003afab42b5a9394faa6985a3d76bd4700e72","status":"affected","version":"315a3d57c64c55901d6fe5a5eef3b3e51d215381","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/drivers/pcmtest.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.5"},{"lessThan":"6.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:16.551Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/add182e88ecabe2c86f262182c9f7642311df097"},{"url":"https://git.kernel.org/stable/c/f19e1e41f1b9c24ae9600cc9a33e116c1ba7c331"},{"url":"https://git.kernel.org/stable/c/891cbc7058b3d459b5d02002f6c8618c820b2306"},{"url":"https://git.kernel.org/stable/c/ee65450f168eca7367672885825bb9bff6670c17"},{"url":"https://git.kernel.org/stable/c/069003afab42b5a9394faa6985a3d76bd4700e72"}],"title":"ALSA: pcmtest: Pin the module while pattern files are open","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139278","datePublished":"2026-11-30T13:33:16.551Z","dateReserved":"2026-11-30T13:22:15.924Z","dateUpdated":"2026-11-30T13:33:16.551Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:50","lastModifiedDate":"2026-11-30 14:18:50","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139278","Ordinal":"1","Title":"ALSA: pcmtest: Pin the module while pattern files are open","CVE":"CVE-2026-139278","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139278","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ALSA: pcmtest: Pin the module while pattern files are open"}]}}}