7.8high
fs/ntfs3: cancle set bad inode after removing name fails
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before 47856e10f8d5e066aa26b1f9c02d933fe0620399, from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before b35a50d639ca5259466ef5fea85529bb4fb17d5b, from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before 358d4f821c03add421a4c49290538a705852ccf1, from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before a285395020780adac1ffbc844069c3d700bf007a, from 78ab59fee07f22464f32eafebab2bd97ba94ff2d before d99208b91933fd2a58ed9ed321af07dacd06ddc3, 5.15 Not affected: before 5.15, from 6.1.191 up to 6.1.*, from 6.6.102 up to 6.6.*, from 6.12.42 up to 6.12.*, from 6.15.10 up to 6.15.*, from 6.16.1 up to 6.16.* | CVE List |
| linux linux_kernel | from 5.15 before 6.6.102, from 6.7 before 6.12.42, from 6.13 before 6.15.10, from 6.16 before 6.16.1 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
What each source says
CVE List
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".
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fs/ntfs3: falla la cancelación de un inodo erróneo tras eliminar el nombre. El reproductor usa un archivo "file0" en un sistema de archivos ntfs3 con un i_link dañado. Al renombrar, el inodo de archivo "file0" se marca como erróneo porque no se puede eliminar el nombre del archivo. El error subyacente radica en que se llama a make_bad_inode() en un inodo activo. En algunos casos, la búsqueda de icache encuentra un inodo normal, se llama a d_splice_alias() para asociarlo a dentry, mientras que otro hilo decide llamar a make_bad_inode() en él; eso lo expulsaría de icache, pero ya lo habíamos encontrado allí anteriormente. En otros casos, es simplemente: "Tenemos un inodo asociado a dentry; así es como lo obtuvimos; llamemos a make_bad_inode() en él, solo por diversión".
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38615 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2025-38615 changed 2026-10-30 | Public domain |