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 D0F921D554 for ; Tue, 19 Nov 2024 01:33:53 +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=1731980033; cv=none; b=ZrhUhx1F3npaKT2Cww3LYEE/lI0hp0K6AhAntt4eJc90ozBtIYdG3UbonAXov/2O5GxtjdO628SHbaV8XXF2ZPs9pbQaxq6MKh4g0xwsKKbeYNP/MdP8Tep+cuQ+WfpykUwydMe2DWAwJ4nxw6jV49kpPSQ7JxCSxClhpcrufrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980033; c=relaxed/simple; bh=Tkio/xyzyl31i/aj+OGR20GaMWj0d2bG6DNpxBPTcJA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JoyDJyidVaP9qCB07ZzivqObAAtVnwW10HdFKyGQvfytB3+RCEipWV1KAWTASd8roQAh+PPkRgpDNbEQlbXV2efuUAemSo0IN+jT2IN1M/VsCs9t77C/A2wBxZ/oRBoRWa4NEzNRVPtos/ffDoJM6YOvVpf4PpRNdbbFwiowIlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N0ZFrttA; 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="N0ZFrttA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 916D5C4CECC; Tue, 19 Nov 2024 01:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980033; bh=Tkio/xyzyl31i/aj+OGR20GaMWj0d2bG6DNpxBPTcJA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=N0ZFrttAqaL5JkTOQSafyBpPXcYTYpyjxdWsaUg2aWOg+OFv5XSYRcGVNSdvai0JG Fmvkcs0P8FgYu3jfXazvWqye9xwl2pKUCG7QP8Kk0akKCyTUUN8WtdLy+OYztvUHwQ BdepaS2M9u8hl4NJB8VRJjyJHHF8TFeAeg79OOXc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50277: dm: fix a crash if blk_alloc_disk fails Date: Tue, 19 Nov 2024 02:32:32 +0100 Message-ID: <2024111936-CVE-2024-50277-1fe3@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=1752; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Tkio/xyzyl31i/aj+OGR20GaMWj0d2bG6DNpxBPTcJA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr7b6C78WT1Z1Xrs5TvvU8+WXxK4H7rFwO8vz4Bir2 4bidb4VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRC+sY5hldP3P+S9Y83hPm v8oc0ws80zrmTmRY0DUxRuaagcey00ZhPbvkOKwTXU7mAwA= 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: dm: fix a crash if blk_alloc_disk fails If blk_alloc_disk fails, the variable md->disk is set to an error value. cleanup_mapped_device will see that md->disk is non-NULL and it will attempt to access it, causing a crash on this statement "md->disk->private_data = NULL;". The Linux kernel CVE team has assigned CVE-2024-50277 to this issue. Affected and fixed versions =========================== Fixed in 6.11.8 with commit d7aec2a06730 Fixed in 6.12 with commit fed13a547868 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-50277 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/dm.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/d7aec2a06730b774a97caaf48cbbc58330a85829 https://git.kernel.org/stable/c/fed13a5478680614ba97fc87e71f16e2e197912e