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 B18C531A540 for ; Fri, 19 Sep 2025 15:29:45 +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=1758295785; cv=none; b=USXjCfQ7ktQdTNf2IPMMT+0vYwgjluzBv4bXK1lpKK9o1V3L01A9gT32L4Et7+7JtCOmcGL5YSpHTnoCBbiuuokH5isAcYFIMrJVe2mYwRMr6msBuD6hww9L4s8trkhry/bAOchEX3rUGeEP15lGautBtd9IM0H5SiyzFmDSwrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295785; c=relaxed/simple; bh=wgEinkK1zTOEaYSKj9TTJg8tWxw2nQ0CbRrfdurMZvQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L/60II6lGdUimS/I500XNOHBdLaZjh+6BVJ57tM4bFaLTRRqCo2sCZTWRcax2r1HOAdADWa76rdiq2adW+t2qyLVnRwtV1a4QFvuIzp4GIcjWsG+C2rM0hvRU2AMXWrEWb0Y8EyuYX0FaT8XQaRn8LKC7nNDPeRq2fRmdeOdB5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IegwCYXD; 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="IegwCYXD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BF55C4CEF0; Fri, 19 Sep 2025 15:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295785; bh=wgEinkK1zTOEaYSKj9TTJg8tWxw2nQ0CbRrfdurMZvQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IegwCYXDo3KKy1mo2gA9TWJJ4GCE0F1ux1ozZtMkgLnyAT84eWtdRsXXYO6JGCTs9 GnwSdMbW5zP8NX8ufbabaWEefnU85lGMDqwyfVjhf6GlCnQe7T/LwNqnm5owvjRThe XN/q8s9sfVGb2+K50I1oZ4j1/TpRKDMvQyTdkNLM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39846: pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region() Date: Fri, 19 Sep 2025 17:28:10 +0200 Message-ID: <2025091903-CVE-2025-39846-0d36@gregkh> X-Mailer: git-send-email 2.51.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=3470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5U0ddn/OwC4sp/jXsERCpRLXW/un2HDTELtJlgvj5Wc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny5qvaZ85P8Hc9mwwW6hXVdzMpzIBsfzxly7+Lsl21 9+uJq/YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZvpthrrBdMtfxWn7Lh0pN T/exz2CeZLrxNMM8TZn1W6oa+75sZOfKP7byIfuMWotcAA== 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: pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region() In __iodyn_find_io_region(), pcmcia_make_resource() is assigned to res and used in pci_bus_alloc_resource(). There is a dereference of res in pci_bus_alloc_resource(), which could lead to a NULL pointer dereference on failure of pcmcia_make_resource(). Fix this bug by adding a check of res. The Linux kernel CVE team has assigned CVE-2025-39846 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 5.4.299 with commit b990c8c6ff50649ad3352507398e443b1e3527b2 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 5.10.243 with commit 5ff2826c998370bf7f9ae26fe802140d220e3510 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 5.15.192 with commit 4bd570f494124608a0696da070f00236a96fb610 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 6.1.151 with commit ce3b7766276894d2fbb07e2047a171f9deb965de Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 6.6.105 with commit 2ee32c4c4f636e474cd8ab7c19a68cf36072ea93 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 6.12.46 with commit fafa7450075f41d232bc785a4ebcbf16374f2076 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 6.16.6 with commit d7286005e8fde0a430dc180a9f46c088c7d74483 Issue introduced in 2.6.35 with commit 49b1153adfe18a3cce7e70aa26c690f275917cd0 and fixed in 6.17-rc5 with commit 44822df89e8f3386871d9cad563ece8e2fd8f0e7 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-39846 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/pcmcia/rsrc_iodyn.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/b990c8c6ff50649ad3352507398e443b1e3527b2 https://git.kernel.org/stable/c/5ff2826c998370bf7f9ae26fe802140d220e3510 https://git.kernel.org/stable/c/4bd570f494124608a0696da070f00236a96fb610 https://git.kernel.org/stable/c/ce3b7766276894d2fbb07e2047a171f9deb965de https://git.kernel.org/stable/c/2ee32c4c4f636e474cd8ab7c19a68cf36072ea93 https://git.kernel.org/stable/c/fafa7450075f41d232bc785a4ebcbf16374f2076 https://git.kernel.org/stable/c/d7286005e8fde0a430dc180a9f46c088c7d74483 https://git.kernel.org/stable/c/44822df89e8f3386871d9cad563ece8e2fd8f0e7