# CVE-2022-50395: integrity: Fix memory leakage in keyring allocation error path

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:13.732Z
- Modified: 2026-06-17T05:23:26.687Z
- 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:

integrity: Fix memory leakage in keyring allocation error path

Key restriction is allocated in integrity_init_keyring(). However, if
keyring allocation failed, it is not freed, causing memory leaks.

(As written by CVE List.)

## Affected

- Linux Linux: from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before 9b7c44885a07c5ee7f9bf3aa3c9c72fb110c8d22; from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before 3bd737289c26be3cee4b9afaf61ef784a2af9d6e; from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before 29d6c69ba4b96a1de0376e44e5f8b38b13ec8803; from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before 57e49ad12f8f5df0c48e1710c54b147a05a10c32; from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before c591c48842f08d30ec6b8416757831985ed9a315; from 2b6aa412ff23a02ac777ad307249c60a839cfd25 before 39419ef7af0916cc3620ecf1ed42d29659109bf3; 4.12 (not affected: before 4.12; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 4.12 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## 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/9b7c44885a07c5ee7f9bf3aa3c9c72fb110c8d22> (patch)
- <https://git.kernel.org/stable/c/3bd737289c26be3cee4b9afaf61ef784a2af9d6e> (patch)
- <https://git.kernel.org/stable/c/29d6c69ba4b96a1de0376e44e5f8b38b13ec8803> (patch)
- <https://git.kernel.org/stable/c/57e49ad12f8f5df0c48e1710c54b147a05a10c32> (patch)
- <https://git.kernel.org/stable/c/c591c48842f08d30ec6b8416757831985ed9a315> (patch)
- <https://git.kernel.org/stable/c/39419ef7af0916cc3620ecf1ed42d29659109bf3> (patch)

## Sources

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

---

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