一、 漏洞 CVE-2025-39688 基础信息
漏洞信息
# nfsd:允许在通过 nfs4_lookup_stateid() 搜索时使用 SC_STATUS_FREEABLE

## 漏洞概述

在Linux内核中,存在一个与`nfsd`相关的漏洞。该漏洞导致当pynfs的DELEG8测试运行时失败。具体来说,在获取委托(delegation)并让租约过期后,使用状态ID会导致返回错误的状态ID而非期望的撤销状态。

## 影响版本

未明确列出受影响的具体Linux内核版本。

## 细节

当一个委托被撤销时,它最初会被标记为`SC_STATUS_REVOKED`或`SC_STATUS_ADMIN_REVOKED`。随后,它会进一步被标记为带有`SC_STATUS_FREEABLE`标志,表示正在等待FREE_STATEID调用。

函数`nfs4_lookup_stateid()`接受一个状态掩码以指定允许的状态标志。当前的掩码不包含`SC_STATUS_FREEABLE`,导致撤销的委托几乎无法被找到。为此,解决方案是将`SC_STATUS_FREEABLE`添加到始终允许的状态标志中,并在`nfsd4_delegreturn()`函数中将其移除。

## 影响

该漏洞主要影响通过NFS进行文件管理的操作,特别是涉及委托处理和状态ID查找的场景。当执行特定测试(例如DELEG8测试)时,应用程序返回错误的状态ID而不是期望的结果,导致可能的应用程序行为异常。
备注
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
nfsd: allow SC_STATUS_FREEABLE when searching via nfs4_lookup_stateid()
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: nfsd: allow SC_STATUS_FREEABLE when searching via nfs4_lookup_stateid() The pynfs DELEG8 test fails when run against nfsd. It acquires a delegation and then lets the lease time out. It then tries to use the deleg stateid and expects to see NFS4ERR_DELEG_REVOKED, but it gets bad NFS4ERR_BAD_STATEID instead. When a delegation is revoked, it's initially marked with SC_STATUS_REVOKED, or SC_STATUS_ADMIN_REVOKED and later, it's marked with the SC_STATUS_FREEABLE flag, which denotes that it is waiting for s FREE_STATEID call. nfs4_lookup_stateid() accepts a statusmask that includes the status flags that a found stateid is allowed to have. Currently, that mask never includes SC_STATUS_FREEABLE, which means that revoked delegations are (almost) never found. Add SC_STATUS_FREEABLE to the always-allowed status flags, and remove it from nfsd4_delegreturn() since it's now always implied.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
二、漏洞 CVE-2025-39688 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-39688 的情报信息