Skip to contentSkip to conversation

CVE-2026-53319: blk-wbt: remove WARN_ON_ONCE from wbt_init_enable_default()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

blk-wbt: remove WARN_ON_ONCE from wbt_init_enable_default()

wbt_init_enable_default() uses WARN_ON_ONCE to check for failures from wbt_alloc() and wbt_init(). However, both are expected failure paths:

- wbt_alloc() can return NULL under memory pressure (-ENOMEM)
- wbt_init() can fail with -EBUSY if wbt is already registered

syzbot triggers this by injecting memory allocation failures during MTD partition creation via ioctl(BLKPG), causing a spurious warning.

wbt_init_enable_default() is a best-effort initialization called from blk_register_queue() with a void return type. Failure simply means the disk operates without writeback throttling, which is harmless.

Replace WARN_ON_ONCE with plain if-checks, consistent with how wbt_set_lat() in the same file already handles these failures. Add a pr_warn() for the wbt_init() failure to retain diagnostic information without triggering a full stack trace.

The Linux kernel CVE team has assigned CVE-2026-53319 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit 41afaeeda5099d9cd07eaa7dc6c3d20c6f1dd9e9 and fixed in 7.0.10 with commit fd7a982657077469802594a5165bc30b9a55af70
	Issue introduced in 7.0 with commit 41afaeeda5099d9cd07eaa7dc6c3d20c6f1dd9e9 and fixed in 7.1 with commit e9b004ff83067cdf96774b45aea4b239ace99a2f

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53319

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
block/blk-wbt.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/fd7a982657077469802594a5165bc30b9a55af70
	https://git.kernel.org/stable/c/e9b004ff83067cdf96774b45aea4b239ace99a2f