Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-26958

published high CVSS 3.1 · 7.8

nfs: fix UAF in direct writes

Published
01 May 2024, 05:19:04 UTC
Updated
15 Oct 2026, 00:39:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxaf7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 6cd3f13aaa62970b5169d990e936b2e96943bc6a · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 4595d90b5d2ea5fa4d318d13f59055aa4bf3e7f5 · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 80d24b308b7ee7037fc90d8ac99f6f78df0a256f · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 3abc2d160ed8213948b147295d77d44a22c88fa3 · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < e25447c35f8745337ea8bc0c9697fcac14df8605 · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 1daf52b5ffb24870fbeda20b4967526d8f9e12ab · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < cf54f66e1dd78990ec6b32177bca7e6ea2144a95 · af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 17f46b803d4f23c66cacce81db35fef3adb8f2af · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.5 (affected) · 0 to < 4.5 (unaffected · semver) · 5.4.297 through 5.4.* (unaffected · semver) · 5.10.215 through 5.10.* (unaffected · semver) · 5.15.154 through 5.15.* (unaffected · semver) · 6.1.84 through 6.1.* (unaffected · semver) · 6.6.24 through 6.6.* (unaffected · semver) · 6.7.12 through 6.7.* (unaffected · semver) · 6.8.3 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1.1 · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-068 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-049 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bullseye linux Advisory build 5.10.216-1 DSA-5681-1
Show 100 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-109 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-696 Fixed Not stated Amazon Linux assessment
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian buster linux-5.10 Advisory build 5.10.216-1~deb10u1 DLA-3842-1
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: nfs: fix UAF in direct writes In production we have been hitting the following warning consistently ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 17 PID: 1800359 at lib/refcount.c:28 refcount_warn_saturate+0x9c/0xe0 Workqueue: nfsiod nfs_direct_write_schedule_work [nfs] RIP: 0010:refcount_warn_saturate+0x9c/0xe0 PKRU: 55555554 Call Trace: <TASK> ? __warn+0x9f/0x130 ? refcount_warn_saturate+0x9c/0xe0 ? report_bug+0xcc/0x150 ? handle_bug+0x3d/0x70 ? exc_invalid_op+0x16/0x40 ? asm_exc_invalid_op+0x16/0x20 ? refcount_warn_saturate+0x9c/0xe0 nfs_direct_write_schedule_work+0x237/0x250 [nfs] process_one_work+0x12f/0x4a0 worker_thread+0x14e/0x3b0 ? ZSTD_getCParams_internal+0x220/0x220 kthread+0xdc/0x120 ? __btf_name_valid+0xa0/0xa0 ret_from_fork+0x1f/0x30 This is because we're completing the nfs_direct_request twice in a row. The source of this is when we have our commit requests to submit, we process them and send them off, and then in the completion path for the commit requests we have if (nfs_commit_end(cinfo.mds)) nfs_direct_write_complete(dreq); However since we're submitting asynchronous requests we sometimes have one that completes before we submit the next one, so we end up calling complete on the nfs_direct_request twice. The only other place we use nfs_generic_commit_list() is in __nfs_commit_inode, which wraps this call in a nfs_commit_begin(); nfs_commit_end(); Which is a common pattern for this style of completion handling, one that is also repeated in the direct code with get_dreq()/put_dreq() calls around where we process events as well as in the completion paths. Fix this by using the same pattern for the commit requests. Before with my 200 node rocksdb stress running this warning would pop every 10ish minutes. With my patch the stress test has been running for several hours without popping.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

52

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is reached through the local write(2)/pwrite(2)/io_submit(2) syscall path on an O_DIRECT file descriptor (nfs_file_write → nfs_file_direct_write → nfs_direct_commit_schedule); the attacker must issue the direct I/O locally even though a remote NFS/pNFS data server influences the reply timing. AC:L - The attacker controls the race by submitting large numbers of concurrent asynchronous O_DIRECT writes via io_submit(), each generating multiple per-bucket pNFS commit RPCs, and can loop indefinitely at no cost; in the worst-case deployment a hostile NFS server also controls COMMIT reply timing, and the bug reproduced roughly every ten minutes under ordinary production load. PR:L - Only an unprivileged local user with write access to any file on an existing NFS mount is required — O_DIRECT needs no capability and there is no privilege gate anywhere on the path, a routine situation with NFS home directories, HPC clusters, and NFS-backed container volumes. UI:N - The attacker's own write syscalls trigger the double completion; no victim action is needed since the NFS mount is pre-existing infrastructure rather than something a user must be induced to set up. S:U - The corruption is confined to kernel memory managed by the same security authority as the NFS client; no VM, IOMMU, or sandbox boundary is crossed. C:H - The freed nfs_direct_req is re-read by the second workqueue run (flags, inode, iocb) and the aio_kiocb is double-freed, giving a use-after-free read primitive over reclaimed slab memory that can be leveraged to disclose arbitrary kernel data. I:H - The refcount underflow frees the object while still referenced, and the second run performs an indirect call through dreq->iocb->ki_complete read from freed memory plus a double aio_complete/double-free — heap corruption and control-flow hijack primitives suitable for privilege escalation. A:H - The bug produces refcount_t underflow warnings, oopses, and slab corruption, and the duplicated inode_dio_end() underflows i_dio_count so inode_dio_wait() hangs truncate/setattr on that inode indefinitely.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 6cd3f13aaa62970b5169d990e936b2e96943bc6a (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 4595d90b5d2ea5fa4d318d13f59055aa4bf3e7f5 (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 80d24b308b7ee7037fc90d8ac99f6f78df0a256f (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 3abc2d160ed8213948b147295d77d44a22c88fa3 (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < e25447c35f8745337ea8bc0c9697fcac14df8605 (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 1daf52b5ffb24870fbeda20b4967526d8f9e12ab (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < cf54f66e1dd78990ec6b32177bca7e6ea2144a95 (affected · git)af7cf057933f01dc7f33ddfb5e436ad598ed17ad to < 17f46b803d4f23c66cacce81db35fef3adb8f2af (affected · git)Default: unaffected Linux · cna
Linux Linux 4.5 (affected)0 to < 4.5 (unaffected · semver)5.4.297 through 5.4.* (unaffected · semver)5.10.215 through 5.10.* (unaffected · semver)5.15.154 through 5.15.* (unaffected · semver)6.1.84 through 6.1.* (unaffected · semver)6.6.24 through 6.6.* (unaffected · semver)6.7.12 through 6.7.* (unaffected · semver)6.8.3 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 to < V1.1.1 (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

10

Provider assertions

4

Linux · cna

nfs: fix UAF in direct writes

siemens-SADP · adp

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
60028cf554d46faf21ea70a7f413ec24a12d2267f8e63c02d099381eb54d6632
Ingested
15 Oct 2026, 13:09:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected