CVE-2022-50149
driver core: fix potential deadlock in __driver_attach
Mitigation
- Upgrade Linux to 70fe758352cafdee72a7b13bf9db065f9613ced8 or later.
Who should check
- Anyone running Linux >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 8191b6cd9ada09b675f17446d5872eb1f77685cb; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 779b634714c51d05baaeff4868ce2fd9fc7399bf; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 37f908038402c9b8325763f306a1c65d88757e15; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 70fe758352cafdee72a7b13bf9db065f9613ced8
- Anyone running Linux 5.1
Vulnerability facts
- Affected
- Linux >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 8191b6cd9ada09b675f17446d5872eb1f77685cb; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 779b634714c51d05baaeff4868ce2fd9fc7399bf; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 37f908038402c9b8325763f306a1c65d88757e15; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 70fe758352cafdee72a7b13bf9db065f9613ced8; Linux 5.1
- Fixed in
- Linux 8191b6cd9ada09b675f17446d5872eb1f77685cb, Linux 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b, Linux 779b634714c51d05baaeff4868ce2fd9fc7399bf, Linux 37f908038402c9b8325763f306a1c65d88757e15, Linux 70fe758352cafdee72a7b13bf9db065f9613ced8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential deadlock in __driver_attach In __driver_attach function, There are also AA deadlock problem, like the commit b232b02bf3c2 ("driver core: fix deadlock in __device_attach"). stack like commit b232b02bf3c2 ("driver core: fix deadlock in __device_attach"). list below: In __driver_attach function, The lock holding logic is as follows: ... __driver_attach if (driver_allows_async_probing(drv)) device_lock(dev) // get lock dev async_schedule_dev(__driver_attach_async_helper, dev); // func async_schedule_node async_schedule_node_domain(func) entry = kzalloc(sizeof(struct async_entry), GFP_ATOMIC); /* when fail or work limit, sync to execute func, but __driver_attach_async_helper will get lock dev as will, which will lead to A-A deadlock. */ if (!entry || atomic_read(&entry_count) > MAX_WORK) { func; else queue_work_node(node, system_unbound_wq, &entry->work) device_unlock(dev) As above show, when it is allowed to do async probes, because of out of memory or work limit, async work is not be allowed, to do sync execute instead. it will lead to A-A deadlock because of __driver_attach_async_helper getting lock dev. Reproduce: and it can be reproduce by make the condition (if (!entry || atomic_read(&entry_count) > MAX_WORK)) untenable, like below: [ 370.785650] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 370.787154] task:swapper/0 state:D stack: 0 pid: 1 ppid: 0 flags:0x00004000 [ 370.788865] Call Trace: [ 370.789374] <TASK> [ 370.789841] __schedule+0x482/0x1050 [ 370.790613] schedule+0x92/0x1a0 [ 370.791290] schedule_preempt_disabled+0x2c/0x50 [ 370.792256] __mutex_lock.isra.0+0x757/0xec0 [ 370.793158] __mutex_lock_slowpath+0x1f/0x30 [ 370.794079] mutex_lock+0x50/0x60 [ 370.794795] __device_driver_lock+0x2f/0x70 [ 370.795677] ? driver_probe_device+0xd0/0xd0 [ 370.796576] __driver_attach_async_helper+0x1d/0xd0 [ 370.797318] ? driver_probe_device+0xd0/0xd0 [ 370.797957] async_schedule_node_domain+0xa5/0xc0 [ 370.798652] async_schedule_node+0x19/0x30 [ 370.799243] __driver_attach+0x246/0x290 [ 370.799828] ? driver_allows_async_probing+0xa0/0xa0 [ 370.800548] bus_for_each_dev+0x9d/0x130 [ 370.801132] driver_attach+0x22/0x30 [ 370.801666] bus_add_driver+0x290/0x340 [ 370.802246] driver_register+0x88/0x140 [ 370.802817] ? virtio_scsi_init+0x116/0x116 [ 370.803425] scsi_register_driver+0x1a/0x30 [ 370.804057] init_sd+0x184/0x226 [ 370.804533] do_one_initcall+0x71/0x3a0 [ 370.805107] kernel_init_freeable+0x39a/0x43a [ 370.805759] ? rest_init+0x150/0x150 [ 370.806283] kernel_init+0x26/0x230 [ 370.806799] ret_from_fork+0x1f/0x30 To fix the deadlock, move the async_schedule_dev outside device_lock, as we can see, in async_schedule_node_domain, the parameter of queue_work_node is system_unbound_wq, so it can accept concurrent operations. which will also not change the code logic, and will not lead to deadlock.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 8191b6cd9ada09b675f17446d5872eb1f77685cb; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 779b634714c51d05baaeff4868ce2fd9fc7399bf; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 37f908038402c9b8325763f306a1c65d88757e15; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 70fe758352cafdee72a7b13bf9db065f9613ced8 | — | cvelist |
| Linux | 5.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50149. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50149.md Affected: Linux >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 8191b6cd9ada09b675f17446d5872eb1f77685cb; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b; >= ef0ff68351be4fd83bec2d7… Fixed in: Linux 8191b6cd9ada09b675f17446d5872eb1f77685cb, Linux 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b, Linux 779b634714c51d05baaeff4868ce2fd9fc7399bf, Linux 37f908038402c9b8325763f306a1c65d88757e15, Linux 70fe758352cafdee72a7b13bf9db065f9613ced8 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/8191b6cd9ada09b675f17446d5872eb1f77685cb
- https://git.kernel.org/stable/c/a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec
- https://git.kernel.org/stable/c/733ab0c19bf17f6ad7c2b580ede006e369d5ab1b
- https://git.kernel.org/stable/c/779b634714c51d05baaeff4868ce2fd9fc7399bf
- https://git.kernel.org/stable/c/37f908038402c9b8325763f306a1c65d88757e15
- https://git.kernel.org/stable/c/70fe758352cafdee72a7b13bf9db065f9613ced8
FAQ
Is CVE-2022-50149 being exploited?
There is no confirmed exploitation: CVE-2022-50149 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50149?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50149?
Linux >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 8191b6cd9ada09b675f17446d5872eb1f77685cb; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < a93f33aeef4e6a94ae9c9d3f5b2f9085ad0572ec; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 779b634714c51d05baaeff4868ce2fd9fc7399bf; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 37f908038402c9b8325763f306a1c65d88757e15; >= ef0ff68351be4fd83bec2d797f0efdc0174a55a4, < 70fe758352cafdee72a7b13bf9db065f9613ced8; Linux 5.1.
Is there a fix for CVE-2022-50149?
Yes. Fixed in Linux 8191b6cd9ada09b675f17446d5872eb1f77685cb, Linux 733ab0c19bf17f6ad7c2b580ede006e369d5ab1b, Linux 779b634714c51d05baaeff4868ce2fd9fc7399bf, Linux 37f908038402c9b8325763f306a1c65d88757e15, Linux 70fe758352cafdee72a7b13bf9db065f9613ced8. Upgrade Linux to 70fe758352cafdee72a7b13bf9db065f9613ced8 or later.
How do I check if I'm affected by CVE-2022-50149?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.