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 6CD001B040B for ; Thu, 29 May 2025 13:16:15 +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=1748524576; cv=none; b=icNvEeTS/OY88ksOPHtsr2QNjZ9nzFEkngJ9nnbaUGk26Ycqe8k9ygmrCcZLP4oci55EiAN8ixVSQa+ryG0ot8H+9w8mQeE+6ZqXVw7JDVMLjVFidajZP8/nS7whUWYj+lza19XYVuHMYjY3Jqk3gYjn42D+wO4+0zR8Hq+nhWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748524576; c=relaxed/simple; bh=O/bF0Gg+7bls2wJrFW3HRiK07wMQZNm9IkfHG7KDJgw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aqmMGaLmUb78u2ksyWEafl9FH0rE7vVpX8pC7JTgJ15BbonYgaJAkDV5Zaw1S+Ts0cr13ce69poXcfa3cXfHzaKHE/m95xUA9NNeWs3Kfataav9KRSh432Hk8A0jnrxJ7I0sn8gcXaFlk7NVmXSzmF2lpuDdkGyLKJx73e1Wp9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kA3Ivwl7; 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="kA3Ivwl7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF0FCC4CEE7; Thu, 29 May 2025 13:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748524575; bh=O/bF0Gg+7bls2wJrFW3HRiK07wMQZNm9IkfHG7KDJgw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kA3Ivwl7QW0bT1mHrqVaFp5LyVwKo3DBfCIWJwQs0agMuqhx8pmuJc4b8vcd5HnDX Y5KBIlcfg6IVfQ1up3NHEeZpPe8RmwQ32uE9OJCdlgRRE1iNCVuiY+nBtvpwJLofi6 ArYPIYwYx2X1+VJ8eysCs77uB0vQqq/u4giuwzmM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37995: module: ensure that kobject_put() is safe for module type kobjects Date: Thu, 29 May 2025 15:16:02 +0200 Message-ID: <2025052902-CVE-2025-37995-2117@gregkh> X-Mailer: git-send-email 2.49.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=3148; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ycvFcoy2rrWxM0sNjjpBDgQq+HQUpB4hci29bL8qcTY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkWcUL/pvNde9M2bVLmI84nXr8mLTggu54j4ybzw6NTH fPkDqoYd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjnsyzNP/6/fwdq7TX+6q 9ecz53seVvNjiGNYsHmSz1StB4sV1+pVTDLbw/vTqUphOwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: module: ensure that kobject_put() is safe for module type kobjects In 'lookup_or_create_module_kobject()', an internal kobject is created using 'module_ktype'. So call to 'kobject_put()' on error handling path causes an attempt to use an uninitialized completion pointer in 'module_kobject_release()'. In this scenario, we just want to release kobject without an extra synchronization required for a regular module unloading process, so adding an extra check whether 'complete()' is actually required makes 'kobject_put()' safe. The Linux kernel CVE team has assigned CVE-2025-37995 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 5.15.183 with commit f1c71b4bd721a4ea21da408806964b10468623f2 Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 6.1.139 with commit 9e7b49ce4f9d0cb5b6e87db9e07a2fb9e754b0dd Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 6.6.91 with commit faa9059631d3491d699c69ecf512de9e1a3d6649 Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 6.12.29 with commit d63851049f412cdfadaeef7a7eaef5031d11c1e9 Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 6.14.7 with commit 31d8df3f303c3ae9115230820977ef8c35c88808 Issue introduced in 3.12 with commit 942e443127e928a5631c3d5102aca8c8b3c2dd98 and fixed in 6.15 with commit a6aeb739974ec73e5217c75a7c008a688d3d5cf1 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-2025-37995 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/params.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/f1c71b4bd721a4ea21da408806964b10468623f2 https://git.kernel.org/stable/c/9e7b49ce4f9d0cb5b6e87db9e07a2fb9e754b0dd https://git.kernel.org/stable/c/faa9059631d3491d699c69ecf512de9e1a3d6649 https://git.kernel.org/stable/c/d63851049f412cdfadaeef7a7eaef5031d11c1e9 https://git.kernel.org/stable/c/31d8df3f303c3ae9115230820977ef8c35c88808 https://git.kernel.org/stable/c/a6aeb739974ec73e5217c75a7c008a688d3d5cf1