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 6CE9B30F526 for ; Tue, 28 Oct 2025 11:52: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=1761652335; cv=none; b=KZG9eHVnE+BIwahx6ZxQWJoe9nQ5AfGgZpOm6Z2KJ5vXPwxP5dydVsegLnsEVbnQx59C7v/TRzT0S7XuiUQepRhAucxNYFyGWWQJ7NHgNnvMjHlx0gRv6uvf9waD1tcycyz8K9BKt/aEtVm74SxE05DzADCPuVFFjpKawn2EZY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652335; c=relaxed/simple; bh=yyn6Mvd6Pesff130TljmFUb2uOLEOJMWz1kpP44UMBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rck3uh5lsHPbeFkWgmYPvZgbvbUZHg9gZU0msFmLy2NUIzfA2z7mkQzAAt1nR6fFimJC3vnpOV/FISfUAuQSXkMNxPboB1/fAOBiZActKqPza6iTO1gZTd2cqqYeo4ykmLuW86jFZvoI6gQJlpJm/RuDnLfzIIw1vm47VAhNY5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xtg0NzPp; 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="Xtg0NzPp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E987C4CEE7; Tue, 28 Oct 2025 11:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652335; bh=yyn6Mvd6Pesff130TljmFUb2uOLEOJMWz1kpP44UMBk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Xtg0NzPpSm/dVQ+w0AP6KHNSMTBakpBySINvyOrbiBfIoow1MvqWxjw/XJespilFU FNppwU5uLpEUw4syhiR5jxki8pww8q5iG9DLKDUqITHKhx7R4cyiTn8+tDpfs1Gxn7 TJg6ibUyjIx6OAK7UzcZgjKtalVz5VZOjHiw7CkE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40029: bus: fsl-mc: Check return value of platform_get_resource() Date: Tue, 28 Oct 2025 12:48:06 +0100 Message-ID: <2025102807-CVE-2025-40029-1508@gregkh> X-Mailer: git-send-email 2.51.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=2842; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GG7r3MVvQWlGRp3IPY3lp7zkv3nTZ+Rb/tobnT0Dojw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa8unr71iVH/omdyczHsbjI2bmdR3K/pNPe9gev/sy +gHE7XOd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1EUY5um42kVvnMe6Sp3F 5mL3bcNltgfsfzAs6NsfcN755HrdbZv4tzJ+a2r5POnDOQA= 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: bus: fsl-mc: Check return value of platform_get_resource() platform_get_resource() returns NULL in case of failure, so check its return value and propagate the error in order to prevent NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2025-40029 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 5.15.195 with commit 8a4dd74fe413d4a278e649be1d22d028e1667116 Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 6.1.156 with commit e60d55692e6c8e951000343c39f3fc92cab57efc Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 6.6.112 with commit 78e87b8a3cf8a59671ea25c87192d16e8d710e1c Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 6.12.53 with commit 84ec0482ed9c9ed0aee553a5e7e7458ad79c021f Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 6.17.3 with commit 2ead548473f58c7960b6b939b79503c4a0a2c0bd Issue introduced in 5.9 with commit 6305166c8771c33a8d5992fb53f93cfecedc14fd and fixed in 6.18-rc1 with commit 25f526507b8ccc6ac3a43bc094d09b1f9b0b90ae 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-40029 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/bus/fsl-mc/fsl-mc-bus.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/8a4dd74fe413d4a278e649be1d22d028e1667116 https://git.kernel.org/stable/c/e60d55692e6c8e951000343c39f3fc92cab57efc https://git.kernel.org/stable/c/78e87b8a3cf8a59671ea25c87192d16e8d710e1c https://git.kernel.org/stable/c/84ec0482ed9c9ed0aee553a5e7e7458ad79c021f https://git.kernel.org/stable/c/2ead548473f58c7960b6b939b79503c4a0a2c0bd https://git.kernel.org/stable/c/25f526507b8ccc6ac3a43bc094d09b1f9b0b90ae