CVE-2022-50382 (GCVE-0-2022-50382)
Vulnerability from cvelistv5
Published
2025-09-18 13:33
Modified
2025-09-18 13:33
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: padata: Always leave BHs disabled when running ->parallel() A deadlock can happen when an overloaded system runs ->parallel() in the context of the current task: padata_do_parallel ->parallel() pcrypt_aead_enc/dec padata_do_serial spin_lock(&reorder->lock) // BHs still enabled <interrupt> ... __do_softirq ... padata_do_serial spin_lock(&reorder->lock) It's a bug for BHs to be on in _do_serial as Steffen points out, so ensure they're off in the "current task" case like they are in padata_parallel_worker to avoid this situation.
Impacted products
Vendor Product Version
Linux Linux Version: 4611ce22468895acd61fee9ac1da810d60617d9a
Version: 4611ce22468895acd61fee9ac1da810d60617d9a
Version: 4611ce22468895acd61fee9ac1da810d60617d9a
Version: 4611ce22468895acd61fee9ac1da810d60617d9a
Version: 4611ce22468895acd61fee9ac1da810d60617d9a
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/padata.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8e0681dd4eee029eb1d533d06993f7cb091efb73",
              "status": "affected",
              "version": "4611ce22468895acd61fee9ac1da810d60617d9a",
              "versionType": "git"
            },
            {
              "lessThan": "17afa98bccec4f52203508b3f49b5f948c6fd6ac",
              "status": "affected",
              "version": "4611ce22468895acd61fee9ac1da810d60617d9a",
              "versionType": "git"
            },
            {
              "lessThan": "7337adb20fcc0aebb50eaff2bc5a8dd9a7c6743d",
              "status": "affected",
              "version": "4611ce22468895acd61fee9ac1da810d60617d9a",
              "versionType": "git"
            },
            {
              "lessThan": "6cfa9e60c0f88fdec6368e081ab968411cc706b1",
              "status": "affected",
              "version": "4611ce22468895acd61fee9ac1da810d60617d9a",
              "versionType": "git"
            },
            {
              "lessThan": "34c3a47d20ae55b3600fed733bf96eafe9c500d5",
              "status": "affected",
              "version": "4611ce22468895acd61fee9ac1da810d60617d9a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/padata.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.8"
            },
            {
              "lessThan": "5.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "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": "5.10.163",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\npadata: Always leave BHs disabled when running -\u003eparallel()\n\nA deadlock can happen when an overloaded system runs -\u003eparallel() in the\ncontext of the current task:\n\n    padata_do_parallel\n      -\u003eparallel()\n        pcrypt_aead_enc/dec\n          padata_do_serial\n            spin_lock(\u0026reorder-\u003elock) // BHs still enabled\n              \u003cinterrupt\u003e\n                ...\n                  __do_softirq\n                    ...\n                      padata_do_serial\n                        spin_lock(\u0026reorder-\u003elock)\n\nIt\u0027s a bug for BHs to be on in _do_serial as Steffen points out, so\nensure they\u0027re off in the \"current task\" case like they are in\npadata_parallel_worker to avoid this situation."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-18T13:33:04.193Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8e0681dd4eee029eb1d533d06993f7cb091efb73"
        },
        {
          "url": "https://git.kernel.org/stable/c/17afa98bccec4f52203508b3f49b5f948c6fd6ac"
        },
        {
          "url": "https://git.kernel.org/stable/c/7337adb20fcc0aebb50eaff2bc5a8dd9a7c6743d"
        },
        {
          "url": "https://git.kernel.org/stable/c/6cfa9e60c0f88fdec6368e081ab968411cc706b1"
        },
        {
          "url": "https://git.kernel.org/stable/c/34c3a47d20ae55b3600fed733bf96eafe9c500d5"
        }
      ],
      "title": "padata: Always leave BHs disabled when running -\u003eparallel()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50382",
    "datePublished": "2025-09-18T13:33:04.193Z",
    "dateReserved": "2025-09-17T14:53:06.996Z",
    "dateUpdated": "2025-09-18T13:33:04.193Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50382\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-18T14:15:36.993\",\"lastModified\":\"2025-09-19T16:00:46.437\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\npadata: Always leave BHs disabled when running -\u003eparallel()\\n\\nA deadlock can happen when an overloaded system runs -\u003eparallel() in the\\ncontext of the current task:\\n\\n    padata_do_parallel\\n      -\u003eparallel()\\n        pcrypt_aead_enc/dec\\n          padata_do_serial\\n            spin_lock(\u0026reorder-\u003elock) // BHs still enabled\\n              \u003cinterrupt\u003e\\n                ...\\n                  __do_softirq\\n                    ...\\n                      padata_do_serial\\n                        spin_lock(\u0026reorder-\u003elock)\\n\\nIt\u0027s a bug for BHs to be on in _do_serial as Steffen points out, so\\nensure they\u0027re off in the \\\"current task\\\" case like they are in\\npadata_parallel_worker to avoid this situation.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/17afa98bccec4f52203508b3f49b5f948c6fd6ac\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/34c3a47d20ae55b3600fed733bf96eafe9c500d5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6cfa9e60c0f88fdec6368e081ab968411cc706b1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7337adb20fcc0aebb50eaff2bc5a8dd9a7c6743d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8e0681dd4eee029eb1d533d06993f7cb091efb73\",\"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…