Menu

Star on GitHub · 3.2k

CVE-2024-27031

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: NFS: Fix nfs_netfs_issue_read() xarray locking for writeback interrupt The loop inside nfs_netfs_issue_read() currently does no…

Published May 1, 2024CWE-667EPSS 0.20%

Overview

CVE-2024-27031 is a medium-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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 nfs_netfs_issue_read() xarray locking for writeback interrupt

The loop inside nfs_netfs_issue_read() currently does not disable

interrupts while iterating through pages in the xarray to submit

for NFS read. This is not safe though since after taking xa_lock,

another page in the mapping could be processed for writeback inside

an interrupt, and deadlock can occur. The fix is simple and clean

if we use xa_for_each_range(), which handles the iteration with RCU

while reducing code complexity.

The problem is easily reproduced with the following test:

mount -o vers=3,fsc 127.0.0.1:/export /mnt/nfs

dd if=/dev/zero of=/mnt/nfs/file1.bin bs=4096 count=1

echo 3 > /proc/sys/vm/drop_caches

dd if=/mnt/nfs/file1.bin of=/dev/null

umount /mnt/nfs

On the console with a lockdep-enabled kernel a message similar to

the following will be seen:

================================

WARNING: inconsistent lock state

6.7.0-lo

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-27031?

CVE-2024-27031 is a medium-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-27031?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-27031?

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-27031?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-27031 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 MEDIUM CVEs from 2024

View all