7.8

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

Modified
AliasesUBUNTU-CVE-2024-42104DEBIAN-CVE-2024-42104
Published 30-07-2024Last modified 05-08-2026

Vulnerability summary

CVE-2024-42104 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 18.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.26%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 39 · Related 35

Timeline

  1. 30-07-2024
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

19%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu130 products
  • linuxAll versions (No fix recorded) | < 4.4.0-261.295 | < 4.15.0-231.243 | < 5.4.0-195.215 | < 5.15.0-121.131 | < 6.8.0-48.48
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 4.4.0-1138.144 | < 4.4.0-1176.191 | < 4.15.0-1175.188 | < 5.4.0-1132.142 | < 5.15.0-1069.75 | < 6.8.0-1018.20
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < c33c2b0d92aa1c2262d999b2598ad6fbd53bd479 | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 07c176e7acc5579c133bb923ab21316d192d0a95 | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 2f2fa9cf7c3537958a82fbe8c8595a5eb0861ad7 | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < b11e8fb93ea5eefb2e4e719497ea177a58ff6131 | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 1b7d549ed2c1fa202c751b69423a0d3a6bd5a180 | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 3ab40870edb883b9633dc5cd55f5a2a11afa618d | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 265fff1a01cdc083aeaf0d934c929db5cc64aebf | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < bb76c6c274683c8570ad788f79d4b875bde0e458 | 2.6.30
  • linux_kernel< 4.19.318 | ≥ 4.20, < 5.4.280 | ≥ 5.5, < 5.10.222 | ≥ 5.11, < 5.15.163 | ≥ 5.16, < 6.1.98 | ≥ 6.2, < 6.6.39 | ≥ 6.7, < 6.9.9
Debian1 product
  • linux< 6.1.98-1 | < 6.9.9-1

3 vendors · 133 products

References

39 links
Show all 39 references