{"id":"CVE-2024-40938","published":"2024-07-12T12:25:14Z","modified":"2026-05-11T20:22:44Z","title":"landlock: Fix d_parent walk","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00249,"percentile":0.1654,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b6e5e696435832b33e40775f060ef5c95f4fda1f","tags":[]},{"url":"https://git.kernel.org/stable/c/cc30d05b34f9a087a6928d09b131f7b491e9ab11","tags":[]},{"url":"https://git.kernel.org/stable/c/c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6","tags":[]},{"url":"https://git.kernel.org/stable/c/88da52ccd66e65f2e63a6c35c9dff55d448ef4dc","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":3.3,"factors":[{"name":"EPSS percentile","points":3.31}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b91c3e4ea756b12b7d992529226edce1cfd854d7, < b6e5e696435832b33e40775f060ef5c95f4fda1f",">= b91c3e4ea756b12b7d992529226edce1cfd854d7, < cc30d05b34f9a087a6928d09b131f7b491e9ab11",">= b91c3e4ea756b12b7d992529226edce1cfd854d7, < c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6",">= b91c3e4ea756b12b7d992529226edce1cfd854d7, < 88da52ccd66e65f2e63a6c35c9dff55d448ef4dc"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:04:36.699030Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-38826","exploited":false,"provenance":"source"}}