CVE-2026-138876: Linux kernel · fanotify: report names longer than NAME_MAX
Affects Linux kernelSource CVE Database V5
Not known to be exploited · fixed in ff05910cb1b77c2b229c5e6e260c6173a17b579b : update Linux kernel when convenient.
Data as of 30 Nov 2026, 13:46 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in ff05910cb1b77c2b229c5e6e260c6173a17b579b, ed70c92b58ab28d4e448b9d5f191e989e1f420a3, dba1adf68bc63649994e0e45e74fa6d97416013b +7
Exploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
Description
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.
References
- git.kernel.org/stable/c/a561f301ffb248615070a200cd22136cd671b64a (opens in a new tab)
- git.kernel.org/stable/c/ed70c92b58ab28d4e448b9d5f191e989e1f420a3 (opens in a new tab)
- git.kernel.org/stable/c/acdb65f153154e013d428a45627deb98fbbfef8f (opens in a new tab)
- git.kernel.org/stable/c/71a52b4cf6ca0316bad296a634598ad82baac6e3 (opens in a new tab)
- git.kernel.org/stable/c/460792f7ecbcecc94e4d938063d76c555a73c2bb (opens in a new tab)
- git.kernel.org/stable/c/82c9bc868b49d87893ef3ce8c09ff21300dcb50e (opens in a new tab)
- git.kernel.org/stable/c/dba1adf68bc63649994e0e45e74fa6d97416013b (opens in a new tab)
- git.kernel.org/stable/c/ff05910cb1b77c2b229c5e6e260c6173a17b579b (opens in a new tab)