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

7.8 · HIGH
Published Dec 29, 2024 linux CWE-787 EPSS 0.20% (9th pctl)

Overview

CVE-2024-56740 is a high-severity vulnerability affecting linux linux_kernel. 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 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.12, < 6.12.2 Affected

Frequently Asked Questions

What is CVE-2024-56740?

CVE-2024-56740 is a high-severity vulnerability affecting linux linux_kernel. 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 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-56740?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-56740 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.