crypto: qat - resolve race condition during AER recovery

Summary

CVECVE-2024-26974
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-05-01 06:15:14 UTC
Updated2026-05-12 12:16:28 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: crypto: qat - resolve race condition during AER recovery During the PCI AER system's error recovery process, the kernel driver may encounter a race condition with freeing the reset_data structure's memory. If the device restart will take more than 10 seconds the function scheduling that restart will exit due to a timeout, and the reset_data structure will be freed. However, this data structure is used for completion notification after the restart is completed, which leads to a UAF bug. This results in a KFENCE bug notice. BUG: KFENCE: use-after-free read in adf_device_reset_worker+0x38/0xa0 [intel_qat] Use-after-free read at 0x00000000bc56fddf (in kfence-#142): adf_device_reset_worker+0x38/0xa0 [intel_qat] process_one_work+0x173/0x340 To resolve this race condition, the memory associated to the container of the work_struct is freed on the worker if the timeout expired, otherwise on the function that schedules the worker. The timeout detection can be done by checking if the caller is still waiting for completion or not by using completion_done() function.

Risk And Classification

Primary CVSS: v3.1 7 HIGH from [email protected]

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-367 | CWE-416

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d daba62d9eeddcc5b1081be7d348ca836c83c59d7 git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 8e81cd58aee14a470891733181a47d123193ba81 git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d d03092550f526a79cf1ade7f0dfa74906f39eb71 git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 4ae5a97781ce7d6ecc9c7055396535815b64ca4f git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 226fc408c5fcd23cc4186f05ea3a09a7a9aef2f7 git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 8a5a7611ccc7b1fba8d933a9f22a2e76859d94dc git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 0c2cf5142bfb634c0ef0a1a69cdf37950747d0be git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d bb279ead42263e9fb09480f02a4247b2c287d828 git Not specified
CNA Linux Linux affected d8cba25d2c68992a6e7c1d329b690a9ebe01167d 7d42e097607c4d246d99225bf2b195b6167a210c git Not specified
CNA Linux Linux affected 3.17 Not specified
CNA Linux Linux unaffected 3.17 semver Not specified
CNA Linux Linux unaffected 4.19.312 4.19.* semver Not specified
CNA Linux Linux unaffected 5.4.274 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.215 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.154 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.84 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.24 6.6.* semver Not specified
CNA Linux Linux unaffected 6.7.12 6.7.* semver Not specified
CNA Linux Linux unaffected 6.8.3 6.8.* semver Not specified
CNA Linux Linux unaffected 6.9 * original_commit_for_fix Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified

References

ReferenceSourceLinkTags
lists.debian.org/debian-lts-announce/2024/06/msg00017.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
git.kernel.org/stable/c/0c2cf5142bfb634c0ef0a1a69cdf37950747d0be af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/4ae5a97781ce7d6ecc9c7055396535815b64ca4f af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/bb279ead42263e9fb09480f02a4247b2c287d828 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/d03092550f526a79cf1ade7f0dfa74906f39eb71 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/daba62d9eeddcc5b1081be7d348ca836c83c59d7 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/7d42e097607c4d246d99225bf2b195b6167a210c af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/8e81cd58aee14a470891733181a47d123193ba81 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/8a5a7611ccc7b1fba8d933a9f22a2e76859d94dc af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/226fc408c5fcd23cc4186f05ea3a09a7a9aef2f7 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2024/06/msg00020.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report