CVE-2024-41014: xfs: add bounds checking to xlog_recover_process_data
In the Linux kernel, the following vulnerability has been resolved:
xfs: add bounds checking to xlogrecoverprocessdata
There is a lack of verification of the space occupied by fixed members of xlogopheader in the xlogrecoverprocessdata.
We can create a crafted image to trigger an out of bounds read by following these steps: 1) Mount an image of xfs, and do some file operations to leave records 2) Before umounting, copy the image for subsequent steps to simulate abnormal exit. Because umount will ensure that tailblk and headblk are the same, which will result in the inability to enter xlogrecoverprocessdata 3) Write a tool to parse and modify the copied image in step 2 4) Make the end of the xlogopheader entries only 1 byte away from xlogrecheader->hsize 5) xlogrecheader->hnumlogops++ 6) Modify xlogrecheader->hcrc
Fix: Add a check to make sure there is sufficient space to access fixed members of xlogopheader.
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
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41014?
CVE-2024-41014 has been assigned a medium severity rating due to its potential impact on data integrity.
How do I fix CVE-2024-41014?
To fix CVE-2024-41014, upgrade to the kernel version 6.11 or higher from Red Hat.
What type of systems are affected by CVE-2024-41014?
CVE-2024-41014 affects systems running specific versions of the Linux kernel that utilize XFS file systems.
Is there a workaround for CVE-2024-41014?
Currently, there is no known workaround for CVE-2024-41014; the suggested solution is to apply the version update.
What impact does CVE-2024-41014 have on system security?
CVE-2024-41014 could allow for potential exploitation leading to unauthorized access or manipulation of data within affected systems.