Fixed
Created: Jul 3, 2025
Updated: Sep 1, 2025
Resolved Date: Jul 10, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel
In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]erofs: avoid using multiple devices with different type[EOL][EOL]For multiple devices, both primary and extra devices should be the[EOL]same type. `erofs_init_device` has already guaranteed that if the[EOL]primary is a file-backed device, extra devices should also be[EOL]regular files.[EOL][EOL]However, if the primary is a block device while the extra device[EOL]is a file-backed device, `erofs_init_device` will get an ENOTBLK,[EOL]which is not treated as an error in `erofs_fc_get_tree`, and that[EOL]leads to an UAF:[EOL][EOL] erofs_fc_get_tree[EOL] get_tree_bdev_flags(erofs_fc_fill_super)[EOL] erofs_read_superblock[EOL] erofs_init_device // sbi->dif0 is not inited yet,[EOL] // return -ENOTBLK[EOL] deactivate_locked_super[EOL] free(sbi)[EOL] if (err is -ENOTBLK)[EOL] sbi->dif0.file = filp_open() // sbi UAF[EOL][EOL]So if -ENOTBLK is hitted in `erofs_init_device`, it means the[EOL]primary device must be a block device, and the extra device[EOL]is not a block device. The error can be converted to -EINVAL.
CREATE(Triage):(User=lchen-cn) [CVE-2025-38172 (https://nvd.nist.gov/vuln/detail/CVE-2025-38172)