{"id":"CVE-2024-40938","aliases":["CVE-2024-40938"],"related":[],"kind":"vulnerability","state":"published","title":"landlock: Fix d_parent walk","summary":"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]","summarySource":"cvelist","descriptions":[{"lang":"en","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]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: landlock: Fix d_parent walk WARN_ON_ONCE() en Collect_domain_accesses() se puede activar al intentar vincular un punto de montaje raíz. Esto no puede funcionar en la práctica porque este directorio está montado, pero la verificación de VFS se realiza después de llamar a security_path_link(). No utilice d_parent del directorio de origen cuando el directorio de origen sea el punto de montaje. [micrófono: Arreglar mensaje de confirmación]","source":"nvd"}],"published":"2024-07-12T12:25:14.463Z","modified":"2026-06-17T07:46:54.663Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b91c3e4ea756b12b7d992529226edce1cfd854d7","fixed":"b6e5e696435832b33e40775f060ef5c95f4fda1f","status":"affected"},{"type":"git","introduced":"b91c3e4ea756b12b7d992529226edce1cfd854d7","fixed":"cc30d05b34f9a087a6928d09b131f7b491e9ab11","status":"affected"},{"type":"git","introduced":"b91c3e4ea756b12b7d992529226edce1cfd854d7","fixed":"c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6","status":"affected"},{"type":"git","introduced":"b91c3e4ea756b12b7d992529226edce1cfd854d7","fixed":"88da52ccd66e65f2e63a6c35c9dff55d448ef4dc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.95","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.35","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.6","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"6.1.95"},{"status":"affected","introduced":"6.2","fixed":"6.6.35"},{"status":"affected","introduced":"6.7","fixed":"6.9.6"},{"status":"affected","version":"6.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b6e5e696435832b33e40775f060ef5c95f4fda1f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc30d05b34f9a087a6928d09b131f7b491e9ab11","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88da52ccd66e65f2e63a6c35c9dff55d448ef4dc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:04:36.699Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40938","url":"https://www.cve.org/CVERecord?id=CVE-2024-40938","licence":"CVE Terms of Use","modified":"2026-05-11T20:22:44.692Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40938","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40938","licence":"Public domain","modified":"2026-06-17T07:46:54.663Z"}],"updatedAt":"2026-11-25T22:58:42.848Z","epss":{"score":0.00249,"percentile":0.17365,"date":"2026-12-01T12:00:22.000Z"}}