В ядре Linux устранена следующая уязвимость:
hfsplus: удалить повторяющееся действие по маркировке «грязного» индекса атрибута
Syzbot сообщил о null-ptr-deref в [1].
Если файл атрибутов не загружается во время монтирования системы, сработает триггер.
происходит [1] при выполнении setxattr в пользовательском пространстве.
Удалите первую метку атрибута грязной операции.
[1]
KASAN: null-ptr-deref в диапазоне [0x0000000000000008-0x000000000000000f]
Отслеживание вызова:
hfsplus_setxattr+0x124/0x340 фс/hfsplus/xattr.c:555
hfsplus_trusted_setxattr+0x40/0x60 fs/hfsplus/xattr_trusted.c:30
__vfs_setxattr+0x43c/0x480 fs/xattr.c:218
__vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:252
vfs_setxattr+0x163/0x360 fs/xattr.c:339
do_setxattr fs/xattr.c:654 [встроенный]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: hfsplus: Remove the duplicate attr inode dirty marking action Syzbot reported a null-ptr-deref in [1]. If the attributes file is not loaded during system mount, a trigger occurs [1] when setxattr is executed in userspace. Remove the first mark attr inode dirty operation. [1] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] Call Trace: hfsplus_setxattr+0x124/0x340 fs/hfsplus/xattr.c:555 hfsplus_trusted_setxattr+0x40/0x60 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x43c/0x480 fs/xattr.c:218 __vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:252 vfs_setxattr+0x163/0x360 fs/xattr.c:339 do_setxattr fs/xattr.c:654 [inline]