Menu

Star on GitHub · 3.3k

CVE-2024-56740

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: nfs/localio: must clear res.replen in nfs_local_read_done Otherwise memory corruption can occur due to NFSv3 LOCALIO reads leav…

Published Dec 29, 2024CWE-787EPSS 0.20%

Overview

CVE-2024-56740 is a high-severity vulnerability. It was published on December 29, 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/localio: must clear res.replen in nfs_local_read_done

Otherwise memory corruption can occur due to NFSv3 LOCALIO reads

leaving garbage in res.replen:

- nfs3_read_done() copies that into server->read_hdrsize; from there

nfs3_proc_read_setup() copies it to args.replen in new requests.

- nfs3_xdr_enc_read3args() passes that to rpc_prepare_reply_pages()

which includes it in hdrsize for xdr_init_pages, so that rq_rcv_buf

contains a ridiculous len.

- This is copied to rq_private_buf and xs_read_stream_request()

eventually passes the kvec to sock_recvmsg() which receives incoming

data into entirely the wrong place.

This is easily reproduced with NFSv3 LOCALIO that is servicing reads

when it is made to pivot back to using normal RPC. This switch back

to using normal NFSv3 with RPC can occur for a few reasons but this

issue was exposed with a test that stops and then restarts the NFSv3

server while LOCALIO is

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

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

How severe is CVE-2024-56740?

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

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

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