blob: 6790d5a95405649b53158079dfcd79ba7d397ac6 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-39493: crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
Using completion_done to determine whether the caller has gone
away only works after a complete call. Furthermore it's still
possible that the caller has not yet called wait_for_completion,
resulting in another potential UAF.
Fix this by making the caller use cancel_work_sync and then freeing
the memory safely.
The Linux kernel CVE team has assigned CVE-2024-39493 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.19.312 with commit daba62d9eeddcc5b1081be7d348ca836c83c59d7 and fixed in 4.19.316 with commit 0ce5964b82f212f4df6a9813f09a0b5de15bd9c8
Issue introduced in 5.4.274 with commit 8e81cd58aee14a470891733181a47d123193ba81 and fixed in 5.4.278 with commit 6396b33e98c096bff9c253ed49c008247963492a
Issue introduced in 5.10.215 with commit d03092550f526a79cf1ade7f0dfa74906f39eb71 and fixed in 5.10.219 with commit a718b6d2a329e069b27d9049a71be5931e71d960
Issue introduced in 5.15.154 with commit 4ae5a97781ce7d6ecc9c7055396535815b64ca4f and fixed in 5.15.161 with commit 3fb4601e0db10d4fe25e46f3fa308d40d37366bd
Issue introduced in 6.1.84 with commit 226fc408c5fcd23cc4186f05ea3a09a7a9aef2f7 and fixed in 6.1.94 with commit e7428e7e3fe94a5089dc12ffe5bc31574d2315ad
Issue introduced in 6.6.24 with commit 8a5a7611ccc7b1fba8d933a9f22a2e76859d94dc and fixed in 6.6.34 with commit c2d443aa1ae3175c13a665f3a24b8acd759ce9c3
Issue introduced in 6.9 with commit 7d42e097607c4d246d99225bf2b195b6167a210c and fixed in 6.9.5 with commit d0fd124972724cce0d48b9865ce3e273ef69e246
Issue introduced in 6.9 with commit 7d42e097607c4d246d99225bf2b195b6167a210c and fixed in 6.10 with commit d3b17c6d9dddc2db3670bc9be628b122416a3d26
Issue introduced in 6.7.12 with commit 0c2cf5142bfb634c0ef0a1a69cdf37950747d0be
Issue introduced in 6.8.3 with commit bb279ead42263e9fb09480f02a4247b2c287d828
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-39493
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/crypto/intel/qat/qat_common/adf_aer.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/0ce5964b82f212f4df6a9813f09a0b5de15bd9c8
https://git.kernel.org/stable/c/6396b33e98c096bff9c253ed49c008247963492a
https://git.kernel.org/stable/c/a718b6d2a329e069b27d9049a71be5931e71d960
https://git.kernel.org/stable/c/3fb4601e0db10d4fe25e46f3fa308d40d37366bd
https://git.kernel.org/stable/c/e7428e7e3fe94a5089dc12ffe5bc31574d2315ad
https://git.kernel.org/stable/c/c2d443aa1ae3175c13a665f3a24b8acd759ce9c3
https://git.kernel.org/stable/c/d0fd124972724cce0d48b9865ce3e273ef69e246
https://git.kernel.org/stable/c/d3b17c6d9dddc2db3670bc9be628b122416a3d26