В ядре Linux была устранена следующая уязвимость: ceph: зажим встроенной длины данных в ceph_fill_inline_data() The MDS решает, сколько встроенных данных прикрепить к ответу, и клиент анализирует inline_len без какой-либо верхней границы: ceph_decode_need () только проверяет, что сообщение действительно несет столько байтов. ceph_fill_inline_data () затем копирует данные в один фолио без проверки длины, поэтому вредоносный или багги MDS может удерживать свои прошлые данные. Зажимайте длину до folio_size(), так что оба вызова, handle_cap_grant() и fill_inode(), покрыты.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ceph: clamp the inline data length in ceph_fill_inline_data() The MDS decides how much inline data to attach to a reply, and the client parses inline_len without any upper bound: ceph_decode_need() only verifies that the message actually carries that many bytes. ceph_fill_inline_data() then copies the data into a single folio with no length check, so a malicious or buggy MDS returning more inline data than the folio can hold writes past its end. Clamp the length to folio_size() so both callers, handle_cap_grant() and fill_inode(), are covered.
Характеристики атаки
Последствия
Строка CVSS v3.1