NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-46695
Summary

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.

Publication Date Sept. 13, 2024, 3:15 p.m.
Registration Date Sept. 13, 2024, 8 p.m.
Last Update Oct. 17, 2024, 11:15 p.m.
CVSS3.1 : MEDIUM
スコア 4.4
Vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
攻撃元区分(AV) ローカル
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR)
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 6.10.8
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.6.49
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Linux の Linux Kernel における不適切なデフォルトパーミッションに関する脆弱性
Title Linux の Linux Kernel における不適切なデフォルトパーミッションに関する脆弱性
Summary

Linux の Linux Kernel には、不適切なデフォルトパーミッションに関する脆弱性が存在します。

Possible impacts 情報を改ざんされる可能性があります。 
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Aug. 28, 2024, midnight
Registration Date Sept. 20, 2024, 4:42 p.m.
Last Update Sept. 20, 2024, 4:42 p.m.
Affected System
Linux
Linux Kernel 6.11
Linux Kernel 6.6.49 未満
Linux Kernel 6.7 以上 6.10.8 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2024年09月20日]   掲載 Sept. 20, 2024, 12:06 p.m.