# CVE-2026-53244: VFS: fix possible failure to unlock in nfsd4_create_file()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:38.468Z
- Modified: 2026-08-05T12:34:29.358Z
- Assigned by: Linux

## Description

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

VFS: fix possible failure to unlock in nfsd4_create_file()

atomic_create() in fs/namei.c drops the reference to the dentry
when it returns an error.
This behaviour was imported into dentry_create() so that it
will drop the reference if an error is returned from atomic_create(),
though not if vfs_create() returns an error (in the case where
->atomic_create is not supported).

The caller - nfsd4_create_file() - is made aware of this by checking
path->dentry, which will either be a counted reference to a dentry, or
an error pointer.

However the change to use start_creating()/end_creating() (which landed
shortly before the dentry_create() change landed, though was likely
developed around the same time) means that nfsd4_create_file() *needs* a
valid dentry so that it can unlock the parent.

The net result is that if NFSD exports a filesystem which uses
->atomic_create, and if a call to ->atomic_create returns an error, then
nfsd4_create_file() will pass an error pointer to end_creating()
and the parent will not be unlocked.

Fix this by changing dentry_create() to make sure path->dentry is always
a valid dentry, never an error-pointer.  The actual error is already
returned a different way.

Note that if ->atomic_create() returns a different dentry (which may not
be possible in practice) we are guaranteed (because it is only ever
provided by d_spliace_alias()) that it will have the same d_parent and
so it will have the same effect when passed to end_creating().

(As written by CVE List.)

## Affected

- Linux Linux: from 64a989dbd144e0622371396461b11335459692d2 before ee1f40759a50b1800c98c1c369afd5b3e44ad987; from 64a989dbd144e0622371396461b11335459692d2 before e824bbd4d224cce4b5fb59cc9dcd3447fe0b7e44; 7.0 (not affected: before 7.0; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 7.0 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/ee1f40759a50b1800c98c1c369afd5b3e44ad987> (patch)
- <https://git.kernel.org/stable/c/e824bbd4d224cce4b5fb59cc9dcd3447fe0b7e44> (patch)

## Sources

- CVE List: [CVE-2026-53244](https://www.cve.org/CVERecord?id=CVE-2026-53244), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-53244](https://nvd.nist.gov/vuln/detail/CVE-2026-53244), Public domain, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-53244 · Whole record: https://cve.day/CVE-2026-53244.json · Rebuilt by cve.day 2026-11-25T22:59:26.330Z
