Bug 1225027 (CVE-2023-52779) - VUL-0: CVE-2023-52779: kernel: fs: Pass AT_GETATTR_NOSEC flag to getattr interface function
Summary: VUL-0: CVE-2023-52779: kernel: fs: Pass AT_GETATTR_NOSEC flag to getattr inte...
Status: RESOLVED INVALID
Alias: CVE-2023-52779
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/407122/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-52779:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 14:51 UTC by SMASH SMASH
Modified: 2024-05-28 09:53 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-22 14:51:05 UTC
In the Linux kernel, the following vulnerability has been resolved:

fs: Pass AT_GETATTR_NOSEC flag to getattr interface function

When vfs_getattr_nosec() calls a filesystem's getattr interface function
then the 'nosec' should propagate into this function so that
vfs_getattr_nosec() can again be called from the filesystem's gettattr
rather than vfs_getattr(). The latter would add unnecessary security
checks that the initial vfs_getattr_nosec() call wanted to avoid.
Therefore, introduce the getattr flag GETATTR_NOSEC and allow to pass
with the new getattr_flags parameter to the getattr interface function.
In overlayfs and ecryptfs use this flag to determine which one of the
two functions to call.

In a recent code change introduced to IMA vfs_getattr_nosec() ended up
calling vfs_getattr() in overlayfs, which in turn called
security_inode_getattr() on an exiting process that did not have
current->fs set anymore, which then caused a kernel NULL pointer
dereference. With this change the call to security_inode_getattr() can
be avoided, thus avoiding the NULL pointer dereference.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-52779
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2023/CVE-2023-52779.mbox
https://git.kernel.org/stable/c/3fb0fa08641903304b9d81d52a379ff031dc41d4
https://git.kernel.org/stable/c/8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf
https://www.cve.org/CVERecord?id=CVE-2023-52779
Comment 2 Carlos López 2024-05-28 09:53:11 UTC
Nothing to do, closing.