Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-74315

lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file()
Back to all
CVE

CVE-2026-74315

lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file()

In the Linux kernel, the following vulnerability has been resolved:

lockd: Avoid hashing uninitialized bytes in nlm4svclookupfile()

filehash() digests the first LOCKDFHHASHSIZE bytes of

nfsfh.data when bucketing nlmfiles[], 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

nlm4svclookupfile(), which copies only xdr_lock->fh.len bytes

into lock->fh.data.

When an NLMv4 client presents a file handle shorter than

LOCKDFHHASH_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; nlmlookupfile() misses

the existing nlm_file entry, and lock-state lookups fail.

Zero only the tail bytes that file_hash() would otherwise consume.

Handles of LOCKDFHHASH_SIZE or larger already populate every byte

that file_hash() reads.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/686c2434f9f16b87aeed18d76cc562df9f2695ab, https://git.kernel.org/stable/c/6e4c62caecf792e8a15ad9bc7f371e57c17e3302, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74315.json, https://nvd.nist.gov/vuln/detail/CVE-2026-74315, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.0038%
EPSS Percentile
0.30818%
Introduced Version
3de744ee4e4557da0d63be8a97ad44b4dad58912,7.1.0,0
Fix Available
6e4c62caecf792e8a15ad9bc7f371e57c17e3302,7.1.5

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading