Description
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix handling of cached open files in nfsd4_open codepath
Commit fb70bf124b05 ("NFSD: Instantiate a struct file when creating a
regular NFSv4 file") added the ability to cache an open fd over a
compound. There are a couple of problems with the way this currently
works:
It's racy, as a newly-created nfsd_file can end up with its PENDING bit
cleared while the nf is hashed, and the nf_file pointer is still zeroed
out. Other tasks can find it in this state and they expect to see a
valid nf_file, and can oops if nf_file is NULL.
Also, there is no guarantee that we'll end up creating a new nfsd_file
if one is already in the hash. If an extant entry is in the hash with a
valid nf_file, nfs4_get_vfs_file will clobber its nf_file pointer with
the value of op_file and the old nf_file will leak.
Fix both issues by making a new nfsd_file_acquirei_opened variant that
takes an optional file pointer. If one is present when this is called,
we'll take a new reference to it instead of trying to open the file. If
the nfsd_file already has a valid nf_file, we'll just ignore the
optional file and pass the nfsd_file back as-is.
Also rework the tracepoints a bit to allow for an "opened" variant and
don't try to avoid counting acquisitions in the case where we already
have a cached open file.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 5.19 | 6.1.7 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.1.7-1 | — |
| Debian 13 | linux | 6.1.7-1 | — |
| Debian 12 | linux | 6.1.7-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +31 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +4 | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.66.1 | SUSE-SU-2024:3190-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| SLES 15 SP5 | kernel-syms +1 | 5.14.21-150500.55.80.1 | SUSE-SU-2024:3483-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.67.3 | SUSE-SU-2024:3209-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_19 +1 | 1-150500.11.3.2 | SUSE-SU-2024:3483-1, SUSE-SU-2024:3209-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +2 | 5.14.21-150500.13.67.3 | SUSE-SU-2024:3209-1 |
| SUSE Real Time Module 15 SP5 | kernel-syms-rt | 5.14.21-150500.13.67.1 | SUSE-SU-2024:3209-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | dtb-aarch64 +3 | 5.14.21-150500.55.80.1 | SUSE-SU-2024:3483-1 |
| openSUSE Leap 15.5 | kernel-64kb +6 | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.66.1 | SUSE-SU-2024:3190-1 |
| openSUSE Leap 15.5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| openSUSE Leap 15.5 | kernel-rt +2 | 5.14.21-150500.13.67.3 | SUSE-SU-2024:3209-1 |
| openSUSE Leap 15.5 | kernel-syms-rt | 5.14.21-150500.13.67.1 | SUSE-SU-2024:3209-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.5 | kernel-default | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| openSUSE Leap Micro 5.5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| openSUSE Leap Micro 5.5 | kernel-rt | 5.14.21-150500.13.67.3 | SUSE-SU-2024:3209-1 |
Advisories 4
- WID-SEC-2024-1888 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 17, 2026
- SUSE-SU-2024:3483-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3209-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3190-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026