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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <ff05910cb1b77c2b229c5e6e260c6173a17b579b | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <460792f7ecbcecc94e4d938063d76c555a73c2bb | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <dba1adf68bc63649994e0e45e74fa6d97416013b | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 5.10.220 <5.10.275 | — |
| Linux | Linux | 3eec21b660856c7af1278a07cf668a680c582bde <ed70c92b58ab28d4e448b9d5f191e989e1f420a3 | — |
| Linux | Linux | 5.15.154 <5.15.226 | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <acdb65f153154e013d428a45627deb98fbbfef8f | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 5.17 | — |
| Linux | Linux | 4e63ce91997a6ac8b8337e87aafb539590ba9ae9 <a561f301ffb248615070a200cd22136cd671b64a | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <82c9bc868b49d87893ef3ce8c09ff21300dcb50e | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 2d9374f095136206a02eb0b6cd9ef94632c1e9f7 <71a52b4cf6ca0316bad296a634598ad82baac6e3 | — |
| Linux | Linux | patch: 6.12.117 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/a561f301ffb248615070a200cd22136cd671b64a
- https://git.kernel.org/stable/c/ed70c92b58ab28d4e448b9d5f191e989e1f420a3
- https://git.kernel.org/stable/c/acdb65f153154e013d428a45627deb98fbbfef8f
- https://git.kernel.org/stable/c/71a52b4cf6ca0316bad296a634598ad82baac6e3
- https://git.kernel.org/stable/c/460792f7ecbcecc94e4d938063d76c555a73c2bb
- https://git.kernel.org/stable/c/82c9bc868b49d87893ef3ce8c09ff21300dcb50e
- https://git.kernel.org/stable/c/dba1adf68bc63649994e0e45e74fa6d97416013b
- https://git.kernel.org/stable/c/ff05910cb1b77c2b229c5e6e260c6173a17b579b