CVE-2022-50550
blk-iolatency: Fix memory leak on add_disk() failures
Mitigation
- Upgrade Linux to 813e693023ba10da9e75067780f8378465bf27cc or later.
Who should check
- Anyone running Linux >= d70675121546c35feaceebf7ed9caed8716640f3, < 2a126e1db5553ce4498290df019866952f858954; >= d70675121546c35feaceebf7ed9caed8716640f3, < 215f9437dda09531bcb80605298a24219f01cec5; >= d70675121546c35feaceebf7ed9caed8716640f3, < 813e693023ba10da9e75067780f8378465bf27cc
- Anyone running Linux 4.19
Vulnerability facts
- Affected
- Linux >= d70675121546c35feaceebf7ed9caed8716640f3, < 2a126e1db5553ce4498290df019866952f858954; >= d70675121546c35feaceebf7ed9caed8716640f3, < 215f9437dda09531bcb80605298a24219f01cec5; >= d70675121546c35feaceebf7ed9caed8716640f3, < 813e693023ba10da9e75067780f8378465bf27cc; Linux 4.19
- Fixed in
- Linux 2a126e1db5553ce4498290df019866952f858954, Linux 215f9437dda09531bcb80605298a24219f01cec5, Linux 813e693023ba10da9e75067780f8378465bf27cc
- 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.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: blk-iolatency: Fix memory leak on add_disk() failures When a gendisk is successfully initialized but add_disk() fails such as when a loop device has invalid number of minor device numbers specified, blkcg_init_disk() is called during init and then blkcg_exit_disk() during error handling. Unfortunately, iolatency gets initialized in the former but doesn't get cleaned up in the latter. This is because, in non-error cases, the cleanup is performed by del_gendisk() calling rq_qos_exit(), the assumption being that rq_qos policies, iolatency being one of them, can only be activated once the disk is fully registered and visible. That assumption is true for wbt and iocost, but not so for iolatency as it gets initialized before add_disk() is called. It is desirable to lazy-init rq_qos policies because they are optional features and add to hot path overhead once initialized - each IO has to walk all the registered rq_qos policies. So, we want to switch iolatency to lazy init too. However, that's a bigger change. As a fix for the immediate problem, let's just add an extra call to rq_qos_exit() in blkcg_exit_disk(). This is safe because duplicate calls to rq_qos_exit() become noop's.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d70675121546c35feaceebf7ed9caed8716640f3, < 2a126e1db5553ce4498290df019866952f858954; >= d70675121546c35feaceebf7ed9caed8716640f3, < 215f9437dda09531bcb80605298a24219f01cec5; >= d70675121546c35feaceebf7ed9caed8716640f3, < 813e693023ba10da9e75067780f8378465bf27cc | — | cvelist |
| Linux | 4.19 | — | 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-50550. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50550.md Affected: Linux >= d70675121546c35feaceebf7ed9caed8716640f3, < 2a126e1db5553ce4498290df019866952f858954; >= d70675121546c35feaceebf7ed9caed8716640f3, < 215f9437dda09531bcb80605298a24219f01cec5; >= d70675121546c35feaceebf7ed9caed8716640f3, < 813e693023ba10da9e75067780f8378465bf27cc; Linux 4.19 Fixed in: Linux 2a126e1db5553ce4498290df019866952f858954, Linux 215f9437dda09531bcb80605298a24219f01cec5, Linux 813e693023ba10da9e75067780f8378465bf27cc 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
FAQ
Is CVE-2022-50550 being exploited?
There is no confirmed exploitation: CVE-2022-50550 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50550?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50550?
Linux >= d70675121546c35feaceebf7ed9caed8716640f3, < 2a126e1db5553ce4498290df019866952f858954; >= d70675121546c35feaceebf7ed9caed8716640f3, < 215f9437dda09531bcb80605298a24219f01cec5; >= d70675121546c35feaceebf7ed9caed8716640f3, < 813e693023ba10da9e75067780f8378465bf27cc; Linux 4.19.
Is there a fix for CVE-2022-50550?
Yes. Fixed in Linux 2a126e1db5553ce4498290df019866952f858954, Linux 215f9437dda09531bcb80605298a24219f01cec5, Linux 813e693023ba10da9e75067780f8378465bf27cc. Upgrade Linux to 813e693023ba10da9e75067780f8378465bf27cc or later.
How do I check if I'm affected by CVE-2022-50550?
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.