CVE-2022-50748

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50748
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50748.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50748
Downstream
Published
2025-12-24T13:05:44.045Z
Modified
2025-12-24T20:23:11.641787Z
Summary
ipc: mqueue: fix possible memory leak in init_mqueue_fs()
Details

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

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

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. retiremqsysctls need to be called when initmqueuefs fails after setupmqsysctls.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50748.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dc55e35f9e810f23dd69cfdc91a3d636023f57a2
Fixed
a1f321051e0dcf2415fb94f81fdc5044cad4c1d6
Fixed
55b3709c6d68e32cd3fdd2a630b1f4c97d51b17c
Fixed
c579d60f0d0cd87552f64fdebe68b5d941d20309

Affected versions

v5.*

v5.17
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.10
v5.19.11
v5.19.12
v5.19.13
v5.19.14
v5.19.15
v5.19.16
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7
v5.19.8
v5.19.9

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50748.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50748.json"