CVE-2024-42104: linux Use After Free
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 16.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 39 · Related 35Timeline
- 30-07-2024PublishedVulnerability first disclosed.
- 05-08-2026Last 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- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
0.00 pp
From 0.26% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu129 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 · 132 products