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 383502E11A6 for ; Thu, 9 Oct 2025 12:13:29 +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=1760012009; cv=none; b=JSwAkxnULEuef//2dE281aKxn3AeF0HGTSzZ/EkTiBtImcshPWj/8WtqgSWa/UkGwGkOQJVilEcSSDmPMfUAi4K1a0ajRW5c8sTsFUiREe/eYB387/YN4L0TTErdZgvosshXhjAWD+JyLY7rvlGEkzqmzOgmBu2LYI/Dc4+DsWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760012009; c=relaxed/simple; bh=+hViiGLKKVg1Tnsmlre0Mq+2f1XtXEl0sL2TDKYWSwU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f9FobXNoIqoL8idroIplUlgtFfTenTGoUzUMEnjSo8oYPWgSM/h8GQfU1TbEUVe1jQGXQW4GjRXKBCVBTjoVIpILt6RHyZH7MVbQsXSi7Lj0GlP60nq6ZDSfYodX5pMU8FKGc7okl7ThyHIv0eM32kryaHSgRb87+q1krPwjwKY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eF2rerU5; 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="eF2rerU5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81F65C4CEE7; Thu, 9 Oct 2025 12:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760012009; bh=+hViiGLKKVg1Tnsmlre0Mq+2f1XtXEl0sL2TDKYWSwU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eF2rerU529At/qcd3++SPN0eSlBHEWqx1ASF3C0K90O0n4ERPEXkkOrZMPuu1SUTd qtnCXoWYqQ9KsQzmskKrzpePtCLc2gJFHWkI0atm9AmrTVHis9ubHhXhqjJM+Ogwf/ +56E01ru2T1L90LM8BJn87Uv8nI93JsDiQ/3ON8E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39962: rxrpc: Fix untrusted unsigned subtract Date: Thu, 9 Oct 2025 14:13:17 +0200 Message-ID: <2025100917-CVE-2025-39962-c0e0@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=2175; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JO8zmyyyfX5ubiwj2IBNXayCW4BrADsEoiZqJvSSj+M=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnPl939d9/q5O99D2STY+/ZzXvksSj5dv7KLx5Zl0T+b l60Zadfa0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Ox7hgXrVj6Yvvfce5E9 L7adDsr5l/9sjmYuw3wn8/Y3kvPeN4ifiKpb1vTh1ImdPL8A 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: rxrpc: Fix untrusted unsigned subtract Fix the following Smatch static checker warning: net/rxrpc/rxgk_app.c:65 rxgk_yfs_decode_ticket() warn: untrusted unsigned subtract. 'ticket_len - 10 * 4' by prechecking the length of what we're trying to extract in two places in the token and decoding for a response packet. Also use sizeof() on the struct we're extracting rather specifying the size numerically to be consistent with the other related statements. The Linux kernel CVE team has assigned CVE-2025-39962 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 9d1d2b59341f58126a69b51f9f5f8ccb9f12e54a and fixed in 6.16.9 with commit 71571e187106631a8127f2dde780f35caa358d33 Issue introduced in 6.16 with commit 9d1d2b59341f58126a69b51f9f5f8ccb9f12e54a and fixed in 6.17 with commit 2429a197648178cd4dc930a9d87c13c547460564 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-39962 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: net/rxrpc/rxgk_app.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/71571e187106631a8127f2dde780f35caa358d33 https://git.kernel.org/stable/c/2429a197648178cd4dc930a9d87c13c547460564