# CVE-2022-50086: block: don't allow the same type rq\_qos add more than once

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T11:02:27.283Z
- **Modified:** 2026-11-05T20:17:23.093Z

## Who should check

- Anyone running Linux \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 08ef66e800a85afc6b54cb95841f6502627eee2e; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0c9bb1acd1d103a3070b2126870eb52761d606ce; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6
- Anyone running Linux 4.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: don't allow the same type rq\_qos add more than once

In our test of iocost, we encountered some list add/del corruptions of
inner\_walk list in ioc\_timer\_fn.

The reason can be described as follows:

cpu 0					cpu 1
ioc\_qos\_write				ioc\_qos\_write

ioc = q\_to\_ioc(queue);
if (!ioc) {
        ioc = kzalloc();
					ioc = q\_to\_ioc(queue);
					if (!ioc) {
						ioc = kzalloc();
						...
						rq\_qos\_add(q, rqos);
					}
        ...
        rq\_qos\_add(q, rqos);
        ...
}

When the io.cost.qos file is written by two cpus concurrently, rq\_qos may
be added to one disk twice. In that case, there will be two iocs enabled
and running on one disk. They own different iocgs on their active list. In
the ioc\_timer\_fn function, because of the iocgs from two iocs have the
same root iocg, the root iocg's walk\_list may be overwritten by each other
and this leads to list add/del corruptions in building or destroying the
inner\_walk list.

And so far, the blk-rq-qos framework works in case that one instance for
one type rq\_qos per queue by default. This patch make this explicit and
also fix the crash above.

## Affected and fixed versions

- Linux: \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 08ef66e800a85afc6b54cb95841f6502627eee2e; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0c9bb1acd1d103a3070b2126870eb52761d606ce; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6 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-50086. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50086.md
Affected: Linux >= a79050434b45959f397042080fd1d70ffa9bd9df, < 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638; >= a79050434b45959f397042080fd1d70ffa9bd9df, < 08ef66e800a85afc6b54cb95841f6502627eee2e; >= a79050434b45959f397042080fd1d70ffa9bd9df, < 0c9bb1acd1d103a3070b2126870eb52761d606ce; >= a79050434b45959f3970420…
Fixed in: Linux 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638, Linux 08ef66e800a85afc6b54cb95841f6502627eee2e, Linux 0c9bb1acd1d103a3070b2126870eb52761d606ce, Linux 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6

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-50086 being exploited?

There is no confirmed exploitation: CVE-2022-50086 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50086?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50086?

Linux \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 08ef66e800a85afc6b54cb95841f6502627eee2e; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 0c9bb1acd1d103a3070b2126870eb52761d606ce; \>= a79050434b45959f397042080fd1d70ffa9bd9df, \< 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6; Linux 4.19.

### Is there a fix for CVE-2022-50086?

Yes. Fixed in Linux 0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638, Linux 08ef66e800a85afc6b54cb95841f6502627eee2e, Linux 0c9bb1acd1d103a3070b2126870eb52761d606ce, Linux 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6. Upgrade Linux to 14a6e2eb7df5c7897c15b109cba29ab0c4a791b6 or later.

### How do I check if I'm affected by CVE-2022-50086?

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/0b7f5d7a4d2a72ad9de04ab8ccba2a31904aa638>
- patch: <https://git.kernel.org/stable/c/08ef66e800a85afc6b54cb95841f6502627eee2e>
- patch: <https://git.kernel.org/stable/c/0c9bb1acd1d103a3070b2126870eb52761d606ce>
- patch: <https://git.kernel.org/stable/c/14a6e2eb7df5c7897c15b109cba29ab0c4a791b6>

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

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