CVE-2024-40938
landlock: Fix d_parent walk
Reported by linux · Published July 12, 2024
In the Linux kernel, the following vulnerability has been resolved: landlock: Fix d_parent walk The WARN_ON_ONCE() in collect_domain_accesses() 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 security_path_link(). Do not use source directory's d_parent when the source directory is the mount point. [mic: Fix commit message]
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b91c3e4ea756b12b7d992529226edce1cfd854d7, b91c3e4ea756b12b7d992529226edce1cfd854d7, b91c3e4ea756b12b7d992529226edce1cfd854d7 |
| Linux | Linux | 5.19, 0, 6.1.95 |
| linux | linux_kernel | 5.19, 5.19, 5.19 |
| Linux | Linux | *, *, 5.19 |
Timeline
- Jul 12, 2024 CVE Published
- Jul 13, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
- Jan 7, 2026 Security Advisory (271 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (174 in total, the first dated here)
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-40938
vulnetix vdb fixes CVE-2024-40938
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40938/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart