# CVE-2026-139111: blk-iocost: publish hweights as one atomic value

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-11-30T13:31:41.026Z
- Modified: 2026-11-30T14:18:19.913Z
- Assigned by: Linux

## Description

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

blk-iocost: publish hweights as one atomic value

current_hweight() publishes the cache generation and both weights with
separate stores.  Refreshers running on different CPUs can interleave
their stores and leave a new generation paired with weights from an older
calculation.  The compiler can also reorder the generation store before
the weight stores, so a reader that sees the new generation can accept
stale weights.

A stale weight is not only a reporting artifact.  It feeds the cost
calculation and the donation logic, where an inconsistent combination can
lead to a zero divisor in transfer_surpluses().

In addition, the slow path rereads iocg->hweight_active/inuse after
publishing them, so the value it returns can be the one written by another
refresher instead of the locally computed one.

Pack the generation and both weights into a single atomic64_t and publish
them with one atomic write.  Readers take one atomic snapshot and return
the local values.  Weights are in [1, WEIGHT_ONE]; storing each minus one
preserves the full range in 16 bits and leaves 32 bits for the generation.

The two weight fields remain as the donation workspace used under
ioc->lock.  Tracepoints decode the packed cache without refreshing it and
iocost_monitor.py is updated accordingly.

Developed with assistance from Claude Code (Anthropic): the assistant
drafted the packed representation, the helpers and the tracepoint/monitor
changes, and ran the checks listed below.  The author reviewed the result
and remains responsible for it.

(As written by CVE List.)

## Affected

- Linux Linux: from 7caa47151ab2e644dd221f741ec7578d9532c9a3 before b837673eaaf820481843901b8505968c31157189; from 7caa47151ab2e644dd221f741ec7578d9532c9a3 before eaa12d1932546a26816865df96afa2dcdc26d3bf; from 7caa47151ab2e644dd221f741ec7578d9532c9a3 before da227c9773756e829388a1740f311d2f2d8b0ede; from 7caa47151ab2e644dd221f741ec7578d9532c9a3 before 0150554a3f38e1850d5964102eb89a720c5fe789; 5.4 (not affected: before 5.4; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b837673eaaf820481843901b8505968c31157189>
- <https://git.kernel.org/stable/c/eaa12d1932546a26816865df96afa2dcdc26d3bf>
- <https://git.kernel.org/stable/c/da227c9773756e829388a1740f311d2f2d8b0ede>
- <https://git.kernel.org/stable/c/0150554a3f38e1850d5964102eb89a720c5fe789>

## Sources

- CVE List: [CVE-2026-139111](https://www.cve.org/CVERecord?id=CVE-2026-139111), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139111](https://nvd.nist.gov/vuln/detail/CVE-2026-139111), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139111 · Whole record: https://cve.day/CVE-2026-139111.json · Rebuilt by cve.day 2026-11-30T14:32:53.018Z
