Чтение за пределами буфера при декодировании перенаправления в libceph в ядре Linux
Linux kernel
Кратко
Компонент libceph ядра Linux некорректно обрабатывает данные в `ceph_redirect_decode()`, из-за чего повреждённое сообщение, полученное по сети от OSD, может вызвать чтение за пределами буфера. Уязвимость заключается в отсутствии проверки границ для одного из декодируемых полей длины.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Исправление
Исправленная версия не указана.
Оригинальное описание (EN)
Оригинальный заголовок: Linux kernel out-of-bounds read in libceph redirect decoding
In the Linux kernel, the following vulnerability has been resolved: libceph: Fix unsafe decode in ceph_redirect_decode() ceph_redirect_decode handles unchecked data received over the network from an OSD. Currently, there is only a bounds check covering the first three decode operations. After decoding the first len field from the message, the only remaining check ensures there is enough buffer space to hold len bytes. However, there is no guarantee that this value is large enough to hold the subsequently decoded fields. The decoding of the second len field is missing an explicit bounds check. Consequently, a corrupted message can trigger an out-of-bounds read. This patch fixes the issue by switching the decoding from ceph_decode_32() to the bounds-checked version ceph_decode_32_safe().
Ссылки
- Прочееgit.kernel.org/stable/c/98378484378bf617031d237af3ff9afaea19815f
- Прочееgit.kernel.org/stable/c/d8127a2822275c75ad1791536032924f08259282
- Прочееgit.kernel.org/stable/c/87623b0571ebd12e19780924031501075f264ca1
- Прочееgit.kernel.org/stable/c/e2ee7eb32de39433b5603b13abafcdb8774a2d36
- Прочееgit.kernel.org/stable/c/0e6985d7662f782dbceef0c24a28cbed902e78e2
- Прочееgit.kernel.org/stable/c/7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4
- Прочееgit.kernel.org/stable/c/762860805a1414060f232fd74060fc09ec429fbf
- Прочееgit.kernel.org/stable/c/0405670e50f213594366ab7eddc07002bd7f84c0