# CVE-2022-50550: blk-iolatency: Fix memory leak on add\_disk() failures

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:21:12.689Z
- **Modified:** 2026-11-05T21:17:04.957Z

## Who should check

- Anyone running Linux \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 2a126e1db5553ce4498290df019866952f858954; \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 215f9437dda09531bcb80605298a24219f01cec5; \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 813e693023ba10da9e75067780f8378465bf27cc
- Anyone running Linux 4.19

## 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

- Linux: \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 2a126e1db5553ce4498290df019866952f858954; \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 215f9437dda09531bcb80605298a24219f01cec5; \>= d70675121546c35feaceebf7ed9caed8716640f3, \< 813e693023ba10da9e75067780f8378465bf27cc (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 813e693023ba10da9e75067780f8378465bf27cc or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/2a126e1db5553ce4498290df019866952f858954>
- patch: <https://git.kernel.org/stable/c/215f9437dda09531bcb80605298a24219f01cec5>
- patch: <https://git.kernel.org/stable/c/813e693023ba10da9e75067780f8378465bf27cc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50550>

HTML: <https://flawdb.com/CVE-2022-50550> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50550>
