In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors The error handling in nilfs_empty_dir() when a directory folio/page read fails is incorrect, as in the old ext2 implementation, and if the folio/page cannot be read or nilfs_check_folio() fails, it will falsely determine the directory as empty and corrupt the file system. In addition, since nilfs_empty_dir() does not immediately return on a failed folio/page read, but continues to loop, this can cause a long loop with I/O if i_size of the directory's inode is also corrupted, causing the log writer thread to wait and hang, as reported by syzbot. Fix these issues by making nilfs_empty_dir() immediately return a false value (0) if it fails to get a directory folio/page.
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: corrige el error de cálculo de nilfs_empty_dir() y el bucle largo en errores de E/S. El manejo de errores en nilfs_empty_dir() cuando falla la lectura de una página/folio de directorio es incorrecto, como en el antiguo ext2 implementación, y si la publicación/página no se puede leer o nilfs_check_folio() falla, determinará erróneamente que el directorio está vacío y dañará el sistema de archivos. Además, dado que nilfs_empty_dir() no regresa inmediatamente tras una lectura fallida de un folio/página, sino que continúa en bucle, esto puede provocar un bucle largo con E/S si i_size del inodo del directorio también está dañado, lo que provoca que el subproceso del escritor de registros se bloquee. espera y cuelga, según lo informado por syzbot. Solucione estos problemas haciendo que nilfs_empty_dir() devuelva inmediatamente un valor falso (0) si no puede obtener una página/folio del directorio.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | HIGH |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
NVD-CWE-noinfo
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b187b80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd38557da00> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd38668a3c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b92da80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b185480> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b186480> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd38464c140> | Operating System |
| linux | linux_kernel | 6.10 | <built-in method update of dict object at 0x7fd2dbe97b80> | Operating System |
| linux | linux_kernel | 6.10 | <built-in method update of dict object at 0x7fd2dbe95f00> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* |