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 983295733E for ; Tue, 30 Dec 2025 12:15:26 +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=1767096926; cv=none; b=KYzjkDcRiSgQ4irRTJBTnDYEy+Xdw26bv+PsV8v8lRs6a74iVepqMe3/8KEDD+2iDWrKR+/qS4j6ityHGFJJqheMYIAzSmFx5coWvbJ8Mn6Mb8boB3JvCz/wvhmYO4blIZ1meRxrbPKoSn3J2A+B3sf8WCRKP5MBxB379RIoVac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096926; c=relaxed/simple; bh=+52NlJDCC6qT5adQeifLx6K9AtLvCmsB8LNZHcWroSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eMzc7DNwf+SRrv/4ROp2UwkA7W/TJE/qqltjSfU+HrEmSK7Xp+Diqd8iwqzIrmnzqWeo6YiBTYGexdtwTguBuWmkG0wFPc5dWQ6VDZWpGTW3SupKd8CnAdeOnJqVkGuwjI6/O7Na0sR/xJu+NHc99g2KBQ9H2oapbZvz8z4+xxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k1YA1qdm; 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="k1YA1qdm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE261C4CEFB; Tue, 30 Dec 2025 12:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096926; bh=+52NlJDCC6qT5adQeifLx6K9AtLvCmsB8LNZHcWroSQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=k1YA1qdmC9JhybSnP+cn8RP/XVQVhczlnbmusFgiTt7euvTQ5iZWv9kTynqFV7moq yg2PtsoiAhlR1g4ClcWRm65vHb8vHb45BXmElGUdaKGB/DAci7Mw/f/e1SLtgTs3st pnjmbLnfhiiyuGXdVQs0Y7glucD1RogCjpuMOYuk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54225: net: ipa: only reset hashed tables when supported Date: Tue, 30 Dec 2025 13:13:55 +0100 Message-ID: <2025123028-CVE-2023-54225-e49c@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=3381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CZ0dOnFO9Cy1/ZdhHdEV5M0qPiSXNSPbC/H1NTMeflI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB18qppx48Nxf0kVwpta7H0zv7+691StXd8xU9meGa GPhwQlbO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiFtcZFmwTnc1XJ/5hv3em LN+5kMcnni2dt4lhrqDdrcT17F0+dzZ/YnwsJhvUXmnTBQA= 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: net: ipa: only reset hashed tables when supported Last year, the code that manages GSI channel transactions switched from using spinlock-protected linked lists to using indexes into the ring buffer used for a channel. Recently, Google reported seeing transaction reference count underflows occasionally during shutdown. Doug Anderson found a way to reproduce the issue reliably, and bisected the issue to the commit that eliminated the linked lists and the lock. The root cause was ultimately determined to be related to unused transactions being committed as part of the modem shutdown cleanup activity. Unused transactions are not normally expected (except in error cases). The modem uses some ranges of IPA-resident memory, and whenever it shuts down we zero those ranges. In ipa_filter_reset_table() a transaction is allocated to zero modem filter table entries. If hashing is not supported, hashed table memory should not be zeroed. But currently nothing prevents that, and the result is an unused transaction. Something similar occurs when we zero routing table entries for the modem. By preventing any attempt to clear hashed tables when hashing is not supported, the reference count underflow is avoided in this case. Note that there likely remains an issue with properly freeing unused transactions (if they occur due to errors). This patch addresses only the underflows that Google originally reported. The Linux kernel CVE team has assigned CVE-2023-54225 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit d338ae28d8a866c57fcac38f3d77bcc1d1702d19 and fixed in 6.1.45 with commit 50c24f0c940728792c8bdf65c1eaf6b91b3b0dcd Issue introduced in 6.1 with commit d338ae28d8a866c57fcac38f3d77bcc1d1702d19 and fixed in 6.4.8 with commit c00af3a818cc573e10100cc6770f0e47befa1fa4 Issue introduced in 6.1 with commit d338ae28d8a866c57fcac38f3d77bcc1d1702d19 and fixed in 6.5 with commit e11ec2b868af2b351c6c1e2e50eb711cc5423a10 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-54225 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/net/ipa/ipa_table.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/50c24f0c940728792c8bdf65c1eaf6b91b3b0dcd https://git.kernel.org/stable/c/c00af3a818cc573e10100cc6770f0e47befa1fa4 https://git.kernel.org/stable/c/e11ec2b868af2b351c6c1e2e50eb711cc5423a10