Skip to contentSkip to conversation

CVE-2026-89701: nfsd: validate nseconds in TIME_DELEG decode paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

nfsd: validate nseconds in TIME_DELEG decode paths

The xdrgen-based TIME_DELEG_ACCESS and TIME_DELEG_MODIFY decode arms store a raw uint32_t nseconds directly into tv_nsec without enforcing nseconds < NSEC_PER_SEC. The legacy nfsd4_decode_nfstime4 has this check but the TIME_DELEG paths do not. A malformed timespec can propagate through notify_change() to disk.

Add range checks in both nfs4xdr.c (SETATTR path) and nfs4callback.c (CB_GETATTR path).

The Linux kernel CVE team has assigned CVE-2026-89701 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 6ae30d6eb26bce02c48c60074b4306270e2434c1 and fixed in 6.18.50 with commit 7e7b93da7fa2e77f977096251899d1410986adf6
	Issue introduced in 6.14 with commit 6ae30d6eb26bce02c48c60074b4306270e2434c1 and fixed in 7.2.4 with commit 5eb489831a9fd4754f4baf26e6989efb66ce104c
	Issue introduced in 6.14 with commit 6ae30d6eb26bce02c48c60074b4306270e2434c1 and fixed in 7.3-rc1 with commit 0f4a767340fad392bd656115b8752005518c9065

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-89701

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/nfsd/nfs4callback.c
fs/nfsd/nfs4xdr.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/7e7b93da7fa2e77f977096251899d1410986adf6
	https://git.kernel.org/stable/c/5eb489831a9fd4754f4baf26e6989efb66ce104c
	https://git.kernel.org/stable/c/0f4a767340fad392bd656115b8752005518c9065