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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:41.242Z
- **Modified:** 2026-11-30T14:19:48.323Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access can trigger a use-after-free in the Linux kernel's Intel QAT crypto driver configuration code by racing section deletion against lookups.

## Who should check

- Anyone running Linux \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 1686fb8e8abbd3994952a7b3762683f86cc1d579; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 0b3ae981c8f95f22f412d2f5933e453529a44ca8; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< cb3a1364fed9ea7b063e3ae026177a145abb5940
- Anyone running Linux 3.17

## 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.

## Affected and fixed versions

- Linux: \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 1686fb8e8abbd3994952a7b3762683f86cc1d579; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 0b3ae981c8f95f22f412d2f5933e453529a44ca8; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< cb3a1364fed9ea7b063e3ae026177a145abb5940 (cvelist)
- Linux: 3.17 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139647. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139647.md
Affected: Linux >= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, < 1686fb8e8abbd3994952a7b3762683f86cc1d579; >= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, < 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6; >= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, < 0b3ae981c8f95f22f412d2f5933e453529a44ca8; >= d8cba25d2c68992a6e7c1d3…
Fixed in: Linux 1686fb8e8abbd3994952a7b3762683f86cc1d579, Linux 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6, Linux 0b3ae981c8f95f22f412d2f5933e453529a44ca8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139647 being exploited?

There is no confirmed exploitation: CVE-2026-139647 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139647?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139647?

Linux \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 1686fb8e8abbd3994952a7b3762683f86cc1d579; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< 0b3ae981c8f95f22f412d2f5933e453529a44ca8; \>= d8cba25d2c68992a6e7c1d329b690a9ebe01167d, \< cb3a1364fed9ea7b063e3ae026177a145abb5940; Linux 3.17.

### Is there a fix for CVE-2026-139647?

Yes. Fixed in Linux 1686fb8e8abbd3994952a7b3762683f86cc1d579, Linux 7eb8b19a140ac4feeb0acb2b3e7077fc8c5fbef6, Linux 0b3ae981c8f95f22f412d2f5933e453529a44ca8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139647?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139647>

HTML: <https://flawdb.com/CVE-2026-139647> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139647>
