# CVE-2022-50774: crypto: qat - fix DMA transfer direction

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T13:06:04.391Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 426d5bc089e7731e36b514d1beca19e777a2d653; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 1f1ab76e251521bd2fa5244473efcf663792745d; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 429348d4f675e9eb418d0829064c4d7d06bd66a3; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< c4c9d9edf4848aed89516b23b88950b194beff6a; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< cf5bb835b7c8a5fee7f26455099cca7feb57f5e9
- Anyone running Linux 3.17

## Description

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

## Affected and fixed versions

- Linux: \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 426d5bc089e7731e36b514d1beca19e777a2d653; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 1f1ab76e251521bd2fa5244473efcf663792745d; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 429348d4f675e9eb418d0829064c4d7d06bd66a3; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< c4c9d9edf4848aed89516b23b88950b194beff6a; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< cf5bb835b7c8a5fee7f26455099cca7feb57f5e9 (cvelist)
- Linux: 3.17 (cvelist)

## 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-2022-50774. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50774.md
Affected: Linux >= d370cec3219490656d72f5ae6e5df32c113c5a44, < 426d5bc089e7731e36b514d1beca19e777a2d653; >= d370cec3219490656d72f5ae6e5df32c113c5a44, < 1f1ab76e251521bd2fa5244473efcf663792745d; >= d370cec3219490656d72f5ae6e5df32c113c5a44, < 429348d4f675e9eb418d0829064c4d7d06bd66a3; >= d370cec3219490656d72f5a…
Fixed in: Linux 426d5bc089e7731e36b514d1beca19e777a2d653, Linux 1f1ab76e251521bd2fa5244473efcf663792745d, Linux 429348d4f675e9eb418d0829064c4d7d06bd66a3

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-2022-50774 being exploited?

There is no confirmed exploitation: CVE-2022-50774 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50774?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50774?

Linux \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 426d5bc089e7731e36b514d1beca19e777a2d653; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 1f1ab76e251521bd2fa5244473efcf663792745d; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< 429348d4f675e9eb418d0829064c4d7d06bd66a3; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< c4c9d9edf4848aed89516b23b88950b194beff6a; \>= d370cec3219490656d72f5ae6e5df32c113c5a44, \< cf5bb835b7c8a5fee7f26455099cca7feb57f5e9; Linux 3.17.

### Is there a fix for CVE-2022-50774?

Yes. Fixed in Linux 426d5bc089e7731e36b514d1beca19e777a2d653, Linux 1f1ab76e251521bd2fa5244473efcf663792745d, Linux 429348d4f675e9eb418d0829064c4d7d06bd66a3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50774?

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/426d5bc089e7731e36b514d1beca19e777a2d653>
- other: <https://git.kernel.org/stable/c/1f1ab76e251521bd2fa5244473efcf663792745d>
- other: <https://git.kernel.org/stable/c/429348d4f675e9eb418d0829064c4d7d06bd66a3>
- other: <https://git.kernel.org/stable/c/c4c9d9edf4848aed89516b23b88950b194beff6a>
- other: <https://git.kernel.org/stable/c/cf5bb835b7c8a5fee7f26455099cca7feb57f5e9>

## 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-2022-50774>

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