В ядре Linux устранена следующая уязвимость:
fscrypt: используйте idmap монтирования для проверки владельца в fscrypt_ioctl_set_policy()
fscrypt_ioctl_set_policy() вызывает inode_owner_or_capable() с
&nop_mnt_idmap, прежде чем разрешить установку политики шифрования.
idmap монтирования, на котором был выпущен ioctl.
fscrypt используется файловыми системами, которые поддерживают монтирование с отображением идентификаторов (например, ext4,
f2fs), поэтому при таком монтировании сравнивается fsuid вызывающей стороны с
несопоставленный владелец на диске, а не сопоставленный владелец: фактический владелец
может быть ошибочно отклонено с помощью -EACCES и ошибочно для несвязанного вызывающего абонента
разрешено. Вместо этого используйте file_mnt_idmap(filp).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy() fscrypt_ioctl_set_policy() calls inode_owner_or_capable() with &nop_mnt_idmap before allowing an encryption policy to be set, instead of the idmap of the mount the ioctl was issued on. fscrypt is used by filesystems that support idmapped mounts (e.g. ext4, f2fs), so on such a mount this compares the caller's fsuid against the unmapped on-disk owner rather than the mapped owner: the actual owner can be wrongly denied with -EACCES and an unrelated caller wrongly allowed. Use file_mnt_idmap(filp) instead.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
5.15.217
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
6.1.184
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
6.6.152
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
6.12.104
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
6.18.45
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
7.1.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.12
|
7.2
|