CVE-2024-46781: nilfs2: fix missing cleanup on rollforward recovery error
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 nsdirtyfiles 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46781?
CVE-2024-46781 is classified as a medium severity vulnerability due to the potential for a use-after-free bug affecting the Linux kernel.
How do I fix CVE-2024-46781?
To fix CVE-2024-46781, you should upgrade to the patched versions of the Linux kernel, specifically versions 5.10.226-1, 6.1.123-1, or higher.
Which Linux kernel versions are affected by CVE-2024-46781?
CVE-2024-46781 affects multiple Linux kernel versions up to 5.10.223-1 and includes various releases from 2.6.30 up to 6.11-rc6.
Is CVE-2024-46781 specific to any particular Linux distribution?
CVE-2024-46781 is pertinent to Debian distributions, particularly within specific versions of the Linux kernel package.
What type of issue does CVE-2024-46781 represent?
CVE-2024-46781 represents a use-after-free vulnerability during the mount-time recovery process in the nilfs2 file system of the Linux kernel.