CVE-2022-50284

Source
https://cve.org/CVERecord?id=CVE-2022-50284
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50284.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50284
Downstream
Published
2025-09-15T14:21:20.612Z
Modified
2026-03-11T10:28:36.620186Z
Summary
ipc: fix memory leak in init_mqueue_fs()
Details

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

ipc: fix memory leak in initmqueuefs()

When setupmqsysctls() failed in initmqueuefs(), mqueueinodecachep is not released. In order to fix this issue, the release path is reordered.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50284.json"
}
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
86273624a68d07f129dc182b8394f487ed4de484
Fixed
28dad915abe46d38c5799a0c8130e9a2a1540385
Fixed
12b677f2c697d61e5ddbcb6c1650050a39392f54

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
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.10
v6.0.11
v6.0.12
v6.0.13
v6.0.14
v6.0.15
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50284.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "ipc/mqueue.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28dad915abe46d38c5799a0c8130e9a2a1540385",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "297507672192662520203884598717559590523",
                "127023657864815297141984936079063931378",
                "161448679472880823176165142271814178277",
                "135874269952955119962433181802364444909",
                "172542656738183637218309477095849882501",
                "128318469271665389998373801816256744637",
                "330410440652132040024661327031454767051",
                "165533701917351891785324122500821410133",
                "154631554222899523445182664297307992071"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-50284-174b3b5b",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "ipc/mqueue.c",
            "function": "init_mqueue_fs"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28dad915abe46d38c5799a0c8130e9a2a1540385",
        "deprecated": false,
        "digest": {
            "function_hash": "255998997971388443669243307589620540803",
            "length": 643.0
        },
        "id": "CVE-2022-50284-7fd65c15",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "ipc/mqueue.c",
            "function": "init_mqueue_fs"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@12b677f2c697d61e5ddbcb6c1650050a39392f54",
        "deprecated": false,
        "digest": {
            "function_hash": "255998997971388443669243307589620540803",
            "length": 643.0
        },
        "id": "CVE-2022-50284-cbdf8ba0",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "ipc/mqueue.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@12b677f2c697d61e5ddbcb6c1650050a39392f54",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "297507672192662520203884598717559590523",
                "127023657864815297141984936079063931378",
                "161448679472880823176165142271814178277",
                "135874269952955119962433181802364444909",
                "172542656738183637218309477095849882501",
                "128318469271665389998373801816256744637",
                "330410440652132040024661327031454767051",
                "165533701917351891785324122500821410133",
                "154631554222899523445182664297307992071"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-50284-d9f53ac6",
        "signature_type": "Line"
    }
]