# CVE-2022-49566: crypto: qat - fix memory leak in RSA

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-02)
- Published: 2025-02-26T02:23:11.749Z
- Modified: 2026-06-17T05:18:28.090Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: qat - fix memory leak in RSA

When an RSA key represented in form 2 (as defined in PKCS #1 V2.1) is
used, some components of the private key persist even after the TFM is
released.
Replace the explicit calls to free the buffers in qat_rsa_exit_tfm()
with a call to qat_rsa_clear_ctx() which frees all buffers referenced in
the TFM context.

(As written by CVE List.)

## Affected

- Linux Linux: from 879f77e9071f029e1c9bd5a75814ecf51370f846 before a843925e0287eebb4aa808666bf22c664dfe4c53; from 879f77e9071f029e1c9bd5a75814ecf51370f846 before 0f967fdc09955221a1951a279481b0bf4d359941; from 879f77e9071f029e1c9bd5a75814ecf51370f846 before 80a52e1ee7757b742f96bfb0d58f0c14eb6583d0; 4.8 (not affected: before 4.8; from 5.15.58 up to 5.15.*; from 5.18.15 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.8 before 5.15.58; from 5.16 before 5.18.15

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a843925e0287eebb4aa808666bf22c664dfe4c53> (patch)
- <https://git.kernel.org/stable/c/0f967fdc09955221a1951a279481b0bf4d359941> (patch)
- <https://git.kernel.org/stable/c/80a52e1ee7757b742f96bfb0d58f0c14eb6583d0> (patch)

## Sources

- CVE List: [CVE-2022-49566](https://www.cve.org/CVERecord?id=CVE-2022-49566), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49566](https://nvd.nist.gov/vuln/detail/CVE-2022-49566), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49566 · Whole record: https://cve.day/CVE-2022-49566.json · Rebuilt by cve.day 2026-11-25T22:58:20.735Z
