Skip to content
Heist/ feed
Back to feed
MediumFix available

padata: Always leave BHs disabled when running ->parallel()

Type: advisorySources: OSV

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 ... __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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.163, 5.15.86, 6.0.16, 6.1.2
CVEs
CVE-2022-50382
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 10:32 UTC · Revision 1

Source evidence

padata: Always leave BHs disabled when running ->parallel()

core-osv · Original source

Published 18 Sept 2025, 13:33 UTC

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 ... __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.

osv:CVE-2022-50382

Kernel

Fixed versions: 5.10.163, 5.15.86, 6.0.16, 6.1.2

Complete source record
{
  "id": "dd600f2cab5236718575bfd8e8ce965c229a69619fc96e16587da05339d56fd8",
  "url": "https://osv.dev/vulnerability/CVE-2022-50382",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "padata: Always leave BHs disabled when running ->parallel()",
    "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 ... __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.",
    "evidence": "osv:CVE-2022-50382",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.163",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.86",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-50382",
      "aliases": [
        "CVE-2022-50382"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4611ce22468895acd61fee9ac1da810d60617d9a"
                },
                {
                  "fixed": "8e0681dd4eee029eb1d533d06993f7cb091efb73"
                },
                {
                  "fixed": "17afa98bccec4f52203508b3f49b5f948c6fd6ac"
                },
                {
                  "fixed": "7337adb20fcc0aebb50eaff2bc5a8dd9a7c6743d"
                },
                {
                  "fixed": "6cfa9e60c0f88fdec6368e081ab968411cc706b1"
                },
                {
                  "fixed": "34c3a47d20ae55b3600fed733bf96eafe9c500d5"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50382.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.8.0"
                },
                {
                  "fixed": "5.10.163"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.86"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50382.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.851694738Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/17afa98bccec4f52203508b3f49b5f948c6fd6ac",
        "https://git.kernel.org/stable/c/34c3a47d20ae55b3600fed733bf96eafe9c500d5",
        "https://git.kernel.org/stable/c/6cfa9e60c0f88fdec6368e081ab968411cc706b1",
        "https://git.kernel.org/stable/c/7337adb20fcc0aebb50eaff2bc5a8dd9a7c6743d",
        "https://git.kernel.org/stable/c/8e0681dd4eee029eb1d533d06993f7cb091efb73",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50382.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50382",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50382.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50382",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 511631,
  "published_at": "2025-09-18T13:33:04.193+00:00"
}