PT-2026-162736
CVE-2026-138876
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
fanotify: report names longer than NAME MAX
fanotify keeps the length of a reported name in a u8, so it drops any
name longer than NAME MAX and warns:
WARNING: fs/notify/fanotify/fanotify.h:217 at fanotify handle event+0x2e82/0x39f0
Such names are legitimate on some filesystems. vfat mounted with utf8
takes up to 255 UTF-16 characters, which are up to 765 bytes of UTF-8,
and FUSE accepts names up to PATH MAX - 1. readdir() and inotify report
them in full. fanotify sends the event without the name, and for
FAN RENAME it trips a second warning in copy fid info to user(), after
which read() fails with EFAULT and the event is lost.
When syzbot hit this, Jan suggested accommodating names up to PATH MAX
[1], the limit readdir() already applies to a name
(verify dirent name()). Store the name lengths as u16, which keeps
struct fanotify info at 8 bytes, and drop without a warning only names
of PATH MAX bytes or more, which no path can refer to. An event with
such a name can exceed a page, so allocate name events with kvmalloc(),
as Jan also suggested. Names up to NAME MAX are reported exactly as
before, and the record format is unchanged: an event with a long name is
just longer.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾