CVE-2022-50263

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50263
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50263.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50263
Downstream
Published
2025-09-15T14:20:59Z
Modified
2025-10-16T07:22:51.817981Z
Summary
vdpasim: fix memory leak when freeing IOTLBs
Details

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

vdpasim: fix memory leak when freeing IOTLBs

After commit bda324fd037a ("vdpasim: control virtqueue support"), vdpasim->iommu became an array of IOTLB, so we should clean the mappings of each free one by one instead of just deleting the ranges in the first IOTLB which may leak maps.

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
bda324fd037a6b0d44da5699574ce741ca161bc4
Fixed
54b210c90d2803a9f1c8fd2f0d08e90172e9a06d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bda324fd037a6b0d44da5699574ce741ca161bc4
Fixed
16b22e27fba6fd816d0dcb98f42cc71f0836c27e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bda324fd037a6b0d44da5699574ce741ca161bc4
Fixed
0b7a04a30eef20e6b24926a45c0ce7906ae85bd6

Affected versions

v5.*

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.16
v6.0.17
v6.0.18
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
v6.1.2
v6.1.3
v6.1.4
v6.2-rc1

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "function_hash": "333918264336712517480867878513633913265",
            "length": 456.0
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-1105d989",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54b210c90d2803a9f1c8fd2f0d08e90172e9a06d",
        "target": {
            "function": "vdpasim_free",
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "function_hash": "333918264336712517480867878513633913265",
            "length": 456.0
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-3bb19ffc",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b7a04a30eef20e6b24926a45c0ce7906ae85bd6",
        "target": {
            "function": "vdpasim_free",
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "function_hash": "333918264336712517480867878513633913265",
            "length": 456.0
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-3bc29fae",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16b22e27fba6fd816d0dcb98f42cc71f0836c27e",
        "target": {
            "function": "vdpasim_free",
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "57380116063989674936659022585566995665",
                "192551892348273382062178590262957707594",
                "295285049557493632789870894104098633922",
                "265754374884052691363827184306977621432"
            ]
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-63ba6031",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54b210c90d2803a9f1c8fd2f0d08e90172e9a06d",
        "target": {
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "57380116063989674936659022585566995665",
                "192551892348273382062178590262957707594",
                "295285049557493632789870894104098633922",
                "265754374884052691363827184306977621432"
            ]
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-7f04be45",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16b22e27fba6fd816d0dcb98f42cc71f0836c27e",
        "target": {
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "57380116063989674936659022585566995665",
                "192551892348273382062178590262957707594",
                "295285049557493632789870894104098633922",
                "265754374884052691363827184306977621432"
            ]
        },
        "signature_version": "v1",
        "id": "CVE-2022-50263-83f79efd",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b7a04a30eef20e6b24926a45c0ce7906ae85bd6",
        "target": {
            "file": "drivers/vdpa/vdpa_sim/vdpa_sim.c"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.0.19
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.5