CVE-2024-46695
published critical CVSS 3.1 · 9.8selinux,smack: don't bypass permissions check in inode_setsecctx hook
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux18032ca062e621e15683cb61c066ef3dc5414a7b to < 2dbc4b7bac60b02cc6e70d05bf6a7dfd551f9dda · 18032ca062e621e15683cb61c066ef3dc5414a7b to < fe0cd53791119f6287b6532af8ce41576d664930 · 18032ca062e621e15683cb61c066ef3dc5414a7b to < eebec98791d0137e455cc006411bb92a54250924 · 18032ca062e621e15683cb61c066ef3dc5414a7b to < 459584258d47ec3cc6245a82e8a49c9d08eb8b57 · 18032ca062e621e15683cb61c066ef3dc5414a7b to < f71ec019257ba4f7ab198bd948c5902a207bad96 · 18032ca062e621e15683cb61c066ef3dc5414a7b to < 76a0e79bc84f466999fa501fce5bf7a07641b8a7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.11 (affected) · 0 to < 3.11 (unaffected · semver) · 5.10.227 through 5.10.* (unaffected · semver) · 5.15.168 through 5.15.* (unaffected · semver) · 6.1.113 through 6.1.* (unaffected · semver) · 6.6.49 through 6.6.* (unaffected · semver) · 6.10.8 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-072 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-056 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-765 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| Debian | bullseye | linux | Advisory build | 5.10.234-1 | DLA-4075-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-794 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.32.1.rt7.373.el8_10 | ALSA-2024:10944 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.32.1.el8_10 | ALSA-2024:10943 |
| AlmaLinux | 9 | bpftool | Advisory build | 7.4.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-503.16.1.el9_5 | ALSA-2024:10939 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: selinux,smack: don't bypass permissions check in inode_setsecctx hook Marek Gresko reports that the root user on an NFS client is able to change the security labels on files on an NFS filesystem that is exported with root squashing enabled. The end of the kerneldoc comment for __vfs_setxattr_noperm() states: * This function requires the caller to lock the inode's i_mutex before it * is executed. It also assumes that the caller will make the appropriate * permission checks. nfsd_setattr() does do permissions checking via fh_verify() and nfsd_permission(), but those don't do all the same permissions checks that are done by security_inode_setxattr() and its related LSM hooks do. Since nfsd_setattr() is the only consumer of security_inode_setsecctx(), simplest solution appears to be to replace the call to __vfs_setxattr_noperm() with a call to __vfs_setxattr_locked(). This fixes the above issue and has the added benefit of causing nfsd to recall conflicting delegations on a file when a client tries to change its security label.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable code is reached only through the in-kernel NFS server, via an NFSv4.2 SETATTR/OPEN compound carrying the FATTR4_WORD2_SECURITY_LABEL attribute over TCP/2049. Per kernel CNA guidance nfsd bugs are Network. AC:L - A single, fully attacker-controlled SETATTR RPC deterministically writes the label; there is no race, no memory-layout dependency, and no retry needed. The only precondition is the standard labeled-NFS deployment (CONFIG_NFSD_V4_SECURITY_LABEL plus the `security_label` export option), which is the configuration being scored. PR:N - The essence of the bug is that all permission checks are skipped: nfsd_permission() is invoked with an effective mask of 0 and the LSM relabel/CAP_MAC_ADMIN/ownership checks never run, so any asserted AUTH_SYS uid works — including the squashed anonymous uid. The attacker needs no account or credential on the server; export IP filtering and the reserved-port `secure` check are network-level controls, not privileges on the vulnerable component. UI:N - The attacker issues the RPC directly against the server; no administrator or user on the server has to open a file, mount anything, or take any action. S:U - The bypassed checks and the corrupted security labels are both enforced and consumed by the same kernel/LSM security authority on the NFS server; no hypervisor, IOMMU, or sandbox boundary is crossed. C:H - Arbitrary relabeling defeats the MAC confidentiality controls that are the primary protection on such systems — an MLS-labeled file can be dropped to a lower level, or a protected file relabeled to a type readable by an untrusted or attacker-influenced domain, and the httpd_sys_script_exec_t-style relabel yields code execution on the server with arbitrary read. I:H - An unauthenticated client can write arbitrary SELinux contexts or Smack labels onto any file in the export, bypassing inode_owner_or_capable(), FILE__RELABELFROM/RELABELTO policy, CAP_MAC_ADMIN, immutable/append-only flags, and root squashing — a complete compromise of security-critical metadata that can be escalated to code execution on the server. A:H - Relabeling files to a type or invalid context that legitimate confined domains cannot access denies those services their data and breaks them, and the same primitive escalates to code execution allowing the server to be rendered inoperable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 18032ca062e621e15683cb61c066ef3dc5414a7b to < 2dbc4b7bac60b02cc6e70d05bf6a7dfd551f9dda (affected · git)18032ca062e621e15683cb61c066ef3dc5414a7b to < fe0cd53791119f6287b6532af8ce41576d664930 (affected · git)18032ca062e621e15683cb61c066ef3dc5414a7b to < eebec98791d0137e455cc006411bb92a54250924 (affected · git)18032ca062e621e15683cb61c066ef3dc5414a7b to < 459584258d47ec3cc6245a82e8a49c9d08eb8b57 (affected · git)18032ca062e621e15683cb61c066ef3dc5414a7b to < f71ec019257ba4f7ab198bd948c5902a207bad96 (affected · git)18032ca062e621e15683cb61c066ef3dc5414a7b to < 76a0e79bc84f466999fa501fce5bf7a07641b8a7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.11 (affected)0 to < 3.11 (unaffected · semver)5.10.227 through 5.10.* (unaffected · semver)5.15.168 through 5.15.* (unaffected · semver)6.1.113 through 6.1.* (unaffected · semver)6.6.49 through 6.6.* (unaffected · semver)6.10.8 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/2dbc4b7bac60b02cc6e70d05bf6a7dfd551f9dda
- https://git.kernel.org/stable/c/459584258d47ec3cc6245a82e8a49c9d08eb8b57
- https://git.kernel.org/stable/c/76a0e79bc84f466999fa501fce5bf7a07641b8a7
- https://git.kernel.org/stable/c/eebec98791d0137e455cc006411bb92a54250924
- https://git.kernel.org/stable/c/f71ec019257ba4f7ab198bd948c5902a207bad96
- https://git.kernel.org/stable/c/fe0cd53791119f6287b6532af8ce41576d664930
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
Provider assertions
3Linux · cna
selinux,smack: don't bypass permissions check in inode_setsecctx hook
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0d0acf40c05f716adcc8285387d0bde7258901501bea2d4347611ab496220e2c
- Ingested
- 23 Sep 2026, 08:28:03 UTC
- Source record
- Official CVE record