CVE-2024-46695

CVE Details

Release Date:2024-09-13
Impact:Moderate What is this?

Description


In the Linux kernel, the following vulnerability has been resolved:\nselinux,smack: don't bypass permissions check in inode_setsecctx hook\nMarek Gresko reports that the root user on an NFS client is able to\nchange the security labels on files on an NFS filesystem that is\nexported with root squashing enabled.\nThe end of the kerneldoc comment for __vfs_setxattr_noperm() states:\n* This function requires the caller to lock the inode's i_mutex before it\n* is executed. It also assumes that the caller will make the appropriate\n* permission checks.\nnfsd_setattr() does do permissions checking via fh_verify() and\nnfsd_permission(), but those don't do all the same permissions checks\nthat are done by security_inode_setxattr() and its related LSM hooks do.\nSince nfsd_setattr() is the only consumer of security_inode_setsecctx(),\nsimplest solution appears to be to replace the call to\n__vfs_setxattr_noperm() with a call to __vfs_setxattr_locked(). This\nfixes the above issue and has the added benefit of causing nfsd to\nrecall conflicting delegations on a file when a client tries to change\nits security label.

See more information about CVE-2024-46695 from MITRE CVE dictionary and NIST NVD


NOTE: The following CVSS metrics and score provided are preliminary and subject to review.


CVSS v3 metrics

Base Score: 6.3
Vector String: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
Version: 3.1
Attack Vector: Local
Attack Complexity: Low
Privileges Required: High
User Interaction: None
Scope: Unchanged
Confidentiality Impact: High
Integrity Impact: High
Availability Impact: Low

Errata information


PlatformErrataRelease Date


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete