{"id":"CVE-2023-52779","published":"2024-05-21T15:30:58Z","modified":"2026-05-11T19:32:58Z","title":"fs: Pass AT_GETATTR_NOSEC flag to getattr interface function","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs: Pass AT_GETATTR_NOSEC flag to getattr interface function\n\nWhen vfs_getattr_nosec() calls a filesystem's getattr interface function\nthen the 'nosec' should propagate into this function so that\nvfs_getattr_nosec() can again be called from the filesystem's gettattr\nrather than vfs_getattr(). The latter would add unnecessary security\nchecks that the initial vfs_getattr_nosec() call wanted to avoid.\nTherefore, introduce the getattr flag GETATTR_NOSEC and allow to pass\nwith the new getattr_flags parameter to the getattr interface function.\nIn overlayfs and ecryptfs use this flag to determine which one of the\ntwo functions to call.\n\nIn a recent code change introduced to IMA vfs_getattr_nosec() ended up\ncalling vfs_getattr() in overlayfs, which in turn called\nsecurity_inode_getattr() on an exiting process that did not have\ncurrent->fs set anymore, which then caused a kernel NULL pointer\ndereference. With this change the call to security_inode_getattr() can\nbe avoided, thus avoiding the NULL pointer dereference.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00267,"percentile":0.11797,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3fb0fa08641903304b9d81d52a379ff031dc41d4","tags":[]},{"url":"https://git.kernel.org/stable/c/8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":2.36},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7, < 3fb0fa08641903304b9d81d52a379ff031dc41d4",">= db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7, < 8a924db2d7b5eb69ba08b1a0af46e9f1359a9bdf"]},{"vendor":"Linux","product":"Linux","versions":["6.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-29T18:48:07.766160Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59496","exploited":false,"provenance":"source"}}