CVE-2022-50707 (GCVE-0-2022-50707)

Vulnerability from cvelistv5 – Published: 2025-12-24 10:55 – Updated: 2025-12-24 10:55
VLAI?
Title
virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()
Summary
In the Linux kernel, the following vulnerability has been resolved: virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session() 'vc_ctrl_req' is alloced in virtio_crypto_alg_skcipher_close_session(), and should be freed in the invalid ctrl_status->status error handling case. Otherwise there is a memory leak.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 4ee475e76b5ea8061970a7c867ffa5eedeb39580 , < 79026a2d0a1b080257773d22a493f9bcab8c65be (git)
Affected: 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a , < 67fb59ff1384e338679c0eb7a43c83ce8868c9fa (git)
Affected: 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a , < 0871df190fe6723464efe0f493d476411616f553 (git)
Affected: 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a , < b1d65f717cd6305a396a8738e022c6f7c65cfbe8 (git)
Create a notification for this product.
    Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 6.0.19 , ≤ 6.0.* (semver)
Unaffected: 6.1.5 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/virtio/virtio_crypto_skcipher_algs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "79026a2d0a1b080257773d22a493f9bcab8c65be",
              "status": "affected",
              "version": "4ee475e76b5ea8061970a7c867ffa5eedeb39580",
              "versionType": "git"
            },
            {
              "lessThan": "67fb59ff1384e338679c0eb7a43c83ce8868c9fa",
              "status": "affected",
              "version": "0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a",
              "versionType": "git"
            },
            {
              "lessThan": "0871df190fe6723464efe0f493d476411616f553",
              "status": "affected",
              "version": "0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a",
              "versionType": "git"
            },
            {
              "lessThan": "b1d65f717cd6305a396a8738e022c6f7c65cfbe8",
              "status": "affected",
              "version": "0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/virtio/virtio_crypto_skcipher_algs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.19",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.19",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.5",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()\n\n\u0027vc_ctrl_req\u0027 is alloced in virtio_crypto_alg_skcipher_close_session(),\nand should be freed in the invalid ctrl_status-\u003estatus error handling\ncase. Otherwise there is a memory leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-24T10:55:21.547Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/79026a2d0a1b080257773d22a493f9bcab8c65be"
        },
        {
          "url": "https://git.kernel.org/stable/c/67fb59ff1384e338679c0eb7a43c83ce8868c9fa"
        },
        {
          "url": "https://git.kernel.org/stable/c/0871df190fe6723464efe0f493d476411616f553"
        },
        {
          "url": "https://git.kernel.org/stable/c/b1d65f717cd6305a396a8738e022c6f7c65cfbe8"
        }
      ],
      "title": "virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50707",
    "datePublished": "2025-12-24T10:55:21.547Z",
    "dateReserved": "2025-12-24T10:53:15.518Z",
    "dateUpdated": "2025-12-24T10:55:21.547Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50707\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-24T11:15:50.880\",\"lastModified\":\"2025-12-29T15:58:56.260\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nvirtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()\\n\\n\u0027vc_ctrl_req\u0027 is alloced in virtio_crypto_alg_skcipher_close_session(),\\nand should be freed in the invalid ctrl_status-\u003estatus error handling\\ncase. Otherwise there is a memory leak.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0871df190fe6723464efe0f493d476411616f553\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/67fb59ff1384e338679c0eb7a43c83ce8868c9fa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/79026a2d0a1b080257773d22a493f9bcab8c65be\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b1d65f717cd6305a396a8738e022c6f7c65cfbe8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…