CVE-2022-49553: fs/ntfs3: validate BOOT sectors_per_clusters
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: validate BOOT sectorsperclusters
When the NTFS BOOT sectorsperclusters field is > 0x80, it represents a shift value. Make sure that the shift value is not too large before using it (NTFS max cluster size is 2MB). Return -EVINVAL if it too large.
This prevents negative shift values and shift values that are larger than the field size.
Prevents this UBSAN error:
UBSAN: shift-out-of-bounds in ../fs/ntfs3/super.c:673:16 shift exponent -192 is negative
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.18.2-1 - Compensating control
In fs/ntfs3, validate the NTFS BOOT sectors_per_clusters field before using it: when the field is greater than 0x80 and represents a shift value, reject values that are too large for the NTFS maximum cluster size of 2MB by returning -EVINVAL.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49553?
CVE-2022-49553 has been classified as a high-severity vulnerability due to potential impacts on system stability and data integrity.
What versions of the Linux kernel are affected by CVE-2022-49553?
CVE-2022-49553 affects Linux kernel versions between 5.15 and 5.15.45, 5.16 and 5.17.13, and 5.18 and 5.18.2.
How do I fix CVE-2022-49553?
To fix CVE-2022-49553, update your Linux kernel to a version that is not affected by this vulnerability.
What consequences can occur if CVE-2022-49553 is exploited?
If exploited, CVE-2022-49553 could lead to unexpected behavior in systems utilizing the NTFS file system.
Is there a workaround for CVE-2022-49553?
Currently, the best mitigation for CVE-2022-49553 is to ensure your Linux kernel is updated to an unaffected version.