Bug 2313130 (CVE-2024-46781) - CVE-2024-46781 kernel: nilfs2: fix missing cleanup on rollforward recovery error
Summary: CVE-2024-46781 kernel: nilfs2: fix missing cleanup on rollforward recovery error
Keywords:
Status: NEW
Alias: CVE-2024-46781
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2313251
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-18 08:22 UTC by OSIDB Bzimport
Modified: 2024-09-18 12:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-18 08:22:53 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.