"value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\n\nSyzbot reported that when searching for records in a directory where the\ninode's i_size is corrupted and has a large value, memory access outside\nthe folio/page range may occur, or a use-after-free bug may be detected if\nKASAN is enabled.\n\nThis is because nilfs_last_byte(), which is called by nilfs_find_entry()\nand others to calculate the number of valid bytes of directory data in a\npage from i_size and the page index, loses the upper 32 bits of the 64-bit\nsize information due to an inappropriate type of local variable to which\nthe i_size value is assigned.\n\nThis caused a large byte offset value due to underflow in the end address\ncalculation in the calling nilfs_find_entry(), resulting in memory access\nthat exceeds the folio/page size.\n\nFix this issue by changing the type of the local variable causing the bit\nloss from \"unsigned int\" to \"u64\". The return value of nilfs_last_byte()\nis also of type \"unsigned int\", but it is truncated so as not to exceed\nPAGE_SIZE and no bit loss occurs, so no change is required."
"value":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: se corrige un posible acceso a memoria fuera de los l\u00edmites en nilfs_find_entry() Syzbot inform\u00f3 que al buscar registros en un directorio donde el i_size del inodo est\u00e1 da\u00f1ado y tiene un valor grande, puede ocurrir un acceso a memoria fuera del rango de folio/p\u00e1gina, o puede detectarse un error de use-after-free si KASAN est\u00e1 habilitado. Esto se debe a que nilfs_last_byte(), que es llamado por nilfs_find_entry() y otros para calcular la cantidad de bytes v\u00e1lidos de datos de directorio en una p\u00e1gina a partir de i_size y el \u00edndice de p\u00e1gina, pierde los 32 bits superiores de la informaci\u00f3n de tama\u00f1o de 64 bits debido a un tipo inadecuado de variable local a la que se asigna el valor de i_size. Esto caus\u00f3 un valor de desplazamiento de bytes grande debido al desbordamiento en el c\u00e1lculo de la direcci\u00f3n final en la llamada nilfs_find_entry(), lo que result\u00f3 en un acceso a memoria que excede el tama\u00f1o de folio/p\u00e1gina. Solucione este problema cambiando el tipo de la variable local que causa la p\u00e9rdida de bits de \"unsigned int\" a \"u64\". El valor de retorno de nilfs_last_byte() tambi\u00e9n es del tipo \"unsigned int\", pero se trunca para no superar PAGE_SIZE y no se produce ninguna p\u00e9rdida de bits, por lo que no se requiere ning\u00fan cambio."