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 903A4146A62 for ; Sat, 17 Aug 2024 09:13:14 +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=1723885994; cv=none; b=V1CcWwMNTZMy19ae/hVX1VkxRZcYEuTRg1KDZcE49WLQ8IZbPTw3FVdT5XtibZyfRQ7dC5V1m82GStTlfXv7AVFmQblvx5b/GlvZfcHOvkYm1KWawTzzI1vmjkDrzFIkdVjHYZiC8t91I9VXR0mQ4ZKHJPxwvsSAa5UEZWAAuHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885994; c=relaxed/simple; bh=AESZA/bXsi5KxGr5Nc6IEd3AMDXw5CS8QFnIVVPss4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q50NH3PwvmiL6HIhjTWy0DNn+XOBGdyrHERh3bAgRRrtHY9u1Gdi0tejaxRexWrmfeHFBKgZKzCKf0noymcep7aULT4CqvA6ShLadOtlA5R9s+opJaEx9BP7pJsrVi8Wo6T4icBjG3cMu+7lwk49Aee/kZiLO+jjAZOfABOOLTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PwdeG1NJ; 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="PwdeG1NJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B680C116B1; Sat, 17 Aug 2024 09:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885994; bh=AESZA/bXsi5KxGr5Nc6IEd3AMDXw5CS8QFnIVVPss4c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PwdeG1NJLTss1e92g/ZUqA3TugXGLyTu359XuGZEfSvQg8lrC3+4r0aJeUH7pGc/J w37lvtRKX3b3vDLBUn/rm81jhP20jZEshe0BdYa3JKa9ctAOQMrPurb15yhgpN/Hqt jiY50MB6iEUUvMsOutFFDjcphgBbdHbLze4XnkFA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42320: s390/dasd: fix error checks in dasd_copy_pair_store() Date: Sat, 17 Aug 2024 11:10:25 +0200 Message-ID: <2024081754-CVE-2024-42320-cdea@gregkh> X-Mailer: git-send-email 2.46.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=2347; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AESZA/bXsi5KxGr5Nc6IEd3AMDXw5CS8QFnIVVPss4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMh6Z3vu4befarSJGQVIrPofclVt1+mB2oPwJIWGl2 qSiR982d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHv9mWHBF0vFWaYzk89j6 3YH7000yArZM6WGYw2UuuvXGn1ObFp7famPxZpv5L9HbHwE= 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: s390/dasd: fix error checks in dasd_copy_pair_store() dasd_add_busid() can return an error via ERR_PTR() if an allocation fails. However, two callsites in dasd_copy_pair_store() do not check the result, potentially resulting in a NULL pointer dereference. Fix this by checking the result with IS_ERR() and returning the error up the stack. The Linux kernel CVE team has assigned CVE-2024-42320 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit a91ff09d39f9 and fixed in 6.1.103 with commit cc8b7284d507 Issue introduced in 6.1 with commit a91ff09d39f9 and fixed in 6.6.44 with commit e511167e65d3 Issue introduced in 6.1 with commit a91ff09d39f9 and fixed in 6.10.3 with commit 68d4c3722290 Issue introduced in 6.1 with commit a91ff09d39f9 and fixed in 6.11-rc1 with commit 8e64d2356cbc Issue introduced in 5.15.153 with commit 932600a295cc 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-42320 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/s390/block/dasd_devmap.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/cc8b7284d5076722e0b8062373b68d8e47c3bace https://git.kernel.org/stable/c/e511167e65d332d07b3c7a3d5a741ee9c19a8c27 https://git.kernel.org/stable/c/68d4c3722290ad300c295fb3435e835d200d5cb2 https://git.kernel.org/stable/c/8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8