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 1BABB3043BA for ; Wed, 12 Nov 2025 10:24:16 +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=1762943057; cv=none; b=t2WUB5HlTJSOmrWnRrNvIis9lkZHB8jeSHt6B3AaAZhO6NVwI9mFjdeznJtDJz3iLpAkIkXo6Ot11IYDjAQz8SxgCxQBCTy4/GwHJXFr2HN+60Mf2srhOxajpFReDNAM+gdCnKR/ksXgcfkZ3+DAu/04ELPLaXvkWiwax/o5R0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943057; c=relaxed/simple; bh=98Un+FFA9XltejHG1w9KwPd+x7x8MSTMfZz8qDnZFM0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OxC+TFMQw8h9sfQB7uk+zkewwZFwey7wvYpxKmL5IFqRHsxBFbhkQaY9a2cWCD0RraWfbDw/hBYDFp5MHUMkRZ6LgYg0sjCwl+n9ayBAaK3xLjGU1Z3ockd6jfkAQjUxyXEVM5tnmkPYXcyDvMlwveICDv7jtRRFW/HjjhsofGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j5MltFBx; 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="j5MltFBx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D14CC4CEF5; Wed, 12 Nov 2025 10:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943056; bh=98Un+FFA9XltejHG1w9KwPd+x7x8MSTMfZz8qDnZFM0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j5MltFBx9EcJBGzy0lxdcZVCT4joK3u/AyAv5o7EjhGEHh37XJkTX3zgCYeS1zvGj S5Fyp+wHKDiD6UPiJUWC6jzddiZ4bYvwDxdDxlC5BucX7wAtgLT71j92G8Dokz3z5x eyYbSOtEDuQxyZecHHNOX/YKEanno6XeQ0YFXMCk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40129: sunrpc: fix null pointer dereference on zero-length checksum Date: Wed, 12 Nov 2025 19:24:05 +0900 Message-ID: <2025111254-CVE-2025-40129-fbb4@gregkh> X-Mailer: git-send-email 2.51.2 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=2493; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=766CJGrCZMzw0isigBhjqdo1KHnvhqvGeVVJD/PO5gA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCVaXIm/8OZTWvz9W/UbV7YdT1TQ3uDAYPD3NqMZ+m /fUmauSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/McM86t/PdKcnGq23qxS XjJi6lzLieqPrRkWzJvr8thipaRoysGtwgyBex/+lDzGBAA= 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: sunrpc: fix null pointer dereference on zero-length checksum In xdr_stream_decode_opaque_auth(), zero-length checksum.len causes checksum.data to be set to NULL. This triggers a NPD when accessing checksum.data in gss_krb5_verify_mic_v2(). This patch ensures that the value of checksum.len is not less than XDR_UNIT. The Linux kernel CVE team has assigned CVE-2025-40129 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 0653028e8f1c97fec30710813a001ad8a2ec34f4 and fixed in 6.6.112 with commit 81cec07d303186d0d8c623ef8b5ecd3b81e94cf6 Issue introduced in 6.3 with commit 0653028e8f1c97fec30710813a001ad8a2ec34f4 and fixed in 6.12.53 with commit affc03d44921f493deaae1d33151e3067a6f9f8f Issue introduced in 6.3 with commit 0653028e8f1c97fec30710813a001ad8a2ec34f4 and fixed in 6.17.3 with commit ab9a70cd2386a0d70c164b0905dd66bc9af52e77 Issue introduced in 6.3 with commit 0653028e8f1c97fec30710813a001ad8a2ec34f4 and fixed in 6.18-rc1 with commit 6df164e29bd4e6505c5a2e0e5f1e1f6957a16a42 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-40129 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/sunrpc/auth_gss/svcauth_gss.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/81cec07d303186d0d8c623ef8b5ecd3b81e94cf6 https://git.kernel.org/stable/c/affc03d44921f493deaae1d33151e3067a6f9f8f https://git.kernel.org/stable/c/ab9a70cd2386a0d70c164b0905dd66bc9af52e77 https://git.kernel.org/stable/c/6df164e29bd4e6505c5a2e0e5f1e1f6957a16a42