{"api_version":"1","generated_at":"2026-11-30T16:27:45+00:00","cve":"CVE-2026-139111","urls":{"html":"https://cve.report/CVE-2026-139111","api":"https://cve.report/api/cve/CVE-2026-139111.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139111","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139111"},"summary":{"title":"blk-iocost: publish hweights as one atomic value","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-iocost: publish hweights as one atomic value\n\ncurrent_hweight() publishes the cache generation and both weights with\nseparate stores.  Refreshers running on different CPUs can interleave\ntheir stores and leave a new generation paired with weights from an older\ncalculation.  The compiler can also reorder the generation store before\nthe weight stores, so a reader that sees the new generation can accept\nstale weights.\n\nA stale weight is not only a reporting artifact.  It feeds the cost\ncalculation and the donation logic, where an inconsistent combination can\nlead to a zero divisor in transfer_surpluses().\n\nIn addition, the slow path rereads iocg->hweight_active/inuse after\npublishing them, so the value it returns can be the one written by another\nrefresher instead of the locally computed one.\n\nPack the generation and both weights into a single atomic64_t and publish\nthem with one atomic write.  Readers take one atomic snapshot and return\nthe local values.  Weights are in [1, WEIGHT_ONE]; storing each minus one\npreserves the full range in 16 bits and leaves 32 bits for the generation.\n\nThe two weight fields remain as the donation workspace used under\nioc->lock.  Tracepoints decode the packed cache without refreshing it and\niocost_monitor.py is updated accordingly.\n\nDeveloped with assistance from Claude Code (Anthropic): the assistant\ndrafted the packed representation, the helpers and the tracepoint/monitor\nchanges, and ran the checks listed below.  The author reviewed the result\nand remains responsible for it.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:19","updated_at":"2026-11-30 14:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/0150554a3f38e1850d5964102eb89a720c5fe789","name":"https://git.kernel.org/stable/c/0150554a3f38e1850d5964102eb89a720c5fe789","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b837673eaaf820481843901b8505968c31157189","name":"https://git.kernel.org/stable/c/b837673eaaf820481843901b8505968c31157189","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eaa12d1932546a26816865df96afa2dcdc26d3bf","name":"https://git.kernel.org/stable/c/eaa12d1932546a26816865df96afa2dcdc26d3bf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da227c9773756e829388a1740f311d2f2d8b0ede","name":"https://git.kernel.org/stable/c/da227c9773756e829388a1740f311d2f2d8b0ede","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139111","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139111","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7caa47151ab2e644dd221f741ec7578d9532c9a3 b837673eaaf820481843901b8505968c31157189 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7caa47151ab2e644dd221f741ec7578d9532c9a3 eaa12d1932546a26816865df96afa2dcdc26d3bf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7caa47151ab2e644dd221f741ec7578d9532c9a3 da227c9773756e829388a1740f311d2f2d8b0ede git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7caa47151ab2e644dd221f741ec7578d9532c9a3 0150554a3f38e1850d5964102eb89a720c5fe789 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["block/blk-iocost.c","include/trace/events/iocost.h","tools/cgroup/iocost_monitor.py"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b837673eaaf820481843901b8505968c31157189","status":"affected","version":"7caa47151ab2e644dd221f741ec7578d9532c9a3","versionType":"git"},{"lessThan":"eaa12d1932546a26816865df96afa2dcdc26d3bf","status":"affected","version":"7caa47151ab2e644dd221f741ec7578d9532c9a3","versionType":"git"},{"lessThan":"da227c9773756e829388a1740f311d2f2d8b0ede","status":"affected","version":"7caa47151ab2e644dd221f741ec7578d9532c9a3","versionType":"git"},{"lessThan":"0150554a3f38e1850d5964102eb89a720c5fe789","status":"affected","version":"7caa47151ab2e644dd221f741ec7578d9532c9a3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["block/blk-iocost.c","include/trace/events/iocost.h","tools/cgroup/iocost_monitor.py"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.4"},{"lessThan":"5.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-iocost: publish hweights as one atomic value\n\ncurrent_hweight() publishes the cache generation and both weights with\nseparate stores.  Refreshers running on different CPUs can interleave\ntheir stores and leave a new generation paired with weights from an older\ncalculation.  The compiler can also reorder the generation store before\nthe weight stores, so a reader that sees the new generation can accept\nstale weights.\n\nA stale weight is not only a reporting artifact.  It feeds the cost\ncalculation and the donation logic, where an inconsistent combination can\nlead to a zero divisor in transfer_surpluses().\n\nIn addition, the slow path rereads iocg->hweight_active/inuse after\npublishing them, so the value it returns can be the one written by another\nrefresher instead of the locally computed one.\n\nPack the generation and both weights into a single atomic64_t and publish\nthem with one atomic write.  Readers take one atomic snapshot and return\nthe local values.  Weights are in [1, WEIGHT_ONE]; storing each minus one\npreserves the full range in 16 bits and leaves 32 bits for the generation.\n\nThe two weight fields remain as the donation workspace used under\nioc->lock.  Tracepoints decode the packed cache without refreshing it and\niocost_monitor.py is updated accordingly.\n\nDeveloped with assistance from Claude Code (Anthropic): the assistant\ndrafted the packed representation, the helpers and the tracepoint/monitor\nchanges, and ran the checks listed below.  The author reviewed the result\nand remains responsible for it."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:41.026Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/b837673eaaf820481843901b8505968c31157189"},{"url":"https://git.kernel.org/stable/c/eaa12d1932546a26816865df96afa2dcdc26d3bf"},{"url":"https://git.kernel.org/stable/c/da227c9773756e829388a1740f311d2f2d8b0ede"},{"url":"https://git.kernel.org/stable/c/0150554a3f38e1850d5964102eb89a720c5fe789"}],"title":"blk-iocost: publish hweights as one atomic value","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139111","datePublished":"2026-11-30T13:31:41.026Z","dateReserved":"2026-11-30T13:22:15.914Z","dateUpdated":"2026-11-30T13:31:41.026Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:19","lastModifiedDate":"2026-11-30 14:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139111","Ordinal":"1","Title":"blk-iocost: publish hweights as one atomic value","CVE":"CVE-2026-139111","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139111","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-iocost: publish hweights as one atomic value\n\ncurrent_hweight() publishes the cache generation and both weights with\nseparate stores.  Refreshers running on different CPUs can interleave\ntheir stores and leave a new generation paired with weights from an older\ncalculation.  The compiler can also reorder the generation store before\nthe weight stores, so a reader that sees the new generation can accept\nstale weights.\n\nA stale weight is not only a reporting artifact.  It feeds the cost\ncalculation and the donation logic, where an inconsistent combination can\nlead to a zero divisor in transfer_surpluses().\n\nIn addition, the slow path rereads iocg->hweight_active/inuse after\npublishing them, so the value it returns can be the one written by another\nrefresher instead of the locally computed one.\n\nPack the generation and both weights into a single atomic64_t and publish\nthem with one atomic write.  Readers take one atomic snapshot and return\nthe local values.  Weights are in [1, WEIGHT_ONE]; storing each minus one\npreserves the full range in 16 bits and leaves 32 bits for the generation.\n\nThe two weight fields remain as the donation workspace used under\nioc->lock.  Tracepoints decode the packed cache without refreshing it and\niocost_monitor.py is updated accordingly.\n\nDeveloped with assistance from Claude Code (Anthropic): the assistant\ndrafted the packed representation, the helpers and the tracepoint/monitor\nchanges, and ran the checks listed below.  The author reviewed the result\nand remains responsible for it.","Type":"Description","Title":"blk-iocost: publish hweights as one atomic value"}]}}}