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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-42304— ext4: make sure the first directory block is not a hole

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存在安全漏洞,该漏洞源于未能正确检查根目录块是否为空。

CVSS 7.8 · High EPSS 0.23% · P13

Affected Version Matrix 27

VendorProduct Version RangeStatus
Linux Linux 3a17ca864baffc0c6f6e8aad525aa4365775a193< d81d7e347d1f1f48a5634607d39eb90c161c8afe affected
4e19d6b65fb4fc42e352ce9883649e049da14743< e02f9941e8c011aa3eafa799def6a134ce06bcfa affected
4e19d6b65fb4fc42e352ce9883649e049da14743< de2a011a13a46468a6e8259db58b1b62071fe136 affected
4e19d6b65fb4fc42e352ce9883649e049da14743< 9771e3d8365ae1dd5e8846a204cb9af14e3e656a affected
4e19d6b65fb4fc42e352ce9883649e049da14743< b609753cbbd38f8c0affd4956c0af178348523ac affected
4e19d6b65fb4fc42e352ce9883649e049da14743< c3893d9de8ee153baac56d127d844103488133b5 affected
4e19d6b65fb4fc42e352ce9883649e049da14743< 299bc6ffa57e04e74c6cce866d6c0741fb4897a1 affected
4e19d6b65fb4fc42e352ce9883649e049da14743< f9ca51596bbfd0f9c386dd1c613c394c78d9e5e6 affected
… +19 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-42304

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
ext4: make sure the first directory block is not a hole
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: ext4: make sure the first directory block is not a hole The syzbot constructs a directory that has no dirblock but is non-inline, i.e. the first directory block is a hole. And no errors are reported when creating files in this directory in the following flow. ext4_mknod ... ext4_add_entry // Read block 0 ext4_read_dirblock(dir, block, DIRENT) bh = ext4_bread(NULL, inode, block, 0) if (!bh && (type == INDEX || type == DIRENT_HTREE)) // The first directory block is a hole // But type == DIRENT, so no error is reported. After that, we get a directory block without '.' and '..' but with a valid dentry. This may cause some code that relies on dot or dotdot (such as make_indexed_dir()) to crash. Therefore when ext4_read_dirblock() finds that the first directory block is a hole report that the filesystem is corrupted and return an error to avoid loading corrupted data from disk causing something bad.
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存在安全漏洞,该漏洞源于未能正确检查根目录块是否为空。
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 3a17ca864baffc0c6f6e8aad525aa4365775a193 ~ d81d7e347d1f1f48a5634607d39eb90c161c8afe -
Linux Linux 5.3 -

II. Public POCs for CVE-2024-42304

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

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

Other References for CVE-2024-42304 (8)

Same Patch Batch · Linux · 2024-08-17 · 109 CVEs total

CVE-2024-42285 9.8 CRITICAL RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
CVE-2024-42284 9.1 CRITICAL tipc: Return non-zero value from tipc_udp_addr2str() on error
CVE-2024-42318 8.8 HIGH landlock: Don't lose track of restrictions on cred_transfer
CVE-2024-42287 8.8 HIGH scsi: qla2xxx: Complete command early within lock
CVE-2024-43847 8.8 HIGH wifi: ath12k: fix invalid memory access while processing fragmented packets
CVE-2024-43848 8.8 HIGH wifi: mac80211: fix TTLM teardown work
CVE-2024-42279 7.8 HIGH spi: microchip-core: ensure TX and RX FIFOs are empty at start of a transfer
CVE-2024-42314 7.8 HIGH btrfs: fix extent map use-after-free when adding pages to compressed bio
CVE-2024-42297 7.8 HIGH f2fs: fix to don't dirty inode for readonly filesystem
CVE-2024-43840 7.8 HIGH bpf, arm64: Fix trampoline for BPF_TRAMP_F_CALL_ORIG
CVE-2024-42296 7.8 HIGH f2fs: fix return value of f2fs_convert_inline_inode()
CVE-2024-43832 7.8 HIGH s390/uv: Don't call folio_wait_writeback() without a folio reference
CVE-2024-42293 7.8 HIGH arm64: mm: Fix lockless walks with static and dynamic page-table folding
CVE-2024-43830 7.8 HIGH leds: trigger: Unregister sysfs attributes before calling deactivate()
CVE-2024-42299 7.8 HIGH fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed
CVE-2024-43845 7.8 HIGH udf: Fix bogus checksum computation in udf_rename()
CVE-2024-42288 7.8 HIGH scsi: qla2xxx: Fix for possible memory corruption
CVE-2024-43846 7.8 HIGH lib: objagg: Fix general protection fault
CVE-2024-42280 7.8 HIGH mISDN: Fix a use after free in hfcmulti_tx()
CVE-2024-42313 7.8 HIGH media: venus: fix use after free in vdec_close

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-42304

No comments yet


Leave a comment