Linux
fs/ntfs3: cancle set bad inode after removing name fails
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: cancle set bad inode after removing name fails The reproducer uses a file0 on a ntfs3 file system with a corrupted i_link. When renaming, the file0's inode is marked as a bad inode because the file name cannot be deleted. The underlying bug is that make_bad_inode() is called on a live inode. In some cases it's "icache lookup finds a normal inode, d_splice_alias() is called to attach it to dentry, while another thread decides to call make_bad_inode() on it - that would evict it from icache, but we'd already found it there earlier". In some it's outright "we have an inode attached to dentry - that's how we got it in the first place; let's call make_bad_inode() on it just for shits and giggles".
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < 47856e10f8d5e066aa26b1f9c02d933fe0620399
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < b35a50d639ca5259466ef5fea85529bb4fb17d5b
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < 358d4f821c03add421a4c49290538a705852ccf1
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < a285395020780adac1ffbc844069c3d700bf007a
- >= 78ab59fee07f22464f32eafebab2bd97ba94ff2d, < d99208b91933fd2a58ed9ed321af07dacd06ddc3
Fixed in 47856e10f8d5e066aa26b1f9c02d933fe0620399, b35a50d639ca5259466ef5fea85529bb4fb17d5b, 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, 358d4f821c03add421a4c49290538a705852ccf1, a285395020780adac1ffbc844069c3d700bf007a, d99208b91933fd2a58ed9ed321af07dacd06ddc3
- 5.15
Fixed in 0, 6.1.191, 6.6.102, 6.12.42, 6.15.10, 6.16.1, 6.17
Mitigation
Upgrade Linux to 47856e10f8d5e066aa26b1f9c02d933fe0620399 or b35a50d639ca5259466ef5fea85529bb4fb17d5b or 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc or 358d4f821c03add421a4c49290538a705852ccf1 or a285395020780adac1ffbc844069c3d700bf007a or d99208b91933fd2a58ed9ed321af07dacd06ddc3 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.102 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.