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 30A062EE61E for ; Fri, 25 Jul 2025 15:29: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=1753457386; cv=none; b=KaoQxudiMC0xlsz6tDRnmMaN6fAXmp+WgYnsH4GYOYnaOFqDO5PoCwQwI7MYSvL91/Cht5wvA9I4mJ27aYXurzIEoPDZA+CeOI/c0ByjTvwj2LjmfB1cE8X4rkLt6TpxZcDg4B0J1ROlCC88v/QrCQZZM/UIIvA1qjROhLCwMy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457386; c=relaxed/simple; bh=LBzNiBWpuW6mcQsZRgjxPQf5JeSq1VtuZqTeMAV+ofk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IKy9B/K5Vw0PBPPHZsK9K8axHg93pyEhn7NbbR1g3JfKeI6WadLpwuuTu9Uw+Yo1Hau0pHsZPHoLZVvnj5nrjjxujyTRWRqGSAxOhiPBAumrQEb46cLSKshes2TSaJtXMmauherFkXFfCaGpwDJpEEajzLcey8mEFdXmGHqedpE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M4NzVkg0; 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="M4NzVkg0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B391C4CEE7; Fri, 25 Jul 2025 15:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457386; bh=LBzNiBWpuW6mcQsZRgjxPQf5JeSq1VtuZqTeMAV+ofk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=M4NzVkg0Z0EZFqcClGh0nyvWZvPBPrOIwGQ9z8sQbarayk6t/ZjS4LaPacag5O75a Zn8tz86BSUv83cMI7vGRRrqYLNncf7a4nE5/9AsJr4ilcu8s9kcRlwacbAowlyP/xs xKAUA9pMaXHZckziiowNJtbbKJ/VSnBea9M5TtWM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38444: raid10: cleanup memleak at raid10_make_request Date: Fri, 25 Jul 2025 17:28:06 +0200 Message-ID: <2025072503-CVE-2025-38444-4b60@gregkh> X-Mailer: git-send-email 2.50.1 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=3818; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=619PIVyJTgvjK8NcEmvVz7v5pxqYgkyZmvfNpJlF+ts=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi5qPRnzk+v8/Zs/E2k8bxWZIbVHYrNVrlMBvyXK9Q F3fVOdGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkzFSG+T5mZyeeZZt5ojNN N8lH2yhI9dc9K4b5uUy7kyMZrD+V8qjpzuJx/1of8ucvAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: raid10: cleanup memleak at raid10_make_request If raid10_read_request or raid10_write_request registers a new request and the REQ_NOWAIT flag is set, the code does not free the malloc from the mempool. unreferenced object 0xffff8884802c3200 (size 192): comm "fio", pid 9197, jiffies 4298078271 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 88 41 02 00 00 00 00 00 .........A...... 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc c1a049a2): __kmalloc+0x2bb/0x450 mempool_alloc+0x11b/0x320 raid10_make_request+0x19e/0x650 [raid10] md_handle_request+0x3b3/0x9e0 __submit_bio+0x394/0x560 __submit_bio_noacct+0x145/0x530 submit_bio_noacct_nocheck+0x682/0x830 __blkdev_direct_IO_async+0x4dc/0x6b0 blkdev_read_iter+0x1e5/0x3b0 __io_read+0x230/0x1110 io_read+0x13/0x30 io_issue_sqe+0x134/0x1180 io_submit_sqes+0x48c/0xe90 __do_sys_io_uring_enter+0x574/0x8b0 do_syscall_64+0x5c/0xe0 entry_SYSCALL_64_after_hwframe+0x76/0x7e V4: changing backing tree to see if CKI tests will pass. The patch code has not changed between any versions. The Linux kernel CVE team has assigned CVE-2025-38444 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.111 with commit 39db562b3fedb93978a7e42dd216b306740959f8 and fixed in 5.15.189 with commit 10c6021a609deb95f23f0cc2f89aa9d4bffb14c7 Issue introduced in 5.17 with commit c9aa889b035fca4598ae985a0f0c76ebbb547ad2 and fixed in 6.1.146 with commit 9af149ca9d0dab6e59e813519d309eff62499864 Issue introduced in 5.17 with commit c9aa889b035fca4598ae985a0f0c76ebbb547ad2 and fixed in 6.6.99 with commit 8fc3d7b23d139e3cbc944c15d99b3cdbed797d2d Issue introduced in 5.17 with commit c9aa889b035fca4598ae985a0f0c76ebbb547ad2 and fixed in 6.12.39 with commit 2941155d9a5ae098b480d551f3a5f8605d4f9af5 Issue introduced in 5.17 with commit c9aa889b035fca4598ae985a0f0c76ebbb547ad2 and fixed in 6.15.7 with commit ed7bcd9f617e4107ac0813c516e72e6b8f6029bd Issue introduced in 5.17 with commit c9aa889b035fca4598ae985a0f0c76ebbb547ad2 and fixed in 6.16-rc6 with commit 43806c3d5b9bb7d74ba4e33a6a8a41ac988bde24 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-38444 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/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/10c6021a609deb95f23f0cc2f89aa9d4bffb14c7 https://git.kernel.org/stable/c/9af149ca9d0dab6e59e813519d309eff62499864 https://git.kernel.org/stable/c/8fc3d7b23d139e3cbc944c15d99b3cdbed797d2d https://git.kernel.org/stable/c/2941155d9a5ae098b480d551f3a5f8605d4f9af5 https://git.kernel.org/stable/c/ed7bcd9f617e4107ac0813c516e72e6b8f6029bd https://git.kernel.org/stable/c/43806c3d5b9bb7d74ba4e33a6a8a41ac988bde24