Description
In the Linux kernel, the following vulnerability has been resolved: ntfs3: reject empty iomap before reading its LCN attr_data_get_block() can return success with a zero run length when no cached or on-disk mapping covers a read VCN. In that case it does not initialize the LCN output. Check the returned length before comparing the LCN against the special mapping values. This preserves the existing -EINVAL result for an empty mapping without passing an uninitialized LCN to the comparisons.
Affected products and versions
Linux Linuxecbb433f9a8e3297f298226c15fada69b3748d3e – < 9868246e63233914504accd565ff7f5141cadf04 · ecbb433f9a8e3297f298226c15fada69b3748d3e – < 666af227b12fcc3f4ac9827d449ee0910f7bcf9fFixed in: 9868246e63233914504accd565ff7f5141cadf04 · 666af227b12fcc3f4ac9827d449ee0910f7bcf9f
Linux Linux7.2Fixed in: 7.3.4 · 7.4-rc1
References
- git.kernel.org/stable/c/9868246e63233914504accd565ff7f5141cadf04
- git.kernel.org/stable/c/666af227b12fcc3f4ac9827d449ee0910f7bcf9f
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.