PT-2026-163688
CVE-2026-139647
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾