{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-42318","published":"2024-08-17T09:15:11.700000Z","last_modified":"2026-08-04T11:19:52.137000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.13","version_end_excluding":"5.15.165"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"6.1.103"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.2","version_end_excluding":"6.6.44"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.10.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00352,"percentile":0.21309,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2024-42318/","html_en":"/en/cve/CVE-2024-42318/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42318","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-42318"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nlandlock: Don't lose track of restrictions on cred_transfer\n\nWhen a process' cred struct is replaced, this _almost_ always invokes\nthe cred_prepare LSM hook; but in one special case (when\nKEYCTL_SESSION_TO_PARENT updates the parent's credentials), the\ncred_transfer LSM hook is used instead.  Landlock only implements the\ncred_prepare hook, not cred_transfer, so KEYCTL_SESSION_TO_PARENT causes\nall information on Landlock restrictions to be lost.\n\nThis basically means that a process with the ability to use the fork()\nand keyctl() syscalls can get rid of all Landlock restrictions on\nitself.\n\nFix it by adding a cred_transfer hook that does the same thing as the\nexisting cred_prepare hook. (Implemented by having hook_cred_prepare()\ncall hook_cred_transfer() so that the two functions are less likely to\naccidentally diverge in the future.)","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2566","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://git.kernel.org/stable/c/0d74fd54db0bd0c0c224bef0da8fc95ea9c9f36c","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/16896914bace82d7811c62f3b6d5320132384f49","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/39705a6c29f8a2b93cf5b99528a55366c50014d1","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/916c648323fa53b89eedb34a0988ddaf01406117","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/b14cc2cf313bd29056fadbc8ecd7f957cf5791ff","tags":["Patch"]},{"url":"https://lore.kernel.org/all/20240817.shahka3Ee1iy@digikod.net/","tags":["Mailing List"]},{"url":"https://www.openwall.com/lists/oss-security/2024/08/17/2","tags":["Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2024/08/17/2","tags":["Mailing List"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}]}}