{"api_version":"1","generated_at":"2026-12-01T13:02:58+00:00","cve":"CVE-2026-139647","urls":{"html":"https://cve.report/CVE-2026-139647","api":"https://cve.report/api/cve/CVE-2026-139647.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139647","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139647"},"summary":{"title":"crypto: qat - hold cfg->lock when accessing config sections","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - hold cfg->lock when accessing config sections\n\nadf_cfg_sec_find() walks the per-device section list without holding\ncfg->lock, and the returned section pointer is used later under the\nlock. A concurrent section deletion under cfg->lock\n(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on\nremoval) can free the section first, leading to a use-after-free.\n\nThe debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()\nwalks both the section list and each section's param_head under the\nglobal qat_cfg_read_lock mutex, not the per-device cfg->lock used by the\nadd and delete paths, so the two do not serialise. Updating an existing\nkey frees the old key_val under cfg->lock, so even a config write\nconcurrent with an open dev_cfg read can free an entry mid-walk, a wider\nwindow than section deletion alone.\n\nTake cfg->lock around the section lookup in adf_cfg_add_key_value_param()\nand around the lookup and insert in adf_cfg_section_add(), and use\ndown_read()/up_read(&cfg->lock) in the debugfs start/stop callbacks.\nRemove the now-unused qat_cfg_read_lock.\n\nWhile here, return -ENOENT rather than -EFAULT when the section is not\nfound; EFAULT (bad userspace address) is not meaningful for this case.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:48","updated_at":"2026-11-30 14:19:48"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1686fb8e8abbd3994952a7b3762683f86cc1d579","name":"https://git.kernel.org/stable/c/1686fb8e8abbd3994952a7b3762683f86cc1d579","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cb3a1364fed9ea7b063e3ae026177a145abb5940","name":"https://git.kernel.org/stable/c/cb3a1364fed9ea7b063e3ae026177a145abb5940","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0b3ae981c8f95f22f412d2f5933e453529a44ca8","name":"https://git.kernel.org/stable/c/0b3ae981c8f95f22f412d2f5933e453529a44ca8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6","name":"https://git.kernel.org/stable/c/7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139647","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139647","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 1686fb8e8abbd3994952a7b3762683f86cc1d579 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 0b3ae981c8f95f22f412d2f5933e453529a44ca8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d cb3a1364fed9ea7b063e3ae026177a145abb5940 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 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":["drivers/crypto/intel/qat/qat_common/adf_cfg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1686fb8e8abbd3994952a7b3762683f86cc1d579","status":"affected","version":"d8cba25d2c68992a6e7c1d329b690a9ebe01167d","versionType":"git"},{"lessThan":"7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6","status":"affected","version":"d8cba25d2c68992a6e7c1d329b690a9ebe01167d","versionType":"git"},{"lessThan":"0b3ae981c8f95f22f412d2f5933e453529a44ca8","status":"affected","version":"d8cba25d2c68992a6e7c1d329b690a9ebe01167d","versionType":"git"},{"lessThan":"cb3a1364fed9ea7b063e3ae026177a145abb5940","status":"affected","version":"d8cba25d2c68992a6e7c1d329b690a9ebe01167d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/crypto/intel/qat/qat_common/adf_cfg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.17"},{"lessThan":"3.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","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.12.120","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - hold cfg->lock when accessing config sections\n\nadf_cfg_sec_find() walks the per-device section list without holding\ncfg->lock, and the returned section pointer is used later under the\nlock. A concurrent section deletion under cfg->lock\n(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on\nremoval) can free the section first, leading to a use-after-free.\n\nThe debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()\nwalks both the section list and each section's param_head under the\nglobal qat_cfg_read_lock mutex, not the per-device cfg->lock used by the\nadd and delete paths, so the two do not serialise. Updating an existing\nkey frees the old key_val under cfg->lock, so even a config write\nconcurrent with an open dev_cfg read can free an entry mid-walk, a wider\nwindow than section deletion alone.\n\nTake cfg->lock around the section lookup in adf_cfg_add_key_value_param()\nand around the lookup and insert in adf_cfg_section_add(), and use\ndown_read()/up_read(&cfg->lock) in the debugfs start/stop callbacks.\nRemove the now-unused qat_cfg_read_lock.\n\nWhile here, return -ENOENT rather than -EFAULT when the section is not\nfound; EFAULT (bad userspace address) is not meaningful for this case."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:41.242Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1686fb8e8abbd3994952a7b3762683f86cc1d579"},{"url":"https://git.kernel.org/stable/c/7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6"},{"url":"https://git.kernel.org/stable/c/0b3ae981c8f95f22f412d2f5933e453529a44ca8"},{"url":"https://git.kernel.org/stable/c/cb3a1364fed9ea7b063e3ae026177a145abb5940"}],"title":"crypto: qat - hold cfg->lock when accessing config sections","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139647","datePublished":"2026-11-30T13:36:41.242Z","dateReserved":"2026-11-30T13:22:15.945Z","dateUpdated":"2026-11-30T13:36:41.242Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:48","lastModifiedDate":"2026-11-30 14:19:48","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139647","Ordinal":"1","Title":"crypto: qat - hold cfg->lock when accessing config sections","CVE":"CVE-2026-139647","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139647","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - hold cfg->lock when accessing config sections\n\nadf_cfg_sec_find() walks the per-device section list without holding\ncfg->lock, and the returned section pointer is used later under the\nlock. A concurrent section deletion under cfg->lock\n(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on\nremoval) can free the section first, leading to a use-after-free.\n\nThe debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()\nwalks both the section list and each section's param_head under the\nglobal qat_cfg_read_lock mutex, not the per-device cfg->lock used by the\nadd and delete paths, so the two do not serialise. Updating an existing\nkey frees the old key_val under cfg->lock, so even a config write\nconcurrent with an open dev_cfg read can free an entry mid-walk, a wider\nwindow than section deletion alone.\n\nTake cfg->lock around the section lookup in adf_cfg_add_key_value_param()\nand around the lookup and insert in adf_cfg_section_add(), and use\ndown_read()/up_read(&cfg->lock) in the debugfs start/stop callbacks.\nRemove the now-unused qat_cfg_read_lock.\n\nWhile here, return -ENOENT rather than -EFAULT when the section is not\nfound; EFAULT (bad userspace address) is not meaningful for this case.","Type":"Description","Title":"crypto: qat - hold cfg->lock when accessing config sections"}]}}}