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 E31641DED42 for ; Wed, 26 Feb 2025 01:59:18 +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=1740535159; cv=none; b=ZO9c2Y0ymng+VytWTrRYOA3IQjLJuNxmaqin9EQqP8Rq2IH3t1DVvlfCJnkRm3zNoRKBhXdFBdlwZkR+hnyjQm9/DrHEqhjv+SDCdzRldm9HA1T+NWqZABrSrP+sfoRLncGog5sW3NDlss5reeWgOZHMk8erBSq//OHPr5QFC0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535159; c=relaxed/simple; bh=/OmzwivTDo6U4iUYuzwlK34VJaZ1Np8fvmXpmyiKOBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AubcPZfwg5uaS+KM3sWPVodmPDETm+2gGYhFZQU4ktZrUb+wDVceUvk0ahOs9x2jyvhcAicXEEimqUPCfhu04UpOIYPR3MzpP8e1Gi6zxMg5Q8IOTU4SssWlFk1f68TJr2Db4DDdp83DuABf2e8MFy7VqIx7osaYx+Y6f9Jc0HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1ay7mx27; 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="1ay7mx27" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB1C4C4CEDD; Wed, 26 Feb 2025 01:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535158; bh=/OmzwivTDo6U4iUYuzwlK34VJaZ1Np8fvmXpmyiKOBg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1ay7mx27WHj+phbIYsJOmMLvsbEuLkAduFoSuPZ3eJjp7bEBRVwrB6+cHu3zhQ/9J bR0ZWGg48qyTKwBWWrARFWTlxI+2H/L6CbUWI9237cs/Lxq8miPX2Aj+kdhGj0SOxp XJcxN+qMPlCtEGaueUq7cQHa3ZgaUdo8sAXNg2W8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49190: kernel/resource: fix kfree() of bootmem memory again Date: Wed, 26 Feb 2025 02:56:35 +0100 Message-ID: <2025022616-CVE-2022-49190-3c68@gregkh> X-Mailer: git-send-email 2.48.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=2603; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/OmzwivTDo6U4iUYuzwlK34VJaZ1Np8fvmXpmyiKOBg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sjxevj3Oc/7AAtdNE77bVc/cwLW7wfn/rXe+r9qEn wnZFZsydMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvH0Z5mkUFU3hz/vLkfP4 Eds1uTOTtua07mKYH9I9Xcp9obP9j73mvjatLov7Dzo/BwA= 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: kernel/resource: fix kfree() of bootmem memory again Since commit ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory"), we could get a resource allocated during boot via alloc_resource(). And it's required to release the resource using free_resource(). Howerver, many people use kfree directly which will result in kernel BUG. In order to fix this without fixing every call site, just leak a couple of bytes in such corner case. The Linux kernel CVE team has assigned CVE-2022-49190 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit ebff7d8f270d045338d9f4796014f4db429a17f9 and fixed in 5.15.33 with commit a9e88c2618d228d7a4e7e515cf30dc0d0d813f27 Issue introduced in 3.10 with commit ebff7d8f270d045338d9f4796014f4db429a17f9 and fixed in 5.16.19 with commit d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8 Issue introduced in 3.10 with commit ebff7d8f270d045338d9f4796014f4db429a17f9 and fixed in 5.17.2 with commit ab86020070999e758ce2e60c4348f20bf7ddba56 Issue introduced in 3.10 with commit ebff7d8f270d045338d9f4796014f4db429a17f9 and fixed in 5.18 with commit 0cbcc92917c5de80f15c24d033566539ad696892 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-2022-49190 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: kernel/resource.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/a9e88c2618d228d7a4e7e515cf30dc0d0d813f27 https://git.kernel.org/stable/c/d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8 https://git.kernel.org/stable/c/ab86020070999e758ce2e60c4348f20bf7ddba56 https://git.kernel.org/stable/c/0cbcc92917c5de80f15c24d033566539ad696892