# CVE-2023-52779: fs: Pass AT_GETATTR_NOSEC flag to getattr interface function

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-21T15:30:58.899Z
- Modified: 2026-06-17T06:43:33.767Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 before 3fb0fa08641903304b9d81d52a379ff031dc41d4; from db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 before 8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf; 6.5 (not affected: before 6.5; from 6.6.4 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 6.5 before 6.6.4; 6.7

## References

- <https://git.kernel.org/stable/c/3fb0fa08641903304b9d81d52a379ff031dc41d4> (patch)
- <https://git.kernel.org/stable/c/8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf> (patch)

## Sources

- CVE List: [CVE-2023-52779](https://www.cve.org/CVERecord?id=CVE-2023-52779), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52779](https://nvd.nist.gov/vuln/detail/CVE-2023-52779), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52779 · Whole record: https://cve.day/CVE-2023-52779.json · Rebuilt by cve.day 2026-11-25T22:58:34.015Z
