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 CAE461DE3C9 for ; Tue, 5 Nov 2024 17:12:30 +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=1730826750; cv=none; b=BjK/d5+5oAYy+o3FpBAaMhZpARWQgKmOnFdwnxubLQRjYkC1FPMuv+t7gpORkLaPg42MBkEy9mhVluFWctZ1FmzWAp5mwTW46T2BtN9yQKz7B1pW8oBgQux4LxOOdT5iddqhg+RCTUOcAytI0Hwz+vOsJBHjDXxT1ZrELDM8BD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826750; c=relaxed/simple; bh=OBUhzi4xZrtuINc3OEcqrUyMPaz0gmNVdWKVP/+nc0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bXa9K/EgZOWfSGHHe7YZGI0NwlRGTF23LP4ed2wQmBYTEt4PafgatqGWcdoMPqgVk8wdo8ZNvG3wJKwHlg6rmDNNL6CM3LIhVP2CyfeUKfTW8PyE/QWovZObOXWoBQ24fAhFEDM3UBMGSZuFMdraR/njuRHKkqr4cJiUhcVhf7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=thtc5IOG; 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="thtc5IOG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1E45C4CECF; Tue, 5 Nov 2024 17:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826750; bh=OBUhzi4xZrtuINc3OEcqrUyMPaz0gmNVdWKVP/+nc0k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=thtc5IOG/Mrv1oVjCR6OMvKJJucXlHCA7tMDxDvSdO4hnBitLBrrNmU8vdbMgCta/ xAXz/lD1hvUsqBs/Kqp3QTVgHeXJKokpgxblRiUpReXkl7c4kzV3mkqKYyMEokXZnB QXPTVboJGnj3pzelSOtl5hl5B4CSn8lqzbh6JduI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50109: md/raid10: fix null ptr dereference in raid10_size() Date: Tue, 5 Nov 2024 18:10:58 +0100 Message-ID: <2024110554-CVE-2024-50109-b93c@gregkh> X-Mailer: git-send-email 2.47.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=1974; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OBUhzi4xZrtuINc3OEcqrUyMPaz0gmNVdWKVP/+nc0k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlagfNuyx1+L6AkpVn2pu8779x41Qy5O+zqb3a6TVaLP KYnNONiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykaT3DgrkGha1H1Djn+L5c Pc9x2WOVB3JHjzIsmDf9owZ73dOEggSurKZEjc03Pky6DQA= 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/raid10: fix null ptr dereference in raid10_size() In raid10_run() if raid10_set_queue_limits() succeed, the return value is set to zero, and if following procedures failed raid10_run() will return zero while mddev->private is still NULL, causing null ptr dereference in raid10_size(). Fix the problem by only overwrite the return value if raid10_set_queue_limits() failed. The Linux kernel CVE team has assigned CVE-2024-50109 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 3d8466ba68d4 and fixed in 6.11.6 with commit b3054db2fd2d Issue introduced in 6.9 with commit 3d8466ba68d4 and fixed in 6.12-rc5 with commit 825711e00117 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-2024-50109 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/b3054db2fd2d35f2eb3b4b5fb1407792f465391c https://git.kernel.org/stable/c/825711e00117fc686ab89ac36a9a7b252dc349c6