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 32BA934A3B5 for ; Wed, 24 Dec 2025 13:10:12 +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=1766581812; cv=none; b=pQQXvyf6LTw1pvW1J1TLjQZqlbwAatVKEN0WRRLL73HENsJS2RInZoZh5udYwaM/ieYI847l7wzd2K+CnTTKOpTZDI2lsuyIihh8kVC0K0+0j348vlI43CzvhD+ciZZk8PpvMUCyRlHMOaEvNm4k9T0Si9Zu42+VSIX/q5CbBr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581812; c=relaxed/simple; bh=USNqSn6V/lQeIj3AKtdRv42/3QI98crqQax9GiRsIzQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mTep6aPdmhoomH+V9gltZ6wivBFXhPpQGMtFz1C8Af2wkmiJzEhdbJG6Y1cxEs4vW1/k4niJr5RJUJBLnSfizFhfdlGbh88Klw5od8UYsyJEGGN5UtCaMNF7JdKEQ6lQfC23QHaCE/V7lKgF8qKdNn/OOYC5h/FZ/PBGCet0ZgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qP5TQw1E; 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="qP5TQw1E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5BCAC116D0; Wed, 24 Dec 2025 13:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581812; bh=USNqSn6V/lQeIj3AKtdRv42/3QI98crqQax9GiRsIzQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qP5TQw1EHB4yXu4FRTwF7a3K5zCxOl4Y1h6/W1fqXeSJY47zaE+VRWc31EaN8QFUj 9JEZ+ebXUVnRKP+CHwF+wvWfBe+7XuqiqoUFRA2+q9ZoR/a3ikkX1vYwxgz8XnS4Hz YgaE54PaTgiX8Rvdsoq0wcpRSj+OaRCEBpCTR83o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54115: pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db() Date: Wed, 24 Dec 2025 14:07:12 +0100 Message-ID: <2025122414-CVE-2023-54115-19b7@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3974; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=313aErd6w6Cw3buUdxVMhL0Hd8R4X1/Om/cnuy6WkwU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT915l9YtaZqu3/4s9biNn9ohD3W79ukHL0y3yPkx8 8PNJ6XPO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizEIM87T9XBWm3TgteuHp 05RnkTanFz/4FMyw4Mqio7wXODbe7vt9tc67Xt2I7UTMQwA= 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: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db() When nonstatic_release_resource_db() frees all resources associated with an PCMCIA socket, it forgets to free socket_data too, causing a memory leak observable with kmemleak: unreferenced object 0xc28d1000 (size 64): comm "systemd-udevd", pid 297, jiffies 4294898478 (age 194.484s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 f0 85 0e c3 00 00 00 00 ................ 00 00 00 00 0c 10 8d c2 00 00 00 00 00 00 00 00 ................ backtrace: [] __kmem_cache_alloc_node+0x2d7/0x4a0 [<7e51f0c8>] kmalloc_trace+0x31/0xa4 [] nonstatic_init+0x24/0x1a4 [pcmcia_rsrc] [] pcmcia_register_socket+0x200/0x35c [pcmcia_core] [] yenta_probe+0x4d8/0xa70 [yenta_socket] [] pci_device_probe+0x99/0x194 [<84b7c690>] really_probe+0x181/0x45c [<8060fe6e>] __driver_probe_device+0x75/0x1f4 [] driver_probe_device+0x28/0xac [<648b766f>] __driver_attach+0xeb/0x1e4 [<6e9659eb>] bus_for_each_dev+0x61/0xb4 [<25a669f3>] driver_attach+0x1e/0x28 [] bus_add_driver+0x102/0x20c [] driver_register+0x5b/0x120 [<942cd8a4>] __pci_register_driver+0x44/0x4c [] __UNIQUE_ID___addressable_cleanup_module188+0x1c/0xfffff000 [iTCO_vendor_support] Fix this by freeing socket_data too. Tested on a Acer Travelmate 4002WLMi by manually binding/unbinding the yenta_cardbus driver (yenta_socket). The Linux kernel CVE team has assigned CVE-2023-54115 to this issue. Affected and fixed versions =========================== Fixed in 4.14.324 with commit bde0b6da7bd893c37afaee3555cc3ac3be582313 Fixed in 4.19.293 with commit 2d45e2be0be35a3d66863563ed2591ee18a6897e Fixed in 5.4.255 with commit 22100df1d57f04cf2370d5347b9ef547f481deea Fixed in 5.10.192 with commit 04bb8af40a7729c398ed4caea7e66cedd2881719 Fixed in 5.15.128 with commit 97fd1c8e9c5aa833aab7e836760bc13103afa892 Fixed in 6.1.47 with commit e8a80cf06b4bb0396212289d651b384c949f09d0 Fixed in 6.4.12 with commit fd53a1f28faba2c4806c055e706a7721006291c1 Fixed in 6.5 with commit c85fd9422fe0f5d667305efb27f56d09eab120b0 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-2023-54115 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_nonstatic.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/bde0b6da7bd893c37afaee3555cc3ac3be582313 https://git.kernel.org/stable/c/2d45e2be0be35a3d66863563ed2591ee18a6897e https://git.kernel.org/stable/c/22100df1d57f04cf2370d5347b9ef547f481deea https://git.kernel.org/stable/c/04bb8af40a7729c398ed4caea7e66cedd2881719 https://git.kernel.org/stable/c/97fd1c8e9c5aa833aab7e836760bc13103afa892 https://git.kernel.org/stable/c/e8a80cf06b4bb0396212289d651b384c949f09d0 https://git.kernel.org/stable/c/fd53a1f28faba2c4806c055e706a7721006291c1 https://git.kernel.org/stable/c/c85fd9422fe0f5d667305efb27f56d09eab120b0