CVE-2024-46781
JSON

7.8high

nilfs2: fix missing cleanup on rollforward recovery error

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix missing cleanup on rollforward recovery error In an error injection test of a routine for mount-time recovery, KASAN found a use-after-free bug. It turned out that if data recovery was performed using partial logs created by dsync writes, but an error occurred before starting the log writer to create a recovered checkpoint, the inodes whose data had been recovered were left in the ns_dirty_files list of the nilfs object and were not freed. Fix this issue by cleaning up inodes that have read the recovery data if the recovery routine fails midway before the log writer starts.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 35a9a7a7d94662146396199b0cfd95f9517cdd14, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before da02f9eb333333b2e4f25d2a14967cff785ac82e, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 07e4dc2fe000ab008bcfe90be4324ef56b5b4355, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 8e2d1e9d93c4ec51354229361ac3373058529ec4, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before ca92c4bff2833cb30d493b935168d6cccd5c805d, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 9d8c3a585d564d776ee60d4aabec59b404be7403, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 1cf1f7e8cd47244fa947d357ef1f642d91e219a3, from 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b before 5787fcaab9eb5930f5378d6a1dd03d916d146622 and 1 more
Not affected: before 2.6.30, from 4.19.322 up to 4.19.*, from 5.4.284 up to 5.4.*, from 5.10.226 up to 5.10.*, from 5.15.167 up to 5.15.*, from 6.1.110 up to 6.1.*
CVE List
linux linux_kernelfrom 2.6.30 before 4.19.322, from 4.20 before 5.4.284, from 5.5 before 5.10.226, from 5.11 before 5.15.167, from 5.16 before 6.1.110, from 6.2 before 6.6.51, from 6.7 before 6.10.10, 6.11NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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-416

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: fix missing cleanup on rollforward recovery error In an error injection test of a routine for mount-time recovery, KASAN found a use-after-free bug. It turned out that if data recovery was performed using partial logs created by dsync writes, but an error occurred before starting the log writer to create a recovered checkpoint, the inodes whose data had been recovered were left in the ns_dirty_files list of the nilfs object and were not freed. Fix this issue by cleaning up inodes that have read the recovery data if the recovery routine fails midway before the log writer starts.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: se corrige el error de limpieza faltante en la recuperación de avance En una prueba de inyección de errores de una rutina para la recuperación en tiempo de montaje, KASAN encontró un error de use after free. Resultó que si la recuperación de datos se realizaba utilizando registros parciales creados por escrituras dsync, pero se producía un error antes de iniciar el escritor de registros para crear un punto de control recuperado, los inodos cuyos datos se habían recuperado se dejaban en la lista ns_dirty_files del objeto nilfs y no se liberaban. Solucione este problema limpiando los inodos que han leído los datos de recuperación si la rutina de recuperación falla a mitad de camino antes de que se inicie el escritor de registros.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-46781 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-46781 changed 2026-08-04Public domain