CVE-2022-50774 json
crypto: qat - fix DMA transfer direction
published 2025-12-24 10 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55787
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - fix DMA transfer direction
When CONFIG_DMA_API_DEBUG is selected, while running the crypto self test on the QAT crypto algorithms, the function add_dma_entry() reports a warning similar to the one below, saying that overlapping mappings are not supported. This occurs in tests where the input and the output scatter list point to the same buffers (i.e. two different scatter lists which point to the same chunks of memory).
The logic that implements the mapping uses the flag DMA_BIDIRECTIONAL for both the input and the output scatter lists which leads to overlapped write mappings. These are not supported by the DMA layer.
Fix by specifying the correct DMA transfer directions when mapping buffers. For in-place operations where the input scatter list matches the output scatter list, buffers are mapped once with DMA_BIDIRECTIONAL, otherwise input buffers are mapped using the flag DMA_TO_DEVICE and output buffers are mapped with DMA_FROM_DEVICE. Overlapping a read mapping with a write mapping is a valid case in dma-coherent devices like QAT. The function that frees and unmaps the buffers, qat_alg_free_bufl() has been changed accordingly to the changes to the mapping function.
DMA-API: 4xxx 0000:06:00.0: cacheline tracking EEXIST, overlapping mappings aren't supported WARNING: CPU: 53 PID: 4362 at kernel/dma/debug.c:570 add_dma_entry+0x1e9/0x270 ... Call Trace: dma_map_page_attrs+0x82/0x2d0 ? preempt_count_add+0x6a/0xa0 qat_alg_sgl_to_bufl+0x45b/0x990 [intel_qat] qat_alg_aead_dec+0x71/0x250 [intel_qat] crypto_aead_decrypt+0x3d/0x70 test_aead_vec_cfg+0x649/0x810 ? number+0x310/0x3a0 ? vsnprintf+0x2a3/0x550 ? scnprintf+0x42/0x70 ? valid_sg_divisions.constprop.0+0x86/0xa0 ? test_aead_vec+0xdf/0x120 test_aead_vec+0xdf/0x120 alg_test_aead+0x185/0x400 alg_test+0x3d8/0x500 ? crypto_acomp_scomp_free_ctx+0x30/0x30 ? __schedule+0x32a/0x12a0 ? ttwu_queue_wakelist+0xbf/0x110 ? _raw_spin_unlock_irqrestore+0x23/0x40 ? try_to_wake_up+0x83/0x570 ? _raw_spin_unlock_irqrestore+0x23/0x40 ? __set_cpus_allowed_ptr_locked+0xea/0x1b0 ? crypto_acomp_scomp_free_ctx+0x30/0x30 cryptomgr_test+0x27/0x50 kthread+0xe6/0x110 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x1f/0x30
Patch / fix
- Linux Linux 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1
- linux Debian 14, Debian 13, Debian 12 6.0.3-1
debian advisories DEBIAN-CVE-2022-50774
- linux Ubuntu 22.04 LTS 5.15.0-60.66
- linux-aws Ubuntu 22.04 LTS 5.15.0-1030.34
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1029.36
- linux-gke Ubuntu 22.04 LTS 5.15.0-1027.32
- linux-ibm Ubuntu 22.04 LTS 5.15.0-1025.28
- linux-kvm Ubuntu 22.04 LTS 5.15.0-1028.33
- linux-azure Ubuntu 22.04 LTS 5.15.0-1033.40
- linux-gkeop Ubuntu 22.04 LTS 5.15.0-1015.19
ubuntu advisories UBUNTU-CVE-2022-50774
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- perf RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- bpftool RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- kernel-core RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- kernel-tools RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- python3-perf RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- kernel-modules RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
- kernel-zfcpdump RHEL 9.0 EUS 5.14.0-70.43.1.el9_0
red hat advisories RHSA-2023:0512
- kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.194.1
- kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +5 more 5.14.21-150400.24.194.1
- kernel-obs-build SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-default-base SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +3 more 5.14.21-150400.24.194.1.150400.24.98.3
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.142.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.142.1
suse advisories SUSE-SU-2026:0617-1SUSE-SU-2026:0411-1SUSE-SU-2026:0317-1SUSE-SU-2026:0263-1
- git.kernel.org/stable/c/426d5bc089e7731e36b514d1beca19e777a2d653 commit
- git.kernel.org/stable/c/1f1ab76e251521bd2fa5244473efcf663792745d commit
- git.kernel.org/stable/c/429348d4f675e9eb418d0829064c4d7d06bd66a3 commit
- git.kernel.org/stable/c/c4c9d9edf4848aed89516b23b88950b194beff6a commit
- git.kernel.org/stable/c/cf5bb835b7c8a5fee7f26455099cca7feb57f5e9 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50774 updated cvss 5.3
kernel: crypto: qat - fix DMA transfer direction
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat CodeReady Linux Builder EUS (v.9.0) kernel-debuginfo-common-s390x 5.14.0-70.43.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.43.1.el9_0, kernel-debuginfo-common-aarch64 5.14.0-70.43.1.el9_0, kernel-debuginfo-common-ppc64le 5.14.0-70.43.1.el9_0 Red Hat Enterprise Linux AppStream EUS (v.9.0) perf 5.14.0-70.43.1.el9_0, kernel-devel-matched 5.14.0-70.43.1.el9_0, kernel-debug-devel-matched 5.14.0-70.43.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.43.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.43.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.43.1.el9_0, +2 more Red Hat Enterprise Linux BaseOS EUS (v.9.0) kernel 5.14.0-70.43.1.el9_0, bpftool 5.14.0-70.43.1.el9_0, kernel-core 5.14.0-70.43.1.el9_0, kernel-tools 5.14.0-70.43.1.el9_0, python3-perf 5.14.0-70.43.1.el9_0, kernel-modules 5.14.0-70.43.1.el9_0, +14 morefixed: vendor fix RHSA-2023:0512
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/426d5bc089e7731e36b514d1beca19e777a2d653
- git.kernel.org /stable/c/1f1ab76e251521bd2fa5244473efcf663792745d
- git.kernel.org /stable/c/429348d4f675e9eb418d0829064c4d7d06bd66a3
- git.kernel.org /stable/c/c4c9d9edf4848aed89516b23b88950b194beff6a
- git.kernel.org /stable/c/cf5bb835b7c8a5fee7f26455099cca7feb57f5e9
Sources
- CVE List CVE-2022-50774
- NVD CVE-2022-50774
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.