CVE-2026-138876

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138877In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/hdmi: clamp sad_count in ELD proc write handler snd_hdmi_wriCVE-2026-138878In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_connCVE-2026-138879In the Linux kernel, the following vulnerability has been resolved: crypto: algif_skcipher - rewind rounded output bytes af_alg_get_rsgl()CVE-2026-138888.8Use after free in Extensions in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandbox viCVE-2026-138880In the Linux kernel, the following vulnerability has been resolved: PCI/sysfs: Pass the device name length in UTF-16 code units Currently,CVE-2026-138881In the Linux kernel, the following vulnerability has been resolved: aoe: pull in the headers each received packet type reads aoenet_rcv() CVE-2026-138882In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: fix PCI device reference leak in mt7996_pci_init_hiCVE-2026-138883In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7615: cancel reset work during unregister The MCU error CVE-2026-138884In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7925: cancel mlo_pm_work on the USB stop path Every otheCVE-2026-1388857.5In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: take rcu_read_lock in the USB/SDIO tx completion path The CVE-2026-138886In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: fix memory leak in USB TX path When errors occur in mt76u_CVE-2026-1388877.5In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt792x: fix UAF in SDIO TX path when out of memory Using _
CVE-2026-138876: Unscored | Vulnix