CVE-2024-40938

Source
https://cve.org/CVERecord?id=CVE-2024-40938
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40938.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-40938
Downstream
Related
Published
2024-07-12T12:25:14.463Z
Modified
2026-03-14T12:35:03.076217Z
Summary
landlock: Fix d_parent walk
Details

In the Linux kernel, the following vulnerability has been resolved:

landlock: Fix d_parent walk

The WARNONONCE() in collectdomainaccesses() can be triggered when trying to link a root mount point. This cannot work in practice because this directory is mounted, but the VFS check is done after the call to securitypathlink().

Do not use source directory's d_parent when the source directory is the mount point.

[mic: Fix commit message]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40938.json"
}
References

Affected packages

Git / 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/cve-osv-conversion/osv-output/CVE-2024-40938.json"