Skip to main content
Network Thinking Solutions Logo

CVE-2024-42104

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().

All CVEs
CVE-2024-42104Published 7/30/2024

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().

Vendor advisory
CVSS7.8High

Overview

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.

Published
7/30/2024
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
< 4.19.318

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.280

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.222

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.163

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.98

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.39

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.9.9

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < c33c2b0d92aa1c2262d999b2598ad6fbd53bd479

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 07c176e7acc5579c133bb923ab21316d192d0a95

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 2f2fa9cf7c3537958a82fbe8c8595a5eb0861ad7

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < b11e8fb93ea5eefb2e4e719497ea177a58ff6131

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 1b7d549ed2c1fa202c751b69423a0d3a6bd5a180

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 3ab40870edb883b9633dc5cd55f5a2a11afa618d

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 265fff1a01cdc083aeaf0d934c929db5cc64aebf

Verify advisory

Source
Linux
Linux
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < bb76c6c274683c8570ad788f79d4b875bde0e458

Verify advisory

Source
Linux
Linux
2.6.30

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.