CVE-2023-52779
Last modified
CVE-2023-52779 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.5, < 6.6.4 | — |
| Linux | Linux Kernel | 6.7 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-52779?
How severe is CVE-2023-52779?
How do I fix CVE-2023-52779?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-52773In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52774In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52775In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52776In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2023-52777In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52778In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-5278A vulnerability, which was classified as critical, was found…9.8
- CVE-2023-52780In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52781In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52782In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52783In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52784In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-52779?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
