CVE-2024-46695
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| rocky | 8 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 6.1.115-1 |
| debian | bullseye | fixed | 5.10.234-1 |
| debian | forky | fixed | 6.10.9-1 |
| debian | sid | fixed | 6.10.9-1 |
| debian | trixie | fixed | 6.10.9-1 |
| almalinux | 8 | fixed | kernel-rt-core-4.18.0-553.32.1.rt7.373.el8_10.x86_64.rpm |
| almalinux | 9 | fixed | kernel-64k-devel-5.14.0-503.16.1.el9_5.aarch64.rpm |
References
- https://access.redhat.com/errata/RHSA-2024:10939
- https://errata.rockylinux.org/RLSA-2024:10944
- https://errata.rockylinux.org/RLSA-2024:10943
- https://www.suse.com/security/cve/CVE-2024-46695.html
- https://security-tracker.debian.org/tracker/CVE-2024-46695
- https://access.redhat.com/errata/RHSA-2024:10943
- https://bugzilla.redhat.com/2312083
- https://bugzilla.redhat.com/2320505
- https://bugzilla.redhat.com/2322308
- https://bugzilla.redhat.com/2323904
- https://bugzilla.redhat.com/2323930
- https://bugzilla.redhat.com/2324315
- https://bugzilla.redhat.com/2324612
- https://bugzilla.redhat.com/2324889
- https://bugzilla.redhat.com/2327168
- https://errata.almalinux.org/8/ALSA-2024-10943.html
- https://access.redhat.com/errata/RHSA-2024:10944
- https://errata.almalinux.org/8/ALSA-2024-10944.html
- https://bugzilla.redhat.com/2267355
- https://bugzilla.redhat.com/2309857
- https://bugzilla.redhat.com/2311715
- https://bugzilla.redhat.com/2324886
- https://errata.almalinux.org/9/ALSA-2024-10939.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.