Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBB5F156230 for ; Wed, 16 Apr 2025 14:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813126; cv=none; b=trHMb9XEQ+3ssv9gaQbzHNX2bk1kpircD8yJbQZkQUUW4VMAhROnb3rFG96QtpB0qRQv/Zi6ySiqUXrEIzG8I9DlvOCJYInXLC7MRPVGTaGdgdeA98x0/iMQEo1+pd0hhXqGiWmf2UlJJ9viHVoBK2UvZXDnbjfYIgoiK2oeO4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813126; c=relaxed/simple; bh=JxZAi98bJh2EFZZxUJF8wxHETskWrgEBdk0MPxKb2JA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nVbuxFPq1/OLQ8MJf8UcHiKVMEEhQiOcvR1xl8Fee1bUPFHzPW9DQ0XMYjJ2sR+rj6PxCry4IhiCma4Q1Zn8woSpY8fpO2e3DUprRqg16k+d8LvR5P2wdDEUPXht7c952Us2sBStZ71zGonw02AKMfQmCc/iiPCim/+BfbaR2mY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UyxtZwD3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UyxtZwD3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E5FAC4CEE2; Wed, 16 Apr 2025 14:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813126; bh=JxZAi98bJh2EFZZxUJF8wxHETskWrgEBdk0MPxKb2JA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UyxtZwD3uPxpOctJkf/WlOAtQJUr7wmK39vbXi9mPjsovzoRaYufqzGIIRDmBpLvS 66qevxYiEZuTnk4pEoM9ne9jQk1AzP7nSjaVbvZCRllFklIXA0EUyA79Sx+PO8u8X4 uZRDypC3ezhDbZW0p5uIYnOqfOFEV/pJj6Jt4lWY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22125: md/raid1,raid10: don't ignore IO flags Date: Wed, 16 Apr 2025 16:13:36 +0200 Message-ID: <2025041629-CVE-2025-22125-ba0f@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2410; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JxZAi98bJh2EFZZxUJF8wxHETskWrgEBdk0MPxKb2JA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d53V2vvsy/pbx+cFGHycFRt3aYV5lGSj+p3DV6Y15 RcK3c2f3BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAXuckwTyF+9reJyd+STy/T mmmSKWelqTLNimF++Psf8v8NPYyPLPI4VnjD+NrH2MYMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: md/raid1,raid10: don't ignore IO flags If blk-wbt is enabled by default, it's found that raid write performance is quite bad because all IO are throttled by wbt of underlying disks, due to flag REQ_IDLE is ignored. And turns out this behaviour exist since blk-wbt is introduced. Other than REQ_IDLE, other flags should not be ignored as well, for example REQ_META can be set for filesystems, clearing it can cause priority reverse problems; And REQ_NOWAIT should not be cleared as well, because io will wait instead of failing directly in underlying disks. Fix those problems by keep IO flags from master bio. Fises: f51d46d0e7cb ("md: add support for REQ_NOWAIT") The Linux kernel CVE team has assigned CVE-2025-22125 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit 5404bc7a87b9949cf61e0174b21f80e73239ab25 and fixed in 6.14.2 with commit 8a0adf3d778c4a0893c6d34a9e1b0082a6f1c495 Issue introduced in 2.6.19 with commit 5404bc7a87b9949cf61e0174b21f80e73239ab25 and fixed in 6.15-rc1 with commit e879a0d9cb086c8e52ce6c04e5bfa63825a6213c 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-2025-22125 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: drivers/md/raid1.c drivers/md/raid10.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/8a0adf3d778c4a0893c6d34a9e1b0082a6f1c495 https://git.kernel.org/stable/c/e879a0d9cb086c8e52ce6c04e5bfa63825a6213c