CVE-2022-50284

Source
https://nvd.nist.gov/vuln/detail/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:20Z
Modified
2025-10-21T12:26:09.326471Z
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.

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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dc55e35f9e810f23dd69cfdc91a3d636023f57a2
Fixed
28dad915abe46d38c5799a0c8130e9a2a1540385
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dc55e35f9e810f23dd69cfdc91a3d636023f57a2
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

vanir_signatures

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2