CVE-2024-56548
CVSS 3.1 Score 7.8 of 10 (high)
Details
Summary
CVE-2024-56548 is a vulnerability in the Linux kernel's hfsplus file system that arises from not properly handling device logical block size queries. Devices' block sizes may change, and one such case is a loop device using ioctl LOOP_SET_BLOCK_SIZE. This can lead to out-of-bounds writing when hfsplus_read_wrapper calls hfsplus_submit_bio and the latter function reads a different io_size. The fix involves initializing a new min_io_size with the sb_min_blocksize and using the maximum between HFSPLUS_SECTOR_SIZE and min_io_size. The vulnerability was discovered during testing with loop block sizes of 512, 1024, and 4096 bytes and resulted in a kernel address validation error, as evidenced by the KASAN report provided.
Prevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.