GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2022-50025 (GCVE-0-2022-50025)

Vulnerability from cvelistv5 – Published: 2025-06-18 11:01 – Updated: 2026-05-11 19:11
VLAI
Title
cxl: Fix a memory leak in an error handling path
Summary
In the Linux kernel, the following vulnerability has been resolved: cxl: Fix a memory leak in an error handling path A bitmap_zalloc() must be balanced by a corresponding bitmap_free() in the error handling path of afu_allocate_irqs().
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < c2c7a29f99788e9e5dfe41d16868ea33da7cc235 (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < 6544ff559315498ad6c0a311359ca44987f9ca07 (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < 89d51dc6878c47b6400922fac21b6a33f9d1a588 (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < 695af60af755873399ce01cb97176768828bc1fd (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < 4be138bcd6d68cec0ce47051b117541061f5141a (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < addff638c41753639368c252d0c5ba0d8fe9ed97 (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < c2557780ee7818b701681c226fa4cb7c0b171665 (git)
Affected: 80fa93fce37d3490f4bb0da8a5b239a6745bc744 , < 3a15b45b5454da862376b5d69a4967f5c6fa1368 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.19
Unaffected: 0 , < 3.19 (semver)
Unaffected: 4.9.326 , ≤ 4.9.* (semver)
Unaffected: 4.14.291 , ≤ 4.14.* (semver)
Unaffected: 4.19.256 , ≤ 4.19.* (semver)
Unaffected: 5.4.211 , ≤ 5.4.* (semver)
Unaffected: 5.10.138 , ≤ 5.10.* (semver)
Unaffected: 5.15.63 , ≤ 5.15.* (semver)
Unaffected: 5.19.4 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/cxl/irq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c2c7a29f99788e9e5dfe41d16868ea33da7cc235",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "6544ff559315498ad6c0a311359ca44987f9ca07",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "89d51dc6878c47b6400922fac21b6a33f9d1a588",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "695af60af755873399ce01cb97176768828bc1fd",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "4be138bcd6d68cec0ce47051b117541061f5141a",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "addff638c41753639368c252d0c5ba0d8fe9ed97",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "c2557780ee7818b701681c226fa4cb7c0b171665",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            },
            {
              "lessThan": "3a15b45b5454da862376b5d69a4967f5c6fa1368",
              "status": "affected",
              "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/cxl/irq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.19"
            },
            {
              "lessThan": "3.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.326",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.256",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.211",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.138",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.326",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.291",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.256",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.211",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.138",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.63",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.4",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: Fix a memory leak in an error handling path\n\nA bitmap_zalloc() must be balanced by a corresponding bitmap_free() in the\nerror handling path of afu_allocate_irqs()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:11:19.747Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c2c7a29f99788e9e5dfe41d16868ea33da7cc235"
        },
        {
          "url": "https://git.kernel.org/stable/c/6544ff559315498ad6c0a311359ca44987f9ca07"
        },
        {
          "url": "https://git.kernel.org/stable/c/89d51dc6878c47b6400922fac21b6a33f9d1a588"
        },
        {
          "url": "https://git.kernel.org/stable/c/695af60af755873399ce01cb97176768828bc1fd"
        },
        {
          "url": "https://git.kernel.org/stable/c/4be138bcd6d68cec0ce47051b117541061f5141a"
        },
        {
          "url": "https://git.kernel.org/stable/c/addff638c41753639368c252d0c5ba0d8fe9ed97"
        },
        {
          "url": "https://git.kernel.org/stable/c/c2557780ee7818b701681c226fa4cb7c0b171665"
        },
        {
          "url": "https://git.kernel.org/stable/c/3a15b45b5454da862376b5d69a4967f5c6fa1368"
        }
      ],
      "title": "cxl: Fix a memory leak in an error handling path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50025",
    "datePublished": "2025-06-18T11:01:28.816Z",
    "dateReserved": "2025-06-18T10:57:27.394Z",
    "dateUpdated": "2026-05-11T19:11:19.747Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50025",
      "date": "2026-09-20",
      "epss": "0.00189",
      "percentile": "0.08842"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/misc/cxl/irq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "c2c7a29f99788e9e5dfe41d16868ea33da7cc235",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6544ff559315498ad6c0a311359ca44987f9ca07",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "89d51dc6878c47b6400922fac21b6a33f9d1a588",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "695af60af755873399ce01cb97176768828bc1fd",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4be138bcd6d68cec0ce47051b117541061f5141a",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "addff638c41753639368c252d0c5ba0d8fe9ed97",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c2557780ee7818b701681c226fa4cb7c0b171665",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3a15b45b5454da862376b5d69a4967f5c6fa1368",
                    "status": "affected",
                    "version": "80fa93fce37d3490f4bb0da8a5b239a6745bc744",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/misc/cxl/irq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.19"
                  },
                  {
                    "lessThan": "3.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.9.*",
                    "status": "unaffected",
                    "version": "4.9.326",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.291",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.256",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.211",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.138",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.19.*",
                    "status": "unaffected",
                    "version": "5.19.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.0",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "249C0E20-103C-48E5-B282-031C9CE30094",
                    "versionEndExcluding": "4.9.326",
                    "versionStartIncluding": "3.19",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "3BBC7E43-6161-4F21-977C-5BB7792C6C94",
                    "versionEndExcluding": "4.14.291",
                    "versionStartIncluding": "4.10",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6C47CDE3-B039-4AE5-B8E4-1DC820E473FF",
                    "versionEndExcluding": "4.19.256",
                    "versionStartIncluding": "4.15",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "B1C63D19-C08C-4308-A848-B2523C9275BD",
                    "versionEndExcluding": "5.4.211",
                    "versionStartIncluding": "4.20",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "445ACC04-A2BA-4176-B4C9-CA4AA59096D2",
                    "versionEndExcluding": "5.10.138",
                    "versionStartIncluding": "5.5",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "D5744A03-DA40-4A78-9063-13179361DC6D",
                    "versionEndExcluding": "5.15.63",
                    "versionStartIncluding": "5.11",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "0E669300-DA42-4ACD-86D8-68BE5F29FB88",
                    "versionEndExcluding": "5.19.4",
                    "versionStartIncluding": "5.16",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: Fix a memory leak in an error handling path\n\nA bitmap_zalloc() must be balanced by a corresponding bitmap_free() in the\nerror handling path of afu_allocate_irqs()."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cxl: Se corrige una p\u00e9rdida de memoria en una ruta de manejo de errores. Un bitmap_zalloc() debe equilibrarse con un bitmap_free() correspondiente en la ruta de manejo de errores de afu_allocate_irqs()."
          }
        ],
        "id": "CVE-2022-50025",
        "lastModified": "2026-06-17T05:22:35.113",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 5.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 3.6,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-06-18T11:15:30.760",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/3a15b45b5454da862376b5d69a4967f5c6fa1368"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/4be138bcd6d68cec0ce47051b117541061f5141a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/6544ff559315498ad6c0a311359ca44987f9ca07"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/695af60af755873399ce01cb97176768828bc1fd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/89d51dc6878c47b6400922fac21b6a33f9d1a588"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/addff638c41753639368c252d0c5ba0d8fe9ed97"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/c2557780ee7818b701681c226fa4cb7c0b171665"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/c2c7a29f99788e9e5dfe41d16868ea33da7cc235"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-401"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-06-30T10:37:57+00:00",
      "cve": "CVE-2022-50025",
      "id": "CVE-2022-50025",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: cxl: Fix a memory leak in an error handling path",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50025.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "low",
      "current_release_date": "2026-08-29T02:23:50Z",
      "cve": "CVE-2022-50025",
      "id": "CVE-2022-50025",
      "initial_release_date": "2025-06-19T03:43:45Z",
      "product_status:known_affected": "702",
      "product_status:known_not_affected": "159",
      "product_status:recommended": "23",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50025",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-50025.json",
      "version": "26"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…