# CVE-2022-50707: virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()

- Severity: not scored yet
- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-24T10:55:21.547Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

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

virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()

'vc_ctrl_req' is alloced in virtio_crypto_alg_skcipher_close_session(),
and should be freed in the invalid ctrl_status->status error handling
case. Otherwise there is a memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 4ee475e76b5ea8061970a7c867ffa5eedeb39580 before 79026a2d0a1b080257773d22a493f9bcab8c65be; from 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a before 67fb59ff1384e338679c0eb7a43c83ce8868c9fa; from 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a before 0871df190fe6723464efe0f493d476411616f553; from 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a before b1d65f717cd6305a396a8738e022c6f7c65cfbe8; 5.19 (not affected: before 5.19; from 6.0.19 up to 6.0.*; from 6.1.5 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/79026a2d0a1b080257773d22a493f9bcab8c65be>
- <https://git.kernel.org/stable/c/67fb59ff1384e338679c0eb7a43c83ce8868c9fa>
- <https://git.kernel.org/stable/c/0871df190fe6723464efe0f493d476411616f553>
- <https://git.kernel.org/stable/c/b1d65f717cd6305a396a8738e022c6f7c65cfbe8>

## Sources

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

---

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