Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 46FA938237A for ; Sat, 15 Aug 2026 06:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775672; cv=none; b=t6cCd6k4z17uqd1o+x29nZIYhr4nOXaGQqAA3yzrG/Y/RttWfzCkQdPMA4ZOyU3MpIEfCLzsTnksGsGdm6FwP+Kbs181hNgTCy1BwaBXYyUXoGrzznkk4WVAXoxiPdK5PYT1I1xCAZVdVIqg4ZJfG9TL+SvRoY7N4kDe4MFM3Cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775672; c=relaxed/simple; bh=xnFkqMb4445+maJS2M5SSaxbMDCyPnEMKYAmJMkHOJY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AchW3k5hG/n5hg3VmqRCYYDR15qn2g75GUfKVOWwafK8snvM5LGYEXFpgU8NPcEwBfOtTAZpnoNGM73YaS62q3zPNY9QrxQnZlJOm/SNSRDGQSQVE+m1oD+aHODMbtDz7ZQho4vt7tZAQRXxv44/9pC/8FT0rp4Pu85zNJov7P8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nLnO83ep; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nLnO83ep" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 677901F000E9; Sat, 15 Aug 2026 06:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775671; bh=4toZ1Nl7FpEq6hCLiSxSN/eNDtz7pGNSmoQ5Jop6L9c=; h=From:To:Cc:Subject:Date:Reply-To; b=nLnO83epNKl/p0j/j1LLes5HkJP+1VJRb8cydgdofK7DrBiXtbifmRxIh8ssNdWCP Rg4Pz09kQFWrL+EP/RYHWSQNppRiDt6mssfbhXYbvuA2Rel22WP/o1DMHMl8jXa0WR SjpzDYKORI1L6Kj5gi9qMKYy25wKAU+zMkRdIL9o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74315: lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file() Date: Sat, 15 Aug 2026 15:10:42 +0900 Message-ID: <2026081552-CVE-2026-74315-3f91@gregkh> X-Mailer: git-send-email 2.55.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=2678; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hGjtdCVIDxP/2i6JHHvfNhOilUru5OAR88U/fiTZhBw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjDxrr62SX8U6WaaE8b9d85l/v5ZFVE/9/GnPtUhZo W9+5cH7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiTwIY5vvnTqg91VmlOMs3 4uRdAQNdxtgtaQwL2m1OuTYETCmW804satj3OVM99PAEAA== 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: lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file() file_hash() digests the first LOCKD_FH_HASH_SIZE bytes of nfs_fh.data when bucketing nlm_files[], independent of fh.size. Commit 3de744ee4e45 ("lockd: Use xdrgen XDR functions for the NLMv4 TEST procedure") set .pc_argzero to zero for the converted procedures and moved file-handle population into nlm4svc_lookup_file(), which copies only xdr_lock->fh.len bytes into lock->fh.data. When an NLMv4 client presents a file handle shorter than LOCKD_FH_HASH_SIZE, bytes fh.len..31 retain whatever the argument buffer held from an earlier request. The same wire handle then hashes to different buckets across calls; nlm_lookup_file() misses the existing nlm_file entry, and lock-state lookups fail. Zero only the tail bytes that file_hash() would otherwise consume. Handles of LOCKD_FH_HASH_SIZE or larger already populate every byte that file_hash() reads. The Linux kernel CVE team has assigned CVE-2026-74315 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 3de744ee4e4557da0d63be8a97ad44b4dad58912 and fixed in 7.1.5 with commit 686c2434f9f16b87aeed18d76cc562df9f2695ab Issue introduced in 7.1 with commit 3de744ee4e4557da0d63be8a97ad44b4dad58912 and fixed in 7.2-rc1 with commit 6e4c62caecf792e8a15ad9bc7f371e57c17e3302 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-2026-74315 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: fs/lockd/lockd.h fs/lockd/svc4proc.c fs/lockd/svcsubs.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/686c2434f9f16b87aeed18d76cc562df9f2695ab https://git.kernel.org/stable/c/6e4c62caecf792e8a15ad9bc7f371e57c17e3302