Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-27031

5.5 · MEDIUM
Published May 1, 2024 linux CWE-667 EPSS 0.20% (10th pctl)

Overview

CVE-2024-27031 is a medium-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 6.4, < 6.6.23 Affected

Frequently Asked Questions

What is CVE-2024-27031?

CVE-2024-27031 is a medium-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-27031 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.