CVE-2026-46150: fanotify: fix false positive on permission events
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fanotify: fix false positive on permission events
fsnotify_get_mark_safe() may return false for a mark on an unrelated group, which results in bypassing the permission check.
Fix by skipping over detached marks that are not in the current group.
The Linux kernel CVE team has assigned CVE-2026-46150 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.12 with commit abc77577a669f424c5d0c185b9994f2621c52aa4 and fixed in 6.6.140 with commit 895ebbedf88318607c24acc0f591c74b165e1d0a Issue introduced in 4.12 with commit abc77577a669f424c5d0c185b9994f2621c52aa4 and fixed in 6.12.88 with commit f130790f1acc8399f32652846c875a251efd040f Issue introduced in 4.12 with commit abc77577a669f424c5d0c185b9994f2621c52aa4 and fixed in 6.18.30 with commit 7baa02b0ae9d17ec5f08836d8ea88ce1927d0678 Issue introduced in 4.12 with commit abc77577a669f424c5d0c185b9994f2621c52aa4 and fixed in 7.0.7 with commit b7b24b28c8cd55844cab908f4f39dded638d5538 Issue introduced in 4.12 with commit abc77577a669f424c5d0c185b9994f2621c52aa4 and fixed in 7.1-rc2 with commit 7746e3bd4cc19b5092e00d32d676e329bfcb6900
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46150
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/notify/fsnotify.c
fs/notify/mark.c
include/linux/fsnotify_backend.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/895ebbedf88318607c24acc0f591c74b165e1d0a https://git.kernel.org/stable/c/f130790f1acc8399f32652846c875a251efd040f https://git.kernel.org/stable/c/7baa02b0ae9d17ec5f08836d8ea88ce1927d0678 https://git.kernel.org/stable/c/b7b24b28c8cd55844cab908f4f39dded638d5538 https://git.kernel.org/stable/c/7746e3bd4cc19b5092e00d32d676e329bfcb6900