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

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2024-42104— nilfs2: add missing check for inode numbers on directory entries

EPSS 0.01% · P1

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinux2ba466d74ed74f073257f86e61519cb8f8f46184< c33c2b0d92aa1c2262d999b2598ad6fbd53bd479affected
2ba466d74ed74f073257f86e61519cb8f8f46184< 07c176e7acc5579c133bb923ab21316d192d0a95affected
2ba466d74ed74f073257f86e61519cb8f8f46184< 2f2fa9cf7c3537958a82fbe8c8595a5eb0861ad7affected
2ba466d74ed74f073257f86e61519cb8f8f46184< b11e8fb93ea5eefb2e4e719497ea177a58ff6131affected
2ba466d74ed74f073257f86e61519cb8f8f46184< 1b7d549ed2c1fa202c751b69423a0d3a6bd5a180affected
2ba466d74ed74f073257f86e61519cb8f8f46184< 3ab40870edb883b9633dc5cd55f5a2a11afa618daffected
2ba466d74ed74f073257f86e61519cb8f8f46184< 265fff1a01cdc083aeaf0d934c929db5cc64aebfaffected
2ba466d74ed74f073257f86e61519cb8f8f46184< bb76c6c274683c8570ad788f79d4b875bde0e458affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-42104

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
nilfs2: add missing check for inode numbers on directory entries
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: add missing check for inode numbers on directory entries Syzbot reported that mounting and unmounting a specific pattern of corrupted nilfs2 filesystem images causes a use-after-free of metadata file inodes, which triggers a kernel bug in lru_add_fn(). As Jan Kara pointed out, this is because the link count of a metadata file gets corrupted to 0, and nilfs_evict_inode(), which is called from iput(), tries to delete that inode (ifile inode in this case). The inconsistency occurs because directories containing the inode numbers of these metadata files that should not be visible in the namespace are read without checking. Fix this issue by treating the inode numbers of these internal files as errors in the sanity check helper when reading directory folios/pages. Also thanks to Hillf Danton and Matthew Wilcox for their initial mm-layer analysis.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于nilfs2模块中在挂载和卸载特定模式的损坏nilfs2文件系统镜像时,未检查目录条目中的inode号码,导致释放后重用问题。
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 2ba466d74ed74f073257f86e61519cb8f8f46184 ~ c33c2b0d92aa1c2262d999b2598ad6fbd53bd479 -
LinuxLinux 2.6.30 -

II. Public POCs for CVE-2024-42104

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-42104

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-07-30 · 70 CVEs total

CVE-2024-42146drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf
CVE-2024-42227drm/amd/display: Fix overlapping copy within dml_core_mode_programming
CVE-2024-42225wifi: mt76: replace skb_put with skb_put_zero
CVE-2024-42153i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr
CVE-2024-42152nvmet: fix a possible leak when destroy a ctrl during qp establishment
CVE-2024-42151bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable
CVE-2024-42150net: txgbe: remove separate irq request for MSI and INTx
CVE-2024-42149fs: don't misleadingly warn during thaw operations
CVE-2024-42148bnx2x: Fix multiple UBSAN array-index-out-of-bounds
CVE-2024-42147crypto: hisilicon/debugfs - Fix debugfs uninit process issue
CVE-2024-42154tcp_metrics: validate source addr length
CVE-2024-42145IB/core: Implement a limit on UMAD receive List
CVE-2024-42144thermal/drivers/mediatek/lvts_thermal: Check NULL ptr on lvts_data
CVE-2024-42142net/mlx5: E-switch, Create ingress ACL when needed
CVE-2024-42141Bluetooth: ISO: Check socket flag instead of hcon
CVE-2024-42140riscv: kexec: Avoid deadlock in kexec crash path
CVE-2024-42138mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
CVE-2024-42139ice: Fix improper extts handling
CVE-2024-42137Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot
CVE-2024-42136cdrom: rearrange last_media_change check to avoid unintentional overflow

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-42104

No comments yet


Leave a comment