{"id":"AZL-117268","summary":"CVE-2026-139647 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - hold cfg-\u003elock when accessing config sections\n\nadf_cfg_sec_find() walks the per-device section list without holding\ncfg-\u003elock, and the returned section pointer is used later under the\nlock. A concurrent section deletion under cfg-\u003elock\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-\u003elock used by the\nadd and delete paths, so the two do not serialise. Updating an existing\nkey frees the old key_val under cfg-\u003elock, 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-\u003elock 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-\u003elock) 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.","modified":"2026-12-01T14:17:41.680938841Z","published":"2026-11-30T14:19:48Z","upstream":["CVE-2026-139647"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139647"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117268.json"}}],"schema_version":"1.9.2"}