# CVE-2022-49266: block: fix rq-qos breakage from skipping rq\_qos\_done\_bio()

> 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-02-26T01:56:15.709Z
- **Modified:** 2026-11-05T20:17:03.070Z

## Who should check

- Anyone running Linux \>= a647a524a46736786c95cdb553a070322ca096e3, \< af9452dfdba4bf7359ef7645eee2d243a1df0649; \>= a647a524a46736786c95cdb553a070322ca096e3, \< dbd20bb904ad5731aaca8d009367a930d6ada111; \>= a647a524a46736786c95cdb553a070322ca096e3, \< 09737db4c891eba25e6f6383a7c38afd4acc883f; \>= a647a524a46736786c95cdb553a070322ca096e3, \< aa1b46dcdc7baaf5fec0be25782ef24b26aa209e; db60edbfff332a6a5477c367af8125f034570989; 004b8f8a691205a93d9e80d98b786b2b97424d6e; \>= 5.10.241, \< 5.11; \>= 5.14.11, \< 5.15
- Anyone running Linux 5.15

## Description

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

block: fix rq-qos breakage from skipping rq\_qos\_done\_bio()

a647a524a467 ("block: don't call rq\_qos\_ops-\>done\_bio if the bio isn't
tracked") made bio\_endio() skip rq\_qos\_done\_bio() if BIO\_TRACKED is not set.
While this fixed a potential oops, it also broke blk-iocost by skipping the
done\_bio callback for merged bios.

Before, whether a bio goes through rq\_qos\_throttle() or rq\_qos\_merge(),
rq\_qos\_done\_bio() would be called on the bio on completion with BIO\_TRACKED
distinguishing the former from the latter. rq\_qos\_done\_bio() is not called
for bios which wenth through rq\_qos\_merge(). This royally confuses
blk-iocost as the merged bios never finish and are considered perpetually
in-flight.

One reliably reproducible failure mode is an intermediate cgroup geting
stuck active preventing its children from being activated due to the
leaf-only rule, leading to loss of control. The following is from
resctl-bench protection scenario which emulates isolating a web server like
workload from a memory bomb run on an iocost configuration which should
yield a reasonable level of protection.

  \# cat /sys/block/nvme2n1/device/model
  Samsung SSD 970 PRO 512GB
  \# cat /sys/fs/cgroup/io.cost.model
  259:0 ctrl=user model=linear rbps=834913556 rseqiops=93622 rrandiops=102913 wbps=618985353 wseqiops=72325 wrandiops=71025
  \# cat /sys/fs/cgroup/io.cost.qos
  259:0 enable=1 ctrl=user rpct=95.00 rlat=18776 wpct=95.00 wlat=8897 min=60.00 max=100.00
  \# resctl-bench -m 29.6G -r out.json run protection::scenario=mem-hog,loops=1
  ...
  Memory Hog Summary
  ==================

  IO Latency: R p50=242u:336u/2.5m p90=794u:1.4m/7.5m p99=2.7m:8.0m/62.5m max=8.0m:36.4m/350m
              W p50=221u:323u/1.5m p90=709u:1.2m/5.5m p99=1.5m:2.5m/9.5m max=6.9m:35.9m/350m

  Isolation and Request Latency Impact Distributions:

                min   p01   p05   p10   p25   p50   p75   p90   p95   p99   max  mean stdev
  isol%       15.90 15.90 15.90 40.05 57.24 59.07 60.01 74.63 74.63 90.35 90.35 58.12 15.82
  lat-imp%        0     0     0     0     0  4.55 14.68 15.54 233.5 548.1 548.1 53.88 143.6

  Result: isol=58.12:15.82% lat\_imp=53.88%:143.6 work\_csv=100.0% missing=3.96%

The isolation result of 58.12% is close to what this device would show
without any IO control.

Fix it by introducing a new flag BIO\_QOS\_MERGED to mark merged bios and
calling rq\_qos\_done\_bio() on them too. For consistency and clarity, rename
BIO\_TRACKED to BIO\_QOS\_THROTTLED. The flag checks are moved into
rq\_qos\_done\_bio() so that it's next to the code paths that set the flags.

With the patch applied, the above same benchmark shows:

  \# resctl-bench -m 29.6G -r out.json run protection::scenario=mem-hog,loops=1
  ...
  Memory Hog Summary
  ==================

  IO Latency: R p50=123u:84.4u/985u p90=322u:256u/2.5m p99=1.6m:1.4m/9.5m max=11.1m:36.0m/350m
              W p50=429u:274u/995u p90=1.7m:1.3m/4.5m p99=3.4m:2.7m/11.5m max=7.9m:5.9m/26.5m

  Isolation and Request Latency Impact Distributions:

                min   p01   p05   p10   p25   p50   p75   p90   p95   p99   max  mean stdev
  isol%       84.91 84.91 89.51 90.73 92.31 94.49 96.36 98.04 98.71 100.0 100.0 94.42  2.81
  lat-imp%        0     0     0     0     0  2.81  5.73 11.11 13.92 17.53 22.61  4.10  4.68

  Result: isol=94.42:2.81% lat\_imp=4.10%:4.68 work\_csv=58.34% missing=0%

## Affected and fixed versions

- Linux: \>= a647a524a46736786c95cdb553a070322ca096e3, \< af9452dfdba4bf7359ef7645eee2d243a1df0649; \>= a647a524a46736786c95cdb553a070322ca096e3, \< dbd20bb904ad5731aaca8d009367a930d6ada111; \>= a647a524a46736786c95cdb553a070322ca096e3, \< 09737db4c891eba25e6f6383a7c38afd4acc883f; \>= a647a524a46736786c95cdb553a070322ca096e3, \< aa1b46dcdc7baaf5fec0be25782ef24b26aa209e; db60edbfff332a6a5477c367af8125f034570989; 004b8f8a691205a93d9e80d98b786b2b97424d6e; \>= 5.10.241, \< 5.11; \>= 5.14.11, \< 5.15 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49266.md
Affected: Linux >= a647a524a46736786c95cdb553a070322ca096e3, < af9452dfdba4bf7359ef7645eee2d243a1df0649; >= a647a524a46736786c95cdb553a070322ca096e3, < dbd20bb904ad5731aaca8d009367a930d6ada111; >= a647a524a46736786c95cdb553a070322ca096e3, < 09737db4c891eba25e6f6383a7c38afd4acc883f; >= a647a524a46736786c95cdb…
Fixed in: Linux 09737db4c891eba25e6f6383a7c38afd4acc883f, Linux 5.11, Linux 5.15

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

There is no confirmed exploitation: CVE-2022-49266 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-49266?

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

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

Linux \>= a647a524a46736786c95cdb553a070322ca096e3, \< af9452dfdba4bf7359ef7645eee2d243a1df0649; \>= a647a524a46736786c95cdb553a070322ca096e3, \< dbd20bb904ad5731aaca8d009367a930d6ada111; \>= a647a524a46736786c95cdb553a070322ca096e3, \< 09737db4c891eba25e6f6383a7c38afd4acc883f; \>= a647a524a46736786c95cdb553a070322ca096e3, \< aa1b46dcdc7baaf5fec0be25782ef24b26aa209e; db60edbfff332a6a5477c367af8125f034570989; 004b8f8a691205a93d9e80d98b786b2b97424d6e; \>= 5.10.241, \< 5.11; \>= 5.14.11, \< 5.15; Linux 5.15.

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

Yes. Fixed in Linux 09737db4c891eba25e6f6383a7c38afd4acc883f, Linux 5.11, Linux 5.15. Upgrade Linux to 5.15 or later.

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

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/af9452dfdba4bf7359ef7645eee2d243a1df0649>
- patch: <https://git.kernel.org/stable/c/dbd20bb904ad5731aaca8d009367a930d6ada111>
- patch: <https://git.kernel.org/stable/c/09737db4c891eba25e6f6383a7c38afd4acc883f>
- patch: <https://git.kernel.org/stable/c/aa1b46dcdc7baaf5fec0be25782ef24b26aa209e>

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

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