# CVE-2022-50748: ipc: mqueue: fix possible memory leak in init_mqueue_fs()

- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-12-24T13:05:44.045Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

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

ipc: mqueue: fix possible memory leak in init_mqueue_fs()

commit db7cfc380900 ("ipc: Free mq_sysctls if ipc namespace creation
failed")

Here's a similar memory leak to the one fixed by the patch above.
retire_mq_sysctls need to be called when init_mqueue_fs fails after
setup_mq_sysctls.

(As written by CVE List.)

## Affected

- Linux Linux: from dc55e35f9e810f23dd69cfdc91a3d636023f57a2 before a1f321051e0dcf2415fb94f81fdc5044cad4c1d6; from dc55e35f9e810f23dd69cfdc91a3d636023f57a2 before 55b3709c6d68e32cd3fdd2a630b1f4c97d51b17c; from dc55e35f9e810f23dd69cfdc91a3d636023f57a2 before c579d60f0d0cd87552f64fdebe68b5d941d20309; 5.19 (not affected: before 5.19; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/a1f321051e0dcf2415fb94f81fdc5044cad4c1d6>
- <https://git.kernel.org/stable/c/55b3709c6d68e32cd3fdd2a630b1f4c97d51b17c>
- <https://git.kernel.org/stable/c/c579d60f0d0cd87552f64fdebe68b5d941d20309>

## Sources

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

---

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