CVE-2022-50382

Source
https://cve.org/CVERecord?id=CVE-2022-50382
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50382.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50382
Downstream
Published
2025-09-18T13:33:04.193Z
Modified
2026-04-02T08:28:27.856765Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
padata: Always leave BHs disabled when running ->parallel()
Details

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 doserial as Steffen points out, so ensure they're off in the "current task" case like they are in padataparallelworker to avoid this situation.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50382.json"
}
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
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"