# CVE-2026-139647: crypto: qat - hold cfg->lock when accessing config sections

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:41.242Z
- Modified: 2026-11-30T14:19:48.323Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: qat - hold cfg->lock when accessing config sections

adf_cfg_sec_find() walks the per-device section list without holding
cfg->lock, and the returned section pointer is used later under the
lock. A concurrent section deletion under cfg->lock
(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on
removal) can free the section first, leading to a use-after-free.

The debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()
walks both the section list and each section's param_head under the
global qat_cfg_read_lock mutex, not the per-device cfg->lock used by the
add and delete paths, so the two do not serialise. Updating an existing
key frees the old key_val under cfg->lock, so even a config write
concurrent with an open dev_cfg read can free an entry mid-walk, a wider
window than section deletion alone.

Take cfg->lock around the section lookup in adf_cfg_add_key_value_param()
and around the lookup and insert in adf_cfg_section_add(), and use
down_read()/up_read(&cfg->lock) in the debugfs start/stop callbacks.
Remove the now-unused qat_cfg_read_lock.

While here, return -ENOENT rather than -EFAULT when the section is not
found; EFAULT (bad userspace address) is not meaningful for this case.

(As written by CVE List.)

## Affected

- Linux Linux: from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 1686fb8e8abbd3994952a7b3762683f86cc1d579; from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6; from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 0b3ae981c8f95f22f412d2f5933e453529a44ca8; from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before cb3a1364fed9ea7b063e3ae026177a145abb5940; 3.17 (not affected: before 3.17; from 6.12.120 up to 6.12.*; from 6.18.66 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/1686fb8e8abbd3994952a7b3762683f86cc1d579>
- <https://git.kernel.org/stable/c/7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6>
- <https://git.kernel.org/stable/c/0b3ae981c8f95f22f412d2f5933e453529a44ca8>
- <https://git.kernel.org/stable/c/cb3a1364fed9ea7b063e3ae026177a145abb5940>

## Sources

- CVE List: [CVE-2026-139647](https://www.cve.org/CVERecord?id=CVE-2026-139647), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139647](https://nvd.nist.gov/vuln/detail/CVE-2026-139647), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139647 · Whole record: https://cve.day/CVE-2026-139647.json · Rebuilt by cve.day 2026-11-30T14:33:38.519Z
