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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-46701— libfs: fix infinite directory reads for offset dir

AI Predicted 5.3 Difficulty: Moderate EPSS 0.19% · P9

Possible ATT&CK Techniques 1AI

T1083 · File and Directory Discovery

Affected Version Matrix 6

VendorProductVersion RangeStatus
LinuxLinuxa2e459555c5f9da3e619b7e47a63f98574dc75f1< 308b4fc2403b335894592ee9dc212a5e58bb309faffected
a2e459555c5f9da3e619b7e47a63f98574dc75f1< 64a7ce76fb901bf9f9c36cf5d681328fc0fd4b5aaffected
6.6affected
< 6.6unaffected
6.10.7≤ 6.10.*unaffected
6.11≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-46701

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
libfs: fix infinite directory reads for offset dir
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: libfs: fix infinite directory reads for offset dir After we switch tmpfs dir operations from simple_dir_operations to simple_offset_dir_operations, every rename happened will fill new dentry to dest dir's maple tree(&SHMEM_I(inode)->dir_offsets->mt) with a free key starting with octx->newx_offset, and then set newx_offset equals to free key + 1. This will lead to infinite readdir combine with rename happened at the same time, which fail generic/736 in xfstests(detail show as below). 1. create 5000 files(1 2 3...) under one dir 2. call readdir(man 3 readdir) once, and get one entry 3. rename(entry, "TEMPFILE"), then rename("TEMPFILE", entry) 4. loop 2~3, until readdir return nothing or we loop too many times(tmpfs break test with the second condition) We choose the same logic what commit 9b378f6ad48cf ("btrfs: fix infinite directory reads") to fix it, record the last_index when we open dir, and do not emit the entry which index >= last_index. The file->private_data now used in offset dir can use directly to do this, and we also update the last_index when we llseek the dir file. [brauner: only update last_index after seek when offset is zero like Jan suggested]
Source: CVE Program / CVE List V5
CVSS Information
N/A
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存在安全漏洞,该漏洞源于在处理偏移目录读取时存在逻辑错误,可能导致无限目录读取。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux a2e459555c5f9da3e619b7e47a63f98574dc75f1 ~ 308b4fc2403b335894592ee9dc212a5e58bb309f -
LinuxLinux 6.6 -

II. Public POCs for CVE-2024-46701

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-46701

登录查看更多情报信息。

Patches & Fixes for CVE-2024-46701 (1)

Same Patch Batch · Linux · 2024-09-13 · 40 CVEs total

CVE-2024-466979.8 CRITICALnfsd: ensure that nfsd4_fattr_args.context is zeroed out
CVE-2024-466959.8 CRITICALselinux,smack: don't bypass permissions check in inode_setsecctx hook
CVE-2024-466969.8 CRITICALnfsd: fix potential UAF in nfsd4_cb_getattr_release
CVE-2024-466909.8 CRITICALnfsd: fix nfsd4_deleg_getattr_conflict in presence of third party lease
CVE-2024-466737.8 HIGHscsi: aacraid: Fix double-free on probe failure
CVE-2024-467137.8 HIGHperf/aux: Fix AUX buffer serialization
CVE-2024-467107.8 HIGHdrm/vmwgfx: Prevent unmapping active read buffers
CVE-2024-467097.8 HIGHdrm/vmwgfx: Fix prime with external buffers
CVE-2024-467057.8 HIGHdrm/xe: reset mmio mappings with devm
CVE-2024-466877.8 HIGHbtrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk()
CVE-2024-466747.8 HIGHusb: dwc3: st: fix probed platform device ref count on probe error path
CVE-2024-466807.8 HIGHBluetooth: btnxpuart: Fix random crash seen while removing driver
CVE-2024-466787.8 HIGHbonding: change ipsec_lock from spin lock to mutex
CVE-2024-466837.8 HIGHdrm/xe: prevent UAF around preempt fence
CVE-2024-46698video/aperture: optionally match the device in sysfb_disable()
CVE-2024-46712drm/vmwgfx: Disable coherent dumb buffers without 3d
CVE-2024-46711mptcp: pm: fix ID 0 endp usage after multiple re-creations
CVE-2024-46675usb: dwc3: core: Prevent USB core invalid event buffer address access
CVE-2024-46708pinctrl: qcom: x1e80100: Fix special pin offsets
CVE-2024-46676nfc: pn533: Add poll mod list filling check

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-46701

No comments yet


Leave a comment