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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-26640— tcp: add sanity checks to rx zerocopy

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存在安全漏洞,该漏洞源于对can_map_frag()函数检查不充分。

CVSS 7.8 · High EPSS 0.24% · P14

Affected Version Matrix 14

VendorProduct Version RangeStatus
Linux Linux 93ab6cc69162775201587cc9da00d5016dc890e2< f48bf9a83b1666d934247cb58a9887d7b3127b6f affected
93ab6cc69162775201587cc9da00d5016dc890e2< 718f446e60316bf606946f7f42367d691d21541e affected
93ab6cc69162775201587cc9da00d5016dc890e2< b383d4ea272fe5795877506dcce5aad1f6330e5e affected
93ab6cc69162775201587cc9da00d5016dc890e2< d15cc0f66884ef2bed28c7ccbb11c102aa3a0760 affected
93ab6cc69162775201587cc9da00d5016dc890e2< 1b8adcc0e2c584fec778add7777fe28e20781e60 affected
93ab6cc69162775201587cc9da00d5016dc890e2< 577e4432f3ac810049cb7e6b71f4d96ec7c6e894 affected
4.18 affected
< 4.18 unaffected
… +6 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-26640

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
tcp: add sanity checks to rx zerocopy
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: tcp: add sanity checks to rx zerocopy TCP rx zerocopy intent is to map pages initially allocated from NIC drivers, not pages owned by a fs. This patch adds to can_map_frag() these additional checks: - Page must not be a compound one. - page->mapping must be NULL. This fixes the panic reported by ZhangPeng. syzbot was able to loopback packets built with sendfile(), mapping pages owned by an ext4 file to TCP rx zerocopy. r3 = socket$inet_tcp(0x2, 0x1, 0x0) mmap(&(0x7f0000ff9000/0x4000)=nil, 0x4000, 0x0, 0x12, r3, 0x0) r4 = socket$inet_tcp(0x2, 0x1, 0x0) bind$inet(r4, &(0x7f0000000000)={0x2, 0x4e24, @multicast1}, 0x10) connect$inet(r4, &(0x7f00000006c0)={0x2, 0x4e24, @empty}, 0x10) r5 = openat$dir(0xffffffffffffff9c, &(0x7f00000000c0)='./file0\x00', 0x181e42, 0x0) fallocate(r5, 0x0, 0x0, 0x85b8) sendfile(r4, r5, 0x0, 0x8ba0) getsockopt$inet_tcp_TCP_ZEROCOPY_RECEIVE(r4, 0x6, 0x23, &(0x7f00000001c0)={&(0x7f0000ffb000/0x3000)=nil, 0x3000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, &(0x7f0000000440)=0x40) r6 = openat$dir(0xffffffffffffff9c, &(0x7f00000000c0)='./file0\x00', 0x181e42, 0x0)
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存在安全漏洞,该漏洞源于对can_map_frag()函数检查不充分。
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 93ab6cc69162775201587cc9da00d5016dc890e2 ~ f48bf9a83b1666d934247cb58a9887d7b3127b6f -
Linux Linux 4.18 -

II. Public POCs for CVE-2024-26640

# 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-26640

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

Mailing List Discussions for CVE-2024-26640 (1)

Other References for CVE-2024-26640 (5)

Same Patch Batch · Linux · 2024-03-18 · 21 CVEs total

CVE-2024-26641 8.6 HIGH ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()
CVE-2023-52616 7.8 HIGH crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
CVE-2024-26637 7.8 HIGH wifi: ath11k: rely on mac80211 debugfs handling for vif
CVE-2023-52614 7.8 HIGH PM / devfreq: Fix buffer overflow in trans_stat_show
CVE-2024-26632 7.8 HIGH block: Fix iterating over an empty bio with bio_for_each_folio_all
CVE-2024-26631 7.8 HIGH ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work
CVE-2023-52612 7.8 HIGH crypto: scomp - fix req->dst buffer overflow
CVE-2023-52610 7.5 HIGH net/sched: act_ct: fix skb leak and crash on ooo frags
CVE-2023-52613 drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment
CVE-2024-26633 ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
CVE-2023-52615 hwrng: core - Fix page fault dead lock on mmap-ed hwrng
CVE-2023-52609 binder: fix race between mmput() and do_exit()
CVE-2024-26634 net: fix removing a namespace with conflicting altnames
CVE-2024-26635 llc: Drop support for ETH_P_TR_802_2.
CVE-2023-52611 wifi: rtw88: sdio: Honor the host max_req_size in the RX path
CVE-2024-26636 llc: make llc_ui_sendmsg() more robust against bonding changes
CVE-2024-26638 nbd: always initialize struct msghdr completely
CVE-2023-52617 PCI: switchtec: Fix stdev_release() crash after surprise hot remove
CVE-2023-52618 block/rnbd-srv: Check for unlikely string overflow
CVE-2023-52619 pstore/ram: Fix crash when setting number of cpus to an odd number

IV. Related Vulnerabilities

V. Comments for CVE-2024-26640

No comments yet


Leave a comment