Menu

Star on GitHub · 3.2k

CVE-2024-26958

7.8 · HIGH

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 ]--…

Published May 1, 2024CWE-416EPSS 0.25%

Overview

CVE-2024-26958 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26958?

CVE-2024-26958 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-26958?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26958?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26958?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26958 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all