Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-56740— nfs/localio: must clear res.replen in nfs_local_read_done

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于nfs/localio子系统中在NFSv3 LOCALIO读取操作中内存损坏问题。

CVSS 7.8 · High EPSS 0.20% · P9

Affected Version Matrix 6

VendorProduct Version RangeStatus
Linux Linux 70ba381e1a431245c137ed597ec6a05991c79bd9< de5dac261eeab99762bbdf7c20cee5d26ef4462e affected
70ba381e1a431245c137ed597ec6a05991c79bd9< 650703bc4ed3edf841e851c99ab8e7ba9e5262a3 affected
6.12 affected
< 6.12 unaffected
6.12.2≤ 6.12.* unaffected
6.13≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-56740

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
nfs/localio: must clear res.replen in nfs_local_read_done
Source: CVE Program / CVE List V5
Vulnerability 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 performing heavy read IO.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于nfs/localio子系统中在NFSv3 LOCALIO读取操作中内存损坏问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 70ba381e1a431245c137ed597ec6a05991c79bd9 ~ de5dac261eeab99762bbdf7c20cee5d26ef4462e -
Linux Linux 6.12 -

II. Public POCs for CVE-2024-56740

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-56740

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-56740 (2)

Same Patch Batch · Linux · 2024-12-29 · 39 CVEs total

CVE-2024-56719 10.0 CRITICAL net: stmmac: fix TSO DMA API usage causing oops
CVE-2024-56718 9.8 CRITICAL net/smc: protect link down work from execute after lgr freed
CVE-2024-56709 7.8 HIGH io_uring: check if iowq is killed before queuing
CVE-2024-56715 7.8 HIGH ionic: Fix netdev notifier unregister on failure
CVE-2024-56720 7.8 HIGH bpf, sockmap: Several fixes to bpf_msg_pop_data
CVE-2024-56717 7.5 HIGH net: mscc: ocelot: fix incorrect IFH SRC_PORT field in ocelot_ifh_set_basic()
CVE-2024-56749 7.5 HIGH dlm: fix dlm_recover_members refcount on error
CVE-2024-56721 7.1 HIGH x86/CPU/AMD: Terminate the erratum_1386_microcode array
CVE-2024-56742 vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
CVE-2024-56727 octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_flows.c
CVE-2024-56743 nfs_common: must not hold RCU while calling nfsd_file_put_local
CVE-2024-56745 PCI: Fix reset_method_store() memory leak
CVE-2024-56744 f2fs: fix to avoid potential deadlock in f2fs_record_stop_reason()
CVE-2024-56746 fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()
CVE-2024-56748 scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
CVE-2024-56747 scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
CVE-2024-56750 erofs: fix blksize < PAGE_SIZE for file-backed mounts
CVE-2024-56751 ipv6: release nexthop on device removal
CVE-2024-56752 drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new()
CVE-2024-56753 drm/amdgpu/gfx9: Add Cleaner Shader Deinitialization in gfx_v9_0 Module

Showing top 20 of 39 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-56740

No comments yet


Leave a comment