CVE-2024-50202
JSON

5.5medium

nilfs2: propagate directory read errors from nilfs_find_entry()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nilfs2: propagate directory read errors from nilfs_find_entry() Syzbot reported that a task hang occurs in vcs_open() during a fuzzing test for nilfs2. The root cause of this problem is that in nilfs_find_entry(), which searches for directory entries, ignores errors when loading a directory page/folio via nilfs_get_folio() fails. If the filesystem images is corrupted, and the i_size of the directory inode is large, and the directory page/folio is successfully read but fails the sanity check, for example when it is zero-filled, nilfs_check_folio() may continue to spit out error messages in bursts. Fix this issue by propagating the error to the callers when loading a page/folio fails in nilfs_find_entry(). The current interface of nilfs_find_entry() and its callers is outdated and cannot propagate error codes such as -EIO and -ENOMEM returned via nilfs_find_entry(), so fix it together.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2ba466d74ed74f073257f86e61519cb8f8f46184 before bb857ae1efd3138c653239ed1e7aef14e1242c81, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before b4b3dc9e7e604be98a222e9f941f5e93798ca475, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before c1d0476885d708a932980b0f28cd90d9bd71db39, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before edf8146057264191d5bfe5b91773f13d936dadd3, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 270a6f9df35fa2aea01ec23770dc9b3fc9a12989, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 9698088ac7704e260f492d9c254e29ed7dd8729a, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before efa810b15a25531cbc2f527330947b9fe16916e7, from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 08cfa12adf888db98879dbd735bc741360a34168 and 1 more
Not affected: before 2.6.30, from 4.19.323 up to 4.19.*, from 5.4.285 up to 5.4.*, from 5.10.228 up to 5.10.*, from 5.15.169 up to 5.15.*, from 6.1.114 up to 6.1.*
CVE List
linux linux_kernelfrom 2.6.30 before 4.19.323, from 4.20 before 5.4.285, from 5.5 before 5.10.228, from 5.11 before 5.15.169, from 5.16 before 6.1.114, from 6.2 before 6.6.58, from 6.7 before 6.11.5, 6.12NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-755

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: nilfs2: propagate directory read errors from nilfs_find_entry() Syzbot reported that a task hang occurs in vcs_open() during a fuzzing test for nilfs2. The root cause of this problem is that in nilfs_find_entry(), which searches for directory entries, ignores errors when loading a directory page/folio via nilfs_get_folio() fails. If the filesystem images is corrupted, and the i_size of the directory inode is large, and the directory page/folio is successfully read but fails the sanity check, for example when it is zero-filled, nilfs_check_folio() may continue to spit out error messages in bursts. Fix this issue by propagating the error to the callers when loading a page/folio fails in nilfs_find_entry(). The current interface of nilfs_find_entry() and its callers is outdated and cannot propagate error codes such as -EIO and -ENOMEM returned via nilfs_find_entry(), so fix it together.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: propagar errores de lectura de directorio desde nilfs_find_entry() Syzbot informó que se produce un bloqueo de tarea en vcs_open() durante una prueba de fuzzing para nilfs2. La causa raíz de este problema es que en nilfs_find_entry(), que busca entradas de directorio, ignora los errores cuando falla la carga de una página/folio de directorio a través de nilfs_get_folio(). Si las imágenes del sistema de archivos están dañadas, y el i_size del inodo del directorio es grande, y la página/folio del directorio se lee correctamente pero falla la comprobación de cordura, por ejemplo, cuando está llena de ceros, nilfs_check_folio() puede seguir arrojando mensajes de error en ráfagas. Solucione este problema propagando el error a los llamadores cuando falla la carga de una página/folio en nilfs_find_entry(). La interfaz actual de nilfs_find_entry() y sus llamadores está desactualizada y no puede propagar códigos de error como -EIO y -ENOMEM devueltos a través de nilfs_find_entry(), así que arréglenlo juntos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50202 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-50202 changed 2026-06-17Public domain