CVE-2023-52779

published 21 May 2024 · updated 11 May 2026

fs: Pass AT_GETATTR_NOSEC flag to getattr interface function

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3fb0fa08641903304b9d81d52a379ff031dc41d4 and Kernel 8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.5, >=db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 <3fb0fa08641903304b9d81d52a379ff031dc41d4, >=db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 <8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf3fb0fa08641903304b9d81d52a379ff031dc41d4, 8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52779 severity on Zeptric[![CVE-2023-52779](https://zeptric.io/badge/cve/CVE-2023-52779.svg)](https://zeptric.io/cve/CVE-2023-52779)