{"id":"CVE-2024-40938","summary":"landlock: Fix d_parent walk","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nlandlock: Fix d_parent walk\n\nThe WARN_ON_ONCE() in collect_domain_accesses() can be triggered when\ntrying to link a root mount point.  This cannot work in practice because\nthis directory is mounted, but the VFS check is done after the call to\nsecurity_path_link().\n\nDo not use source directory's d_parent when the source directory is the\nmount point.\n\n[mic: Fix commit message]","modified":"2026-03-20T12:37:24.173157Z","published":"2024-07-12T12:25:14.463Z","related":["SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40938.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/88da52ccd66e65f2e63a6c35c9dff55d448ef4dc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6e5e696435832b33e40775f060ef5c95f4fda1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc30d05b34f9a087a6928d09b131f7b491e9ab11"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40938.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40938"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b91c3e4ea756b12b7d992529226edce1cfd854d7"},{"fixed":"b6e5e696435832b33e40775f060ef5c95f4fda1f"},{"fixed":"cc30d05b34f9a087a6928d09b131f7b491e9ab11"},{"fixed":"c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6"},{"fixed":"88da52ccd66e65f2e63a6c35c9dff55d448ef4dc"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40938.json"}}],"schema_version":"1.7.5"}