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 39E3233086 for ; Sun, 29 Dec 2024 11:30:23 +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=1735471824; cv=none; b=Wacr1s8a+U3xODHhx6GWi8ZaqENOODv3PSN2yUMvb4zohZcNLHmIuqO/6uOABQoquvih/P6t29D5HzyrynpGcAFjetv8+7T1My3DtVK0iBYY+RfGBs/i+1bNMKPDLSJHA32CzxWmhSBv7KrhkhISEuf+HtaYol4j21F4D8wFq0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471824; c=relaxed/simple; bh=AYJW6G75Tdp7JHVbkZwQ0IFDeFRJ63GGeLJ7Y97EdEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cusf1yqVbAQ2N32ZmRphoUHWgm/dvgPeD+dY/UflmoE9EDnt0lweodqU9qhSvIyG1W+h6y/PeKkr1WAuLxGAe4xuoC+nmI1hGPX5O6Lz2U8qLY06NCDQu1tllsEgJOrp3tP4cLDwYrAGKcyWmYQqmdNFKIZnLXZ4Q/Dr52Jc8sM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KtiAiDiD; 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="KtiAiDiD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 819C5C4CED1; Sun, 29 Dec 2024 11:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471823; bh=AYJW6G75Tdp7JHVbkZwQ0IFDeFRJ63GGeLJ7Y97EdEk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KtiAiDiDuIpsLKVgfW/7fAKK8u0YPgBkf+5UFwaUdw3XSLqqSYHbCXjlz+LRB9THH dA7AqTIIJLnlonVFsDPhVi+niYowJoCEomeP8dwySa2QOOMSU+meKbyp9c1ARemrKX BBqQBvaAurabXSl/P6m3MBTB9tunrp6nB0oGqFf0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56730: net/9p/usbg: fix handling of the failed kzalloc() memory allocation Date: Sun, 29 Dec 2024 12:29:31 +0100 Message-ID: <2024122924-CVE-2024-56730-3e54@gregkh> X-Mailer: git-send-email 2.47.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=2074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AYJW6G75Tdp7JHVbkZwQ0IFDeFRJ63GGeLJ7Y97EdEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRlP9vW/9OvBnqmDrYYGlLB+/6C/0benbvM/+lMyM/ 1tueAs96ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJBL1imJ8l/r3Y4cEXjU2b Xi1Pds07U1zBmsqw4GLltzbD1w0edRqFE2qMFulI73yYCQA= 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: net/9p/usbg: fix handling of the failed kzalloc() memory allocation On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the following error report: ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns NULL not ERR_PTR on failure kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion. The Linux kernel CVE team has assigned CVE-2024-56730 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit a3be076dc174d9022a71a12554feb4c97b5c4d5c and fixed in 6.12.2 with commit 2cdb416de8b5795fd25fadcb69e1198b6df6d8cc Issue introduced in 6.12 with commit a3be076dc174d9022a71a12554feb4c97b5c4d5c and fixed in 6.13-rc1 with commit ff1060813d9347e8c45c8b8cff93a4dfdb6726ad 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-56730 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: net/9p/trans_usbg.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/2cdb416de8b5795fd25fadcb69e1198b6df6d8cc https://git.kernel.org/stable/c/ff1060813d9347e8c45c8b8cff93a4dfdb6726ad